ADUC7022, Problem at Flash programming through JTAG

Hello,


We're implementing programming support of Flash for device from subject. And
we're faced with some issue, see description below:

1. After power-on device we can read ID register via JTAG successfully.
2. Enter scan chain 2, which enables the Embedded ICE macrocell registers to be
accessed. Processor is forced into debug state by asserting the DBGRQ bit of
the debug control register in EmbeddedICE and monitor DBGACK in debug status
register.
3. DBGACK is set and ARM7TDMI is in debug mode and halted.
4. In this point we select scan chain 1

After selecting scan chain 1 we receive no response from TAP controller. All
instructions shifted into TAP controller are ignored and TDO pin is permanently
high (we have pull-up on this pin).

Is the problem in power-up sequence?

Does this device need special settings of any pins, which are not described in
datasheet?

 

Thank you in advance.

 

BR

Frantisek

  • 0
    •  Analog Employees 
    on Oct 23, 2014 5:12 AM

    As a start I suggest you have a look into the flash-programming code which comes with the Keil or IAR tool-chains.

    The source is provided with this utilities.

    Also note that in Keil and IAR i.e. for the J-Link/J-Trace debugging drivers a specific ADuC7xxx Reset-Strategy is implemented.

    This means that after any RESET-event as first the on-chip kernel need to be executed before you can access the part.

    I.e. the kernel decides beyond other things if the User-Code  or the on-chip boot-loader should be executed.

    After this the User-Code, if selected by the BM-pin, is started at address 0x00000000 - at this point you should have access.

  • 0
    •  Analog Employees 
    on Oct 24, 2014 6:22 AM

    Can you try mass-erase and download via the serial interface - UART in case of ADuC7022.

    Normally with the J-Link or Midas-Link it should work out of the box with Keil or IAR irf the project settings are ok.

  • Hello,

    We have tried J-Link, but it's also not able to "program" device. Doesn't there exit recommended connection for pins for programming via JTAG?