Hi,
I am trying to debug a program for Arduino Uno R4 WiFi with Platform IO Debugger.
- Renesas RA built-in debug channel, no external hardware.
- Communication via USB
platformio.ini
platform = renesas-ra
board = uno_r4_wifi
framework = arduino
The Run debug, breakpoint, step-by-step, watch variables, all work.
However, the Peripherals values tab has an erratic behaviour:
- Sometimes it does not show anything (tab not filled)
- Or it shows an ever lasting Loading…
- Or it displays the registers, however the values seem to be erroneous
- Registers with the same value when they should be different
- That behaviour is repeated at each refresh of the tab), etc.
- Registers with the same value when they should be different
- Sometimes the notification appears: ''error when reading memory …" (or equivalent)
- However some registers show indeed coherent values.
I assume that Peripherals can only be read when the device is stopped, not when it is running.
Registers:
- I am interested in AGT1
- May be the problem comes from
<peripheral derivedFrom="AGT0">
- May be the problem comes from
- The register with coherent information: MSTP / MSTPCRD
I have tried some solutions, none is working.
Added the following to platformio.ini
# Forces Cortex-Debug to structure requests cleanly
debug_extra_cmds =
set mem inaccessible-by-default off
# Force a localised, clean SVD parse
debug_svd_path = DebugUserFiles/R7FA4M1AB_simplified.svd
#SVD: only the peripherals interesting for debugging
Any clues?
Of course, I can add instructions for transferring the desired register values to memories in parts selected … however it is a pity not to be able to use that powerful feature.
Thanks a lot