I downloaded and built one of your Demo-Projects: LedsAndButtons. I followed your instructions to debug the software using a segger j-link plus:
Programming the target seems to work, but when XDK Workbench switches to Debug-View, XDK does not find the project source code. Only Disassembly debugging works, which is not really useful:
Is this a known issue of the XDK Workbench (default debugging settings), or did I do something wrong here?
Solved! Go to Solution.
I figured now, that the programming using JLink does not work. When I use the Flash button, the application starts and does control the LED output according to the xdk-buttons-1/2 as expected.
If I use the JLink Debug the demo project is not running and on xdk-button-2 press, xdk returns the following error to console: "Application Firmware Corrupted"
The only thing that make me wonder from the JLinkGDBServerCL output is the warning and the low target voltage of 2.46V. Other than that Download is stated with "Verified OK"
I did not change the run-configuration at all, but I suspect an error in there:
ok, it looks like there is an issue with loading the *.out file when debugging.
JLink loads: debug/LedsAndButtons.out -> "Application Firmware Corrupted"
Flash loads: debug/LedsAndButtons.bin -> "ok"
What actually works is using "Flash" to load the .bin and then "Debug" having the debug run-configuration set to "Connect to running target". This option does skip programming the .out file.
Debugging is not supported with XDK device having bootloader version above v0.0.10. It is known limitation in XDK Workbench.
You can Flash bootloader version v0.0.10 and try to debug the application.
I am able to debug the application with v0.0.10 bootloader version. I have shared screenshot for your reference,
The Reason why you are getting "Application Firmware Corrupted" message in console,
When you tried to debug the application with XDK device with v1.2.0 Bootloader version.
Device has to go Application mode. But Device didn't go to Application mode. Device remains in the Bootloader mode itself. You can see Red and Yellow LED ON in your XDK device and Mode remains in Bootloader in Workbench.
During debug mode, When the device is in Bootloader mode, If you press the button 2, there is possibility of firmware corruption. That is the reason why you are getting "Application Firmware Corrupted" message in console.