Other Parts Discussed in Thread: SYSCONFIG
Hi, dear TI support service!
I am developing a simple program that uses PRU0 to generate a real time bit bang on GPIOs and it works very well.
Now I am trying to debug a program for the PRU1 that checks the data generated from the PRU0 program but I am having the issue that I am unable from PRU1 to access both the data memory DMEM0 and DMEM1.
My program boots OK up to the main() function, but when the first access to the memory (read or write) is tried, the emulation stops with the red error on the Debug Output window:
ICSSM_PRU_1: Trouble Halting Target CPU: (Error -2062 @ 0x0) Unable to halt device. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 20.4.0.3756)
In the following my linker.cmd file (I am unable to upload it)

In the following an excerpt of the map file (I am unable to upload it)
GLOBAL SYMBOLS: SORTED BY Symbol Address
page address name
---- ------- ----
0 00000000 _c_int00_noinit_noargs
0 0000001c main
0 000003ec __TI_zero_init_nomemset
0 00000418 abort
0 00000420 C$$EXIT
0 00000438 __TI_Handler_Table_Base
0 0000043a __TI_Handler_Table_Limit
0 0000043c __TI_CINIT_Base
0 0000044c __TI_CINIT_Limit
1 00002000 numerr
1 00002028 numloopOK
1 0000202c _stack
1 0000212c __TI_STACK_END
2 00010000 shared_R30
2 00022000 CT_PRU0_CTRL
abs 0000000b __PRU_CREG_PRU0_CTRL
abs 00000100 __TI_STACK_SIZE
abs 00022000 __PRU_CREG_BASE_PRU0_CTRL
abs ffffffff __c_args__
The variable numloopOK is allocated at 0x2028 so it seems OK.
As stated, the program runs just fine until a data memory access is executed.
As stated, a more complex program for the PRU0 works OK.
Best regards and many thanks again for your help!
Michele Sponchiado