[SOLVED] Debugging with V0.4.1 firmware

Hello community!

Just wondering if anyone managed to get debugging working with the V0.4.1 firmware release for the Photon? :smiley:

There’s some issues with the .elf generated and maybe someone has more insights into the issue.

A modular build:

Reading symbols from ../firmware-0.4.1/build/target/user-part/platform-6-m/applications/tinker/tinker.elf...done.
0x08002d60 in ?? ()

Loading section .module_info, size 0x18 lma 0x80a0000
Loading section .text, size 0x11e8 lma 0x80a0018
Loading section .data, size 0x68 lma 0x80a1200
Loading section .module_info_suffix, size 0x24 lma 0x80a1268
Loading section .module_info_crc, size 0x4 lma 0x80a128c
Start address 0x80a0018, load size 4752

A non-modular build:

Reading symbols from ../firmware-0.4.1/build/target/main/platform-6/applications/tinker/tinker.elf...done.
0x08002d60 in ?? ()

Loading section .vectors, size 0x184 lma 0x8020000
Loading section .module_info, size 0x18 lma 0x8020184
Loading section .text, size 0x59920 lma 0x80201a0
Loading section .data, size 0x5f4 lma 0x8079ac0
Loading section .module_info_suffix, size 0x24 lma 0x807a0b4
Loading section .module_info_crc, size 0x4 lma 0x807a0d8

There seems to be an additional .vectors compared to the working modular build.

For anyone interested in using a Debugger and on a Mac, you will need to upgrade the stlink binary (mine is almost 1 year old) and it will work well with a STM32F2xx device!

A tutorial for using Netbeans to debug for Mac will be coming soon :smile:

1 Like

It’s here! - [Debugging] Netbeans IDE on Mac OSX [17 June 2015]

Need to update it for the latest firmware code debugging works for now :smile:

1 Like

Good to hear - I was really puzzled why it didn’t work for you.

Needed a st-util upgrade :wink:

1 Like