Equipment: BBB, CCSv6, TI XDSv2 USB Emulator,
compiler for PRU is TIv2.0.0B2
Hi,
I am trying to learn how to use the PRU c-compiler and how to debug a programme for the PRU with CCSv6.
The am335x_pru_package contains a document named "04-CCS_PRU_Debugger-training.pdf" which provides some information how to do that with CCSv5. Now that my version is CCSv6 I would have expected that this should be ok.
So I created an empty PRU project (Empty project (with main.c) for BeagleBone_Black and TI XDSv2 USB Emulator with default settings. By default there are no initialization scripts for neither PRU_0 nor PRU_1.
At Project properties->General I left "Manage the project's target-configuration automatically" checked, which is the default setting.
I have come to the point where CCS connects to the CortexA8 which is still ok.
Then AM335x_15x15_EVM.gel and AM335x_PRU_ICSS.gel shall be loaded. They don't show up in the GEL Box, but beagleboneblack.gel is there with the status 'Success'.
After that the script PRU_ICSS_INIT shall be run, but it isn't there.
So I run the script
Scripts->AM335x System Initialisation->AM335x_BeagleBlack_Initialization instead .
Connection to PRU_0 then results in the following message:
Error connecting to the target:
(Error -1170 @ 0x4A322000)
Unable to access the DAP. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the
board, and/or try more reliable JTAG settings (e.g. lower TCLK).
(Emulation package 5.1.507.0)
Does anybody know the right procedure?
Some other questions would be:
- Is it meanwhile possible to create the code .bin file for the PRU with CCSv6?
- Can I create a project that contains the code for CortexA8 and the PRU_0/PRU_1? Or do I have to create one project for each processor and hence would have to test each project separately?
All hints are appreciated!
Thank you.
Martin