Hi BU,
Could you please share one linker cmd file for AM263x-PRU ?
And another question is for PRU, if I want to use PRU to access L2 SRAM, what address should I use? Do I need to configure the RAT first?
Regards,
Will
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi BU,
Could you please share one linker cmd file for AM263x-PRU ?
And another question is for PRU, if I want to use PRU to access L2 SRAM, what address should I use? Do I need to configure the RAT first?
Regards,
Will
Hi Will,
Please refer this: (+) AM2634: PRU linker file - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums
And another question is for PRU, if I want to use PRU to access L2 SRAM, what address should I use? Do I need to configure the RAT first?
As for accessing L2 SRAM, you do need RAT, you can access SRAM directly using the base address.
Hi Nilabh,
It is R5F to configure the RAT but not PRU itself, right? I can not find corresponding driver in the MCU+ SDK.
It is R5F to configure the RAT but not PRU itself, right? I can not find corresponding driver in the MCU+ SDK.
Yes RAT is for R5f, But as stated above you do not need RAT for SRAM access.
FYI: AM243x MCU+ SDK: Region based Address Translate (ti.com)
I think the linkage you shared above is not talking about the RAT we discussed here, I mean the RAT in the PRU.
Hi Will,
You do not need RAT to access L2 SRAM. I am able to write to and read back from L2 ocram with simple sbbo and lbbo instructions:
ldi32 R0, 0x70000000 //Load L2 SRAMaddress in R0
ldi32 R1, 0xDEADBEEF
sbbo &R1, R0,0,4 //Write to L2 SRAM
lbbo &R2, R0,0,4 //Read back.