thiemar / vectorcontrol

Vector control (FOC) firmware for the S2740VC and PX4ESC 1.6.
MIT License
55 stars 33 forks source link

Bootloader debugging #22

Open gudozhni opened 5 years ago

gudozhni commented 5 years ago

Hi!

I'm trying to adapt this project to my custom esc board. After flashing the bootloader and application I can see (I'm blinking a RGB LED on the board using board_indicate(); ) the UAVCAN node autobauding and getting node id allocated, but it never jumps to application. I strongly suspect that is_app_valid() check fails and it's the reason. I'd like to debug this further but I'm getting crazy trying to use GDB. When I run it with "bootloader.elf" and do "list" it lists through the "arc/src/stm32_vectors.S" source file, but I'd like to use bootloader's "main.c". How do I specify that? Any special options in makefile when linking? I have already turned debug info with -g3 but it doesn't help.

Please, any hint would be highly appreciated!

Thanks, Olex