Hello,
I want to create a baremetal application to run on the R5F MCU for MCAN communication.
In the am65xx PDK, there is an example: packages/ti/csl/example/mcan/mcanEvmLoopback.
How can I setup a CCS project to test this example?
My environment is as follows:
Code Composer Studio 9.3.0.00012
PDK: pdk_am65xx_08_00_00_36
Phytec AM65x development board
XDS200 USB JTAG Emulator
Here is what I have done so far:
1. Create a new CSS Hello World project in CSS, change the Linker commander file to PDK/packages/ti/build/am65xx/linker_r5.lds
2. Change the ARM Compiler, Processor Options as follows:
3. In ARM Compiler -> Include Options, add PDK\packges
4. In ARM Compiler -> Predefined Symbols, add SOC_AM65XX
5. In ARM Linker -> File Search Path, add the following libraries and paths:
6. Remove the default hello.c file from the project and add the following file: PDK\packages\ti\csl\example\mcan\mcanEvmLoopback\mcan_evm_loopback_app_main_k3.c
7. I can build the project successfully, and I setup a breakpoint in the code.
8. Then I go to the top menu Run -> Debug, select the CPU MCU_PULSAR_Cortex_R5_0
9. It looks like it's running, but the breakpoint I configured is not working, and there is no output on the Debugger Console.
Could you please let me know what I have missed? Why the configured breakpoint is not working? How could I debug and test the application?
And where can I change the code to make it working with the Phytec board?
Thanks.