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:
// 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.
How can I recover this board and re-gain JTAG flash/debug capability?
Thank you.
Rafael