Closed CHTUZKI closed 1 year ago
Does the board have a bootloader you do not want to overwrite? If not you do not want to relocate the vector table. If it has one is the offset correct? And have you modified the loader script to match it?
Does the main oscillator crystal frequency match the build? IIRC the default is 8 MHz.
My crystal oscillator is 8MHZ.
I commented out the following code:
-D VECT_TAB_OFFSET=0x7000
-Wl,--defsym=LD_VECT_TAB_OFFSET=0x7000,
but the USB still doesn't work, I'm not sure what the reason is.
STM32F103RCTX_FLASH.ld and STM32F103RCTX_BL28K_FLASH.ld, what are the roles of these two files? There were no such files in the previous versions. I wanted to use the .ld file provided by platformio IDE, so I deleted these two files, and the program encountered an error.
but the USB still doesn't work, I'm not sure what the reason is.
USB is sensitive to clock setup, it has to be exact or it fails. Could be due to the STM32F103xE symbol not beeing defined? See the attached Web Builder .ini file.
what are the roles of these two files?
It tells the linker where to place/find the different elements (code, vector table, static data, ram...) in memory.
If you flash a Web Builder image does that work? Try with "Mach3 USB breakout (BSMCE04U)". Here is the .ini used for such a build:
problem solved. job.zip works fine.
HI.
I am using an STM32F103RCT6 development board, I have not made any changes to the project code, I only modified the platformio.ini file, then compiled the project, and used Jink to upload the firmware to my STM32F103RCT6. However, when I plug in the USB cable to my PC, my PC tells me 'Windows has stopped this device because it has reported problems. (Code 43)'. I am not sure why this is happening.
The following is the code for my platformio.ini file: