Open larryho5 opened 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
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
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
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
Will this code work on stm32f303ret6?