/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / PrimerVirtualCom 1.1

Username:     
Password:     
             

Forum

# 1   2007-12-07 10:09:28 PrimerVirtualCom 1.1

emeline_lefranc
New member
Registered: 2007-09-07
Posts: 1

PrimerVirtualCom 1.1

Thank you stewee, it's working very well.

I would like to make the same with the mass_storage project for eval card using internal flash but i'm a beginner, so could you give me some ideas the way to do it?

Offline

 

# 2   2007-12-10 01:20:35 PrimerVirtualCom 1.1

Stewee
Member
From: Dorset/England
Registered: 2007-10-11
Posts: 47
Website

Re: PrimerVirtualCom 1.1

Hi Emeline
Thankyou for your kindness, like you I am still learning.
You may find these links helpful.

See Mass storage project for eval board on your Primer CD installation
C:\Program Files\RAISONANCE\Ride\Examples\ARM\STM3210B-EVAL\STM32F10xUSBLib\USBLib\demos\Mass_Storage.
Book; http://www.amazon.com/USB-Mass-Storage- … amp;sr=8-2

----

For  general USB info: download ST USB Development kit and documentation for eval board
http://www.st.com/stonline/products/lit … /13465.pdf
http://www.st.com/stonline/products/sup … um0424.zip

Read USB introduction
http://www.beyondlogic.org/usbnutshell/ … tshell.pdf

Get usb 2.0 spec - read chapter 9
http://www.usb.org/developers/docs/usb_20_092407.zip

Also the book' USB Complete' by Jan Axelson
is recommended by some. Book: http://www.amazon.com/USB-Complete-Ever … amp;sr=8-1

People may recommend the USB HID (human interface device) class because it is versatile,
but you may to need to download the microsoft WDK (formerly DDK - device development kit)
which is apparently about 2Gb+ for the API. Also it requires MSDN subscription.

----

For USB CDC (communications device class) I would recommend downloading http://www.usb.org/developers/devclass_ … bcdc11.pdf
for reference to names used in the source code.

Using the CDC (communications device class) you can access your device using any PC software that can already access a serial port. You can do this with many free compilers.
Examples
-  LCC with Marshalsoft comms dll.
-  Microsoft Visual Basic Express Edition 2008 (use the Serialport control)
   http://www.microsoft.com/express/download/offline.aspx
   this is a free/huge dvd download

I hope this helps.


Notes - not in the readme.txt.
~~~~~~~~~~~~~~~~~~

1.  Remember to close any PC application that uses a PC Com port before opening another that uses the same port.

2.  You may have noticed that the RATE test data is transmitted from the Primer to the PC is deliberately slowed down in the Primer with crude delays. This is because the dumb terminal program I was using to receive the test data was unable to keep up with data arriving at an effective baud rate of more than about 115kbaud. The actual underlying baud rate is faster. This becomes evident when you test sending data in the other direction from the PC to the Primer.  If a one million byte file is sent to the Primer from the command line (e.g.  COPY myMillion.txt COM8:) the transfer typically completes in under 3 second because it is not impeded by the dumb terminal.

If you wrote you own firmware and PC application to move data from Primer to PC you would likely be able to remove the firmware delays and transmit to the PC faster.

3. PrimerVirtualCom was tested only with Windows XP.

Last edited by Stewee (2008-01-16 08:23:28)


( Please Give Blood http://www.blood.co.uk >50% can.  5% do. )

Offline

 

# 3   2011-04-16 22:57:11 PrimerVirtualCom 1.1

mahouta
New member
Registered: 2011-03-12
Posts: 4

Re: PrimerVirtualCom 1.1

hiii i'm working with the same project but i got these errors
Building C:\usbcomm\PrimerVirtualCOM 1.1\src\Application.c
Running: ARM Compiler
"C:\Program Files (x86)\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-gcc.exe" -MD -D_STM32F103RBT6_ -D_STM3x_ -D_STM32x_ -mthumb   -mcpu=cortex-m3 "C:\usbcomm\PrimerVirtualCOM 1.1\src\Application.c" -o "C:\usbcomm\PrimerVirtualCOM 1.1\AppLib\Application.o" -I "C:\Program Files (x86)\Raisonance\Ride\Lib\ARM\include" -I ".\Include" -I ".\src\USBLIB" -c     -fsigned-char -D PRIMER1  -g      -Os   -ffunction-sections         -mlittle-endian
In file included from .\Include/stm32f10x_flash.h:31:0, 
from .\Include/stm32f10x_lib.h:57, 
from .\Include/circle_api.h:27, 
from C:\usbcomm\PrimerVirtualCOM 1.1\src\Application.c:10: 
C:\Program Files (x86)\Raisonance\Ride\Lib\ARM\include/stm32f10x.h:1:2: error: #error STM32 precompiled library option is deprecated! 
In file included from .\Include/stm32f10x_lib.h:57:0, 
from .\Include/circle_api.h:27, 
from C:\usbcomm\PrimerVirtualCOM 1.1\src\Application.c:10: 
.\Include/stm32f10x_flash.h:305:37: error: expected ')' before 'FLASH_Latency' 
.\Include/stm32f10x_flash.h:306:45: error: expected ')' before 'FLASH_HalfCycleAccess' 
.\Include/stm32f10x_flash.h:307:44: error: expected ')' before 'FLASH_PrefetchBuffer' 
.\Include/stm32f10x_flash.h:310:44: error: expected ')' before 'Page_Address' 
.\Include/stm32f10x_flash.h:313:46: error: expected ')' before 'Address' 
.\Include/stm32f10x_flash.h:314:50: error: expected ')' before 'Address' 
.\Include/stm32f10x_flash.h:315:56: error: expected ')' before 'Address' 
.\Include/stm32f10x_flash.h:316:56: error: expected ')' before 'FLASH_Pages' 
.\Include/stm32f10x_flash.h:318:55: error: expected ')' before 'OB_IWDG' 
.\Include/stm32f10x_flash.h:319:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FLASH_GetUserOptionByte' 
.\Include/stm32f10x_flash.h:320:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FLASH_GetWriteProtectionOptionByte' 
.\Include/stm32f10x_flash.h:323:35: error: expected ')' before 'FLASH_IT' 
.\Include/stm32f10x_flash.h:324:46: error: expected ')' before 'FLASH_FLAG' 
.\Include/stm32f10x_flash.h:325:36: error: expected ')' before 'FLASH_FLAG' 
.\Include/stm32f10x_flash.h:327:55: error: expected ')' before 'Timeout' 
In file included from .\Include/circle_api.h:27:0, 
from C:\usbcomm\PrimerVirtualCOM 1.1\src\Application.c:10: 
.\Include/stm32f10x_lib.h:65:30: fatal error: stm32f10x_gpio.h: No such file or directory 
compilation terminated. 
 
Build failed
Can any one tell me how to fix them sad  thanks a lot

Offline

 

Board footer