philippose / STM32F3_Discovery_USB_VCP_Test

A basic demonstration of the USB Virtual COM Port facility implemented on an STM32F3Discovery Board
5 stars 3 forks source link

Is any one try on other stm32f3 chip? #1

Open larryho5 opened 9 years ago

larryho5 commented 9 years ago

Will this code work on stm32f303ret6?

philippose commented 9 years ago

Hi, The code as such will work on other STM32F303 chips including the RET6, but you will have to modify the link scripts to account for the higher Flash Memory and larger RAM present on the RET6. In addition, you will have to check if the pin numbers for the various features need to be modified.

Enjoy :-)

Philippose

larryho5 commented 9 years ago

Thank you for your answer. I have changed the link script to the following but the USB still doesn't work at all ENTRY(Reset_Handler) MEMORY { FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K RAM (rw) : ORIGIN = 0x20000000, LENGTH = 64K CCRAM (rwx) : ORIGIN = 0x10000000, LENGTH = 16K }

/* highest address of the user mode stack / / this is essentially 0x20000000 + 64K */ _estack = 0x20010000;

I don't care the function yet, that's why I haven't change any pin location yet. Am I still missing something?

Best Regards, Larry

philippose commented 9 years ago

Hi Larry, That part of the linker script looks fine.

What exactly is happening when you flash the code onto the controller? Are you trying this on a Nucleo F303RE8 board? Or are you working on a separate STM32F303RET6 controller?

If this is on a Nucleo development board, you could also look into the "mbed.org" project which explicitly supports the Nucleo boards too.

Regards, Philippose

larryho5 commented 9 years ago

Dear Philippose,

After I flash the project (I'm using VCP project) everything running fine, just the USB has problem. The driver just keep showing "Device Descriptor Request Failed". I don't want to running on ebed because I am trying to using somebody's code, if I am using mbed then i have no support on the code.

Best Regards, Larry