Other Parts Discussed in Thread: UNIFLASH, EK-TM4C1294XL, TM4C1294NCPDT, LMFLASHPROGRAMMER
Hi,
Target: TM4C129ENCPDT Tiva processor
Emulator: XDS100v2
IDE: Code Composer 5.5
Application Background: In this device we have an application that provides a user interface to our main product controller. It receives/responds to messages over RS485 and USB ports while it communicates to the main controller over CAN. This is all working fine.
I was given the task to add the proper enable and kick the watchdog to provide us with a safe reset in case the application hangs. But after adding the code I thought was needed to enable the dog then I can no longer connect with Code Composer to flash/debug the next build over JTAG. I receive the following error: Error connecting to the target: (Error - 1170 @ 0x0) Unable to access the DAP. Reset the device, and retry the operation.
Here are the initialization steps in my watcdhog init function:
|
1
2
3
4
5
6
7
8
9
10
11
|
//Enable the peripheral
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_WDOG0); // Load WDTLOAD with desired timeout count ~2.240M ROM_WatchdogReloadSet(WATCHDOG0_BASE, WATCHDOG_TIMEOUT_COUNT); // Configure watchdog timer to generate a reset by setting the // RESEN bit in the WDTCTL register ROM_WatchdogResetEnable(WATCHDOG0_BASE); // Enable the watchdog timer ROM_WatchdogEnable(WATCHDOG0_BASE); |
I later realized that my watchdog kick function in my last build was nothing but an empty prototype so I assume or would expect the device to be constantly reset. However I can connect over our USB interface and the application seems to be working properly.
I am pretty sure this locked up condition was triggered when I added this line ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_WDOG0);. In my first watchdog flash attempt the board was pretty much dead which correlates to my empty kick function, but I was able to re-build and flash a new version and the only code I added was this line.
How can I recover this board and re-gain JTAG flash/debug capability?
How can I keep the board in boot mode so that I can attach Code Composer or UniFlash to clear the bad applicaiton?
Thank you.
