After freezing my last board by loading a modified program for a ADuC7024 chip on it I decided to do better research before I obtained my second board. I have found some great examples here and elsewhere written by ADI engineers to help get me started.
I have a main.c file written by ADI that is sopposed to blink the LED's and then provides setup code for using the VBAT / VTEMP / IADC channels, that I have only modified to include a few delays.
I also have a aduc7039.h header file, along with a aduc7038.s startup file which is what Kiel reqommends to use with the 7038 since they are the same.
Finally I have an irc_arm.c file to assign function pointers for the interupts.
I am using Keil's uVision4 and a mIDAS-Link USB to JTAG programmer.
Everything compiles and simulates just fine however when I go to load it on the chip in Debug mode I get the following:
Load "C:\\Documents and Settings\\cx\\Desktop\\ADIEX\\ADIExample.AXF" VTarget = 2.575VInfo: TotalIRLen = 5, IRPrint = 0x11Info: Found Analog Devices System TAP device with ARM7TDMI-S core. Enabling ARM core.Info: TotalIRLen = 9, IRPrint = 0x0111Info: TotalIRLen = 5, IRPrint = 0x11Info: Found Analog Devices System TAP device with ARM7TDMI-S core. Enabling ARM core.Info: TotalIRLen = 9, IRPrint = 0x0111Info: Core does not stop after Reset, setting WP to stop it.Info: Failed to halt CPU core after Reset (BP@0), using default reset strategy.Info: Resetting target using RESET pinInfo: Halting CPU coreDLL version V4.35b, compiled Sep 2 2011 18:34:46Firmware: J-Link ARM V7 compiled Feb 15 2011 11:03:33Hardware: V7.00Hardware-Breakpoints: 2Software-Breakpoints: 8192Watchpoints: 0Found 2 JTAG devices, Total IRLen = 9: Id of device #0: 0x227E91CB Id of device #1: 0x00000001ARM7 identified.JTAG speed: 4 kHzInfo: TotalIRLen = 5, IRPrint = 0x11Info: Found Analog Devices System TAP device with ARM7TDMI-S core. Enabling ARM core.Info: TotalIRLen = 9, IRPrint = 0x0111JTAG speed: 750 kHzFull Chip Erase Failed!
Am I still missing something?
Should I not try starting in debug mode before I download the program to the chip. I would rather start in debug mode so I can have a clear way to hault the program and erase it so I don't have a repeat of last time.
Any help would be much appriciated.