Hi,
It’s my first time on this forum, hope I don’ t break any rules.
My project had outgrown the tiny F103 MCU and I moved to L431 one.
I’ve created a custom board based on STM32L431RCT6 MCU and realized, that there’s no targets for L431.
As far as I understand, all STM targets are generated using some python script in tools folder, but looks like this script is generating files only for targets used in official STM dev/eval boards and there’s none based on L431xC chips.
So…
I need to create a target. I’m not that deep into assembler and details of booting and mapping memory and so on.
Could anyone here do the job?
Or, could someone tell me if it is safe enough just to:
copy files from STM32L432xC targets (including startup*.S and stm*.ld) TOOLCHAIN* directories,
rename files to reflect them belong to L431
remove USB from them (HOW???)
use resulting target as a parent of my custom target
What issues should I expect, beware, make sure, etc?..
Thank you for any support you could give me on this. I do really wish to stick to mbed os and not just bare FreeRTOS thingy
I’ve read quite a bit of documentation and finally managed to generate Pins for custom board using python script.
After fiddling around with TOOLCHAIN files from L433&L432 boards I was able to compile the minimalistic app (derived from blinky).
OTOH, I’m getting some scary errors about bootloader and debug console spits warnings about RW_IRAM1.
Any ideas?
Excerpt from debug output:
Reading symbols from /Users/dennis/Mbed Programs/mbed-os-example-blinky/BUILD/SAILINGCOMPASS_L431RC/ARMC6/mbed-os-example-blinky.elf...
warning:
Loadable section "RW_IRAM1" outside of ELF segments
done.
0001133:INFO:gdbserver:One client connected!
warning: Loadable section "RW_IRAM1" outside of ELF segments
warning: while parsing target memory map (at line 3): Required element is missing
0x1fff2f2c in ?? ()