a noob feel confuse with the build progress. #492
-
To someone who will concern. Recently, I try to use the rust for my stm32 coding. I found this lib and try to use that. everything goes well except the debug part. I will show that at the blew. PS D:\CODE\RUST\STMf103Pro> gdb -q target/thumbv7em-none-eabihf/debug/STMf103Pro by the way, if I dont want to debug, trans to load the .bin to the f103c8t6 directly using STM32 ST-LINK Utility. It remind me that File size is bigger than the flash memory size. I know that because c8t6 only have 64kb flash, but my release file have 138kb. if I have some wrong with the cargo build part. Thanks for your information. by the way, I am not native speaker in English, hope that issue will not bother you too much. Thanks again! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
.elf
file is not the size of firmware. It includes advanced information to simplify access and debug, but not uploaded to your chip. To make a bare.bin
from it you can usecargo objcopy
or justcargo size
to size firmware size.probe-rs
tool instead ofopenocd
andgdb
. It is much more easy to use.