Other Parts Discussed in Thread: UNIFLASH, , CC2642R
Tool/software: Code Composer Studio
Hi,
I am getting trouble making OAD_OffChip example work on my custom board. As I said, my custom board has 2642R2 MCU and my custom board has no hardware problem because I already tried a lot of examples and they worked on my board including SimplePeripheral example but I need OAD_OffChip example for my project.
I already tried this link: http://dev.ti.com/tirex/explore/content/simplelink_cc13x2_26x2_sdk_4_10_00_78/docs/ble5stack/ble_user_guide/html/cc13x2_26x2/custom-hardware-cc13x2_26x2.html#change-device-configuration and I changed the project variant in CCS. With this, I just accomplished that SimplePeripheral example works on my board now but I could not make OAD_OffChip example work.
I have three questions;
1. with original launch board, I used Uniflash to load my code on the board by selecting "LAUNCHXL-CC26X2R1" option and I select ".hex" files to be loaded but now, I select my MCU first in Uniflash program then I select the debugger. With this configuration, the hex files are not working, only "out" files are working. Why is that? (I am talking SimplePeripheral example now)
2. Even if I changed my bim and OAD_OffChip projects' variant in CCS for both projects, these examples are not working on my custom board. I already tried different hex or out file combinations. What should I do?
3. As I said, SimplePeripheral example works on my board with uploading out file via Uniflash and also realtime debugging via CCS. But the OAD_OffChip example is not working also with realtime debugging option with CCS. I already tried to decrease debugger frequency (I read this solution from your blog also). How should I debug my board with OAD_OffChip example.
I think, the solution of 2 and 3 questions will be same if we can figure it out.
For question 3, I got the error below;
--> Cortex_M4_0: JTAG Communication Error: (Error -1170 @ 0x0) Unable to access the DAP. Reset the device, and retry the operation. If the error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.1.0.00001)
-->Cortex_M4_0: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging
Please help me with that.