Post Go back to editing

ADUC7022, Problem at Flash programming through JTAG


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
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


Thank you in advance.




  • 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.

  • 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?