Cannot Load Flash Programming Algorithm ADuC7039

Hello All,

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.575V
Info: TotalIRLen = 5, IRPrint = 0x11
Info: Found Analog Devices System TAP device with ARM7TDMI-S core. Enabling ARM core.
Info: TotalIRLen = 9, IRPrint = 0x0111
Info: TotalIRLen = 5, IRPrint = 0x11
Info: Found Analog Devices System TAP device with ARM7TDMI-S core. Enabling ARM core.
Info: TotalIRLen = 9, IRPrint = 0x0111
Info: 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 pin
Info: Halting CPU core
DLL version V4.35b, compiled Sep  2 2011 18:34:46
Firmware: J-Link ARM V7 compiled Feb 15 2011 11:03:33
Hardware: V7.00
Hardware-Breakpoints: 2
Software-Breakpoints: 8192
Watchpoints:          0
Found 2 JTAG devices, Total IRLen = 9:
Id of device #0: 0x227E91CB
Id of device #1: 0x00000001
ARM7 identified.
JTAG speed: 4 kHz
Info: TotalIRLen = 5, IRPrint = 0x11
Info: Found Analog Devices System TAP device with ARM7TDMI-S core. Enabling ARM core.
Info: TotalIRLen = 9, IRPrint = 0x0111
JTAG speed: 750 kHz
Full 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.

Parents
  • 0
    •  Analog Employees 
    on Aug 2, 2018 4:30 PM
    This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.

    Thank you,
    EZ Admin
Reply
  • 0
    •  Analog Employees 
    on Aug 2, 2018 4:30 PM
    This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.

    Thank you,
    EZ Admin
Children
No Data