Run "peripheral server sleep" example on RSL10

Hello,

I wish to run “peripheral server sleep” example code in Melexis RDB91805-BLE(Reference Designe Board).
RDB91805-BLE is composed of MLX91805 and RSL10.

The example is build successfully.
But when execute debug, error message occurs like blew.

Starting target CPU…
ERROR: CPU is not halted
ERROR: Cannot read register 15 (R15) while CPU is running
Reading all registers
ERROR: Cannot read register 0 (R0) while CPU is running
ERROR: Cannot read register 1 (R1) while CPU is running
ERROR: Cannot read register 2 (R2) while CPU is running
ERROR: Cannot read register 3 (R3) while CPU is running
ERROR: Cannot read register 4 (R4) while CPU is running
ERROR: Cannot read register 5 (R5) while CPU is running
ERROR: Cannot read register 6 (R6) while CPU is running
ERROR: Cannot read register 7 (R7) while CPU is running
ERROR: Cannot read register 8 (R8) while CPU is running
ERROR: Cannot read register 9 (R9) while CPU is running
ERROR: Cannot read register 10 (R10) while CPU is running
ERROR: Cannot read register 11 (R11) while CPU is running
ERROR: Cannot read register 12 (R12) while CPU is running
ERROR: Cannot read register 13 (R13) while CPU is running
ERROR: Cannot read register 14 (R14) while CPU is running
ERROR: Cannot read register 15 (R15) while CPU is running
ERROR: Cannot read register 16 (XPSR) while CPU is running
ERROR: Cannot read register 17 (MSP) while CPU is running
ERROR: Cannot read register 18 (PSP) while CPU is running
ERROR: Cannot read register 24 (PRIMASK) while CPU is running
ERROR: Cannot read register 25 (BASEPRI) while CPU is running
ERROR: Cannot read register 26 (FAULTMASK) while CPU is running
ERROR: Cannot read register 27 (CONTROL) while CPU is running
Removing breakpoint @ address 0x0010316C, Size = 2
Removing breakpoint @ address 0x00103170, Size = 2
WARNING: Failed to read memory @ address 0xDEADBEEE
WARNING: Failed to read memory @ address 0xDEADBEEE
WARNING: Failed to read memory @ address 0xDEADBEEE
WARNING: Failed to read memory @ address 0xDEADBEEE
WARNING: Failed to read memory @ address 0xDEADBEEE
WARNING: Target connection lost.
WARNING: Target connection lost.
WARNING: Target connection lost.
Reading 64 bytes @ address 0x00103180
WARNING: Failed to read memory @ address 0x00103180
WARNING: Failed to read memory @ address 0x001031B0
WARNING: Failed to read memory @ address 0x001031B0

And I made a break point at start of main function.
But program doesn’t stop at break point.

How could I fix this?
Please let me know.

Hi @jiyeon,

Messages you are seeing are related to existence of sleep mode in ‘peripheral_server_sleep’ example code. System clocks are powered down when the device goes to sleep. Therefore, the debug session cannot be kept alive between sleep cycles.

How to debug with sleep mode is discussed in section 7.4 in RSL10_getting_started_guide available in RSL10 Documentation Package

Thank you for using our Community Forum.

1 Like