cancel
Showing results for 
Search instead for 
Did you mean: 

STR71x virtual com port sample code OK?

hg-chen
Associate II
Posted on April 13, 2009 at 07:52

STR71x virtual com port sample code OK?

4 REPLIES 4
hg-chen
Associate II
Posted on November 28, 2007 at 21:55

I run the virtual com port sample code of STR7/9 USB developer kit,

it is OK with STR75 sample code in STR75 board , but for STR71 sample code in STR71 board, still unkown USB device!

Is the sample code of virtual com port for STR71 OK?

christophe239955_st
Associate II
Posted on January 14, 2008 at 14:06

Check the system clock configuration for STR71x board (hw_config.c file ), maybe another oscillator value is used on your board? the example is based on 16MHz oscillator on the STR710 eval board :D

Chris

witold
Associate
Posted on March 12, 2009 at 11:45

I am having the same problem. If anyone has a solution for this, then please help.

mlg7
Associate II
Posted on April 13, 2009 at 07:52

I have not managed to run the STM virtual com port example when compiled with gcc/winarm, but could do it with evaluation keil.

I have inlined Set_system(), Set_USBClock() [this one was empty], USB_Interrupts_Config() and changed:

// Set_system()

RCCU_MCLKConfig(RCCU_DEFAULT);

RCCU_PCLK1Config(RCCU_DEFAULT);

RCCU_PCLK2Config(RCCU_DEFAULT);

RCCU_PLL1Config(RCCU_PLL1_Mul_12, RCCU_Div_1); // 4 MHz quartz on board

// Set_USBClock()

PCU->PLL2CR = 0x0590; // 48 is 4 *12 /1

ARM7TDMI, ARM7TDMIFR2T6, STR711, STR-H711 (Olimex board)

[ This message was edited by: mlg7 on 13-04-2009 11:28 ]

[ This message was edited by: mlg7 on 13-04-2009 11:32 ]