Hello,
I've recently developed a new PCB with a RA6M5 as the MCU. And following the outline as specified in the E2Lite manual have set up a 10 pin header to interface from the RA6M5 to the E2Lite. However whenever I try to connect to the MCU in any way it always errors out. When trying to run the debug image for the MCU through e2studio the following error pops up:
When trying to access the MCU through the Renesas Flash Programmer to erase the image or connect I get the following error.
I also get this error when trying to change the debug state of the MCU through the Renesas Device Partition Manager in e2studio:
I am frankly lost on what else to try at this point. It's a brand new board with a brand new MCU. Any help or insight would be appreciated.
Is this the first time you try to program this device ?
The devices ship from Renesas factory in CM state. They need to transition from CM state, to the SSD state to be able to set the trustzone boundaries. The boundary setting command is only available in the SSD DLM state.
The change of the DLM state of the device can only happen in boot mode via serial programming (SCI or USB). This cannot be done via SWD.
The easiest way to do this is to follow the connection diagram on chapter 2.4.2 to allow the debugger both interface and switch operating modes automatically.
https://www.renesas.com/en/document/mat/e2-emulator-e2-emulator-lite-additional-document-users-manual-notes-connection-ra-devices?language=en&r=488806
When the connections allow the SCI interface, try to connect with RFP and change the DLM state to SSD.
Let me know if you have further questions.