Quantcast
Channel: Why stm32f103's elf file works well, but binary not? - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by Ilya for Why stm32f103's elf file works well, but binary not?

$
0
0

@old_timer Thank you very much for your detailed answer. I found that the problem is in oversized firmware. My chip has only 64k of flash and fw is 68k, so eclipse didn't tell me that the firmware is oversized and tried to flash it. Also, template in which my project based uses newlib, where startup.s was replaced by C files and I guess there is some issue. So I created a new project from openstm32 tamplate (it copied all necessary files from stdperiph lib, cmsis, etc + ld), after that I added my files, optimized build by removing unused files and set -Os flag, and it seems working for me, but the firmware size is almost oversized. I will try yr explanation )


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images