Renesas Electronics Corporation (TSE: 6723), the world's number one supplier of microcontrollers, is a premier supplier of advanced semiconductor solutions including microcontrollers, SoC solutions and a broad range of analog …

mbed GR-Peach and Debugging

21 May 2016

https://developer.mbed.org/teams/Renesas/wiki/Exporting-to-e2studio-with-CMSIS_DAP-DBG

"Exporting to e2studio with CMSIS_DAP DBG"

/media/uploads/kg1/jlink_debug4s.png

This is satisfactory using GR-PEACH_blinky but needs the extra action "reset board". Stepping over lines (F6) is ok but why:

google search: openocd "cortex_a maskisr" ???

https://sourceforge.net/p/openocd/mailman/message/34601993/ https://github.com/mbedmicro/mbed/blob/master/workspace_tools/export/e2studio_rz_a1h_gdbinit.tmpl https://devel.rtems.org/wiki/Debugging/OpenOCD/Xilinx_Zynq

The above links do not explain why this is necessary. Please explain.

This "fix" prevents the Segger Launcher from working.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

https://developer.mbed.org/teams/Renesas/wiki/Exporting-to-e2studio-with-J_Link-debug

"Exporting to e2studio with J_Link debug"

/media/uploads/kg1/jlink_debug9s.png

/media/uploads/kg1/jlink_debug5s.png

Should this run to the first statement in main.cpp?

Stepping over lines (F6) is ok.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

https://developer.mbed.org/users/WiredHome/code/RA8875_Demo/

"simple demo program for a graphics library"

Using the online arm compiler this demo program compiles and runs on the GR-Peach.

The next step is to try this mbed demo program and debug it in e2studio:

/media/uploads/kg1/jlink_debug6s.png

/media/uploads/kg1/jlink_debug8s.png

/media/uploads/kg1/jlink_debug7s.png

With a little help (using F8) it runs to the first statement in main.cpp

Using F6 at this first statement it fails.

What modifications to the demo code are necessary to achieve the GR-Peach_blinky result?

Your help would be much appreciated.