CX3 Debugging with JTAG Lauterbach is not possible if SPI is flashed

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JeaPhiMO
Level 1
Level 1
10 likes given 10 sign-ins 10 replies posted

I am using a lauterbach JTAG model LA-3500 DEBUG-USB3 for ARM9 with Denebola board based on CX3.

When I flash my own bootloader in SPI, It is not possible to debug with JTAG  using the following command:

D.LOAD D:\Dev\SmileFW\Bootloader_v2\CX3\Bootloader_v2\Release\Bootloader_v2.elf /NOCODE

On the other hand if the spi is empty (full of 0xff) It is possible to step , put break point .

I don't figure out why it is not possible to debug with SPI flash loaded ?

0 Likes
1 Solution

Hi,

>> My question is how to debug a bootloader loaded in Flash and above all is it possible?

Not possible, JTAG cannot debug if the bootloader/application firmware is loaded into Flash.

You can debug the same bootloader (which is loaded into Flash) by loading into RAM through JTAG.

.

View solution in original post

0 Likes
5 Replies
alamandaa_16
Moderator
Moderator
Moderator
10 likes received First like received

Hi,

Please let me know what is your PMODE pin settings?

share the screenshot of error image.This will help us to spot the issue and give appropriate suggestions.

Regards,

Anil Srinivas.

0 Likes

Dear Alamanda,

The pin setting PMOD is selected for Denebola Booard to SPI SW#1=ON SW#2=OFF SW#3=ON that it means to be in SPI Mode.

1) If I flash in SPI my bootloader it work well in running mode

2) Unfortunately I need to to erase flash and download my bootloader into RAM to debug it but I am not in realtime and I don’t see my exception I this case

3) My problem is how to debug with my bootloader flashed in spi and running it with break point and debugging using normaly the command (sometimes I have an exception to correct)

Do you thing your cypress bootloader (PID:VID = 04B4:00F3) could that the hand of the cx3 and it is not possible to the JTAG to take the processor ?

D.LOAD D:\Dev\SmileFW\Bootloader_v2\CX3\Bootloader_v2\Release /NOCODE

Thanks for your answer

De : AlamandaA_16

Envoyé : jeudi 14 mars 2019 12:10

À : MORIN Jean-Philippe

Objet : Re: - CX3 Debugging with JTAG Lauterbach is not possible if SPI is flashed

<http://www.cypress.com>

Cypress Developer Community <https://community.cypress.com/?et=watches.email.thread>

CX3 Debugging with JTAG Lauterbach is not possible if SPI is flashed

reply from AlamandaA_16<https://community.cypress.com/people/AlamandaA_16?et=watches.email.thread> in USB Superspeed Peripherals - View the full discussion<https://community.cypress.com/message/189989?et=watches.email.thread#189989>

0 Likes

Hi,

To program the SPI flash first of all SPI read/write firmware has to be loaded on to the FX3 chip which will program the external SPI flash. It is not possible to do it via JTAG. JTAG is mainly provided for debugging purposes.

Regards,

Anil Srinivas.

0 Likes
lock attach
Attachments are accessible only for community members.

Hi,

Thank you for your reply. But I think I have not been very clear. My problem concerns how to debug my bootloader which is contained in the Flash with a JTAG. the problematique I encounter is that I am obliged to erase the Flash completely then to load my bootloader into RAM and perform a run to be able to debugger.

My question is how to debug a bootloader loaded in Flash and above all is it possible?

thanks

thanks

De : AlamandaA_16

Envoyé : lundi 25 mars 2019 07:05

À : MORIN Jean-Philippe

Objet : Re: - CX3 Debugging with JTAG Lauterbach is not possible if SPI is flashed

<http://www.cypress.com>

Cypress Developer Community <https://community.cypress.com/?et=watches.email.thread>

CX3 Debugging with JTAG Lauterbach is not possible if SPI is flashed

reply from AlamandaA_16<https://community.cypress.com/people/AlamandaA_16?et=watches.email.thread> in USB Superspeed Peripherals - View the full discussion<https://community.cypress.com/message/190806?et=watches.email.thread#190806>

0 Likes

Hi,

>> My question is how to debug a bootloader loaded in Flash and above all is it possible?

Not possible, JTAG cannot debug if the bootloader/application firmware is loaded into Flash.

You can debug the same bootloader (which is loaded into Flash) by loading into RAM through JTAG.

.

0 Likes