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.
Tool/software:
I can run some TI examples on the target board, one of which is the EtherCAT Slave simple demo with TwinCAT. Everything was working.
However, I cannot download one of TI examples any more to the board (by CCS Run/Debug or CCS Run/Load), including EtherCAT Slave Simple Demo.
The error message is like this:
MAIN_Cortex_R5_0_0: AM2434_ALX
MAIN_Cortex_R5_0_0: GEL Output: CPU reset (soft reset) has been issued through GEL.
MAIN_Cortex_R5_0_0: Trouble Writing Memory Block at 0x0 on Page 0 of Length 0x40: (Error -1065 @ 0x40) Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 12.8.0.00189)
MAIN_Cortex_R5_0_0: File Loader: Verification failed: Target failed to write 0x00000000
MAIN_Cortex_R5_0_0: GEL: File: /home/username/workspace_v12/ethercat_slave_simple_demo_am243x-lp_r5fss0-0_freertos_ti-arm-clang/Release/ethercat_slave_simple_demo_am243x-lp_r5fss0-0_freertos_ti-arm-clang.out: Load failed.
Could you give me any hint?
Hello,
Are you following the getting started steps here?
https://software-dl.ti.com/mcu-plus-sdk/esd/AM243X/09_02_00_50/exports/docs/api_guide_am243x/GETTING_STARTED.html
What is the difference in what you are doing for "run some TI examples on the target board... Everything was working", and "I cannot download one of TI examples any more to the board"?
Regards,
Nick
Yes, sbl_null was flashed before. I could run hello world, hello world cpp, system project with 5 subprojects on 5 cores on AM243x-LP board, and derivers/boot demo to erase all flash. I could then run EtherCAT Slave Simple Example connected to TwinCAT on r5f subsystem, where I could change the status of three LEDs; it worked a few times of debug. There was then a meeting. After that I repeated to debug EtherCAT Simple Example and ended up with the error message shown above. I then tried to run deriver/boot example using for jtag flashing again - it did not work. Then I tried a few other examples; it alse failed to work.
I then used uniFlash gui to read the memory, only first 0x80 bytes have values and all rest memory is zeros. I have not checked the generated linker script.
I am wondering if the boot process is disrupted. However, the root cause is not the most important to me at this moment. How to get debug work again?
I can share my project with you I did not modify your example at all.
Hello Jinlong,
After that I repeated to debug EtherCAT Simple Example and ended up with the error message shown above.
Have you tried power cycling the EVM and reconnecting the JTAG cable when the error occur?
Did you still face the same issue after doing the method suggested above?
Also when you power cycle the EVM are you able to see the SBL logs?
Also please tell us how many EVM are connected to the host PC?
I can share my project with you I did not modify your example at all.
It will be helpful to replicate the issue and debug it faster.
Regards,
Tushar
Thanks - I do not see SBL logs now. I had seen them when the board was still working
I will try this:
e2e.ti.com/.../lp-am243-lp-am243x-can-not-flash-firmware.
Hi Jinlong,
Thanks for the confirmation. So it seems that the cores are not initialized when you are facing the issue.
Try once after initializing the EVM and let us know if you still face issues.
Regards,
Tushar
Yes, missing sbl outputs indicated that I have deleted sbl before. I recovered the board by flashing sbl again.
Hi Jinlong,
I recovered the board by flashing sbl again
Thanks for the confirmation.
Closing the thread.
Regards,
Tushar