Support for LEON3 target

Hi,

First, I want to say that Dominic did a great job, thanks.

I want to add support for a LEON3 processor.

Since it does not have an ARM core I am starting

from scratch.

As JTAG Interface I am using a Amotec JTAGKey.

I am not sure how to use the JTAG commands.

I can stop and start the processor using the Amontec demo program.

The steps are:

  1. Set instruction register length to 6 bit

  2. Write 2h into instruction register → selecting Address/Command register of DSU

  3. Set data register length to 35 bit

  4. Write 6 90 00 00 00h into data register → selecting DSU control register

  5. Write 3h into instruction register → selecting Data register of DSU

  6. Set data register length to 33 bit

  7. Write 0 00 00 00 04h into data register → enable “Break on IU interrupt”

8 ) Write 2h into instruction register → selecting Address/Command register of DSU

  1. Set data register length to 35 bit

  2. Write 6 90 00 00 20h into data register → selecting DSU Break register

  3. Write 3h into instruction register → selecting Data register of DSU

  4. Set data register length to 33 bit

  5. Write 0 00 00 00 01h into data register → break now first CPU in the system

Can anyone tell me what is corresponding procedure?

Right now I am trying to work with jtag_add_ir_scan() and jtag_add_dr_scan().

Best Regards,

Steindi

Please send email to Amontec team.

We have an other customer using the Amontec JTAGkey + a custom GDB server (not the openocd layer for now) for simple debug of LEON3 core (it works on Altera FPGA!) + flashing the code via JTAGkey.

Best regards,

Laurent

http://www.amontec.com

Hi folks,

congratulations for this great job called OOCD.

As Steindi, I would like to add support for LEON3 in OOCD, but I’m new in this amazing world.

As JTAG Interface I’m using Xilinx DLC7. Reading other posts of this forum, I found that DLC5 (compatible with DLC7) is currently supported by OOCD so I suppose I have to develop the software for the communication between OOCD and LEON3 DSU via JTAG.

Could you please give me some ideas / clues on how to start this project?

Do you think is a good idea or is there any other alternative?

Thanks in advance and best regards,

Jorge