Hi,
We are trying to send and receive data via DCAN of AM3358 using PRU engine. We see issues which is very strange and stopping us not to continue further. The below are some highlights,
1. In our program PRU updates shared memory of it to show the current status to user, the shared memory here is 0x12000 & 0x12004 (as in lnk-am3xx.cmd) of DATA 12K RAM2. And an application program in Linux read shared memory of PRU and display in UART console.
2. When we integrate/enable our DDR memory access code into our project we are able to see fairly expected result. I mention fairly because in-stable behaviour
rxdata:7=5f525543 sharedDram=1 +1=100 <<<<< This is not accepted and displayed for long duration more than minute, it shows control stuck at end of function "initDcan()".
rxdata:0=69007265 sharedDram=8 +1=0 <<<<< This is the expected content
3. When we remove DDR memory access code the behaviour is very strange.
rxdata:0=69007265 sharedDram=427ca17e +1=80db864 <<<<<< This appears to be very strange, it appears to be PRU does not run our program.
4. Attached folder structure:
NonWorking
dataHexDump - Hex Dump of data.bin created by hexpru
main.c - Major code snippet, which shows different updates about Shared Memory
SyncCAN.map - Map file generated during non working case
textHexDump - Hex Dump of text.bin created by hexpru
UART_Non_Working.log - UART log at non working case which includes boot log.
Working
CRO_Shot.jpg - CRO capture during fairly working cmd
dataHexDump - Hex Dump of data.bin created by hexpru
main.c - Major code snippet, which shows different updates about Shared Memory
SyncCAN.map - Map file generated during working case
textHexDump - Hex Dump of text.bin created by hexpru
UART_Working.log - UART log at working case which includes boot log.
bin.cmd - command file used by hexpru
lnk-am3xx.cmd - command file used by clpru
We feel memory corruption either may be issue with command files or due to accessing DDR region from 0x80001000, we use kernel from EVM of AM3358 with RT patch. Kindly share your suggestion for us to continue further. 6012.PRU_AM3358_DBG.zip