skuep / AIOC

Ham Radio All-in-one-Cable
MIT License
660 stars 50 forks source link

Error while debugging on a nucleo f302 #70

Open PhipsmonET opened 1 month ago

PhipsmonET commented 1 month ago

Hey, i'm trying to implement this on a nucleo f302r8 board but I'm facing some issue while launching the debug in CubeIDE. Basically after a succesful build I get this error in debug:

Error in final launch sequence:

Failed to execute MI command: load C:\Users\pit\Desktop\stm32\aioc-fw\Debug\aioc-fw.elf

Error message from debugger back end: Load failed Failed to execute MI command: load C:\Users\pit\Desktop\stm32\aioc-fw\Debug\aioc-fw.elf

Error message from debugger back end: Load failed Failed to execute MI command: load C:\Users\pit\Desktop\stm32\aioc-fw\Debug\aioc-fw.elf

Error message from debugger back end: Load failed Load failed

Is this an already known issue? Thanks!

PhipsmonET commented 1 month ago

I've just noticed that the bin size of my release build is way bigger than the bin that Skuep has given us, i'm sure im missing something.

P.S my bin file is 125Kb, way bigger than the flash size of the f302R8 that has 64Kb of flash

skuep commented 1 month ago

I am not exactly sure.. my files are a Release build... What linker script do you use?

PhipsmonET commented 1 month ago

Ah thanks!, that might be the problem! I was indeed using the 302cb linker so no wonder it didn'work. I'll try to build with the 302r8 script and get back to you as soon as possible.