bootloader embedding

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

cross mob
Anonymous
Not applicable

Hi,

   

I am trying to write a program to update FX3 firmware to SPI eeprom over USB, without setting PMODE jumpers.

   

I found bootloader_embedding.zip on the Cypress site, in

   

http://www.cypress.com/?app=forum&id=167&rID=78171

   

I am having a problem getting this to work on the DVK with the 1.3.3 SDK, although I have tried to follow the instructions in the zip file exactly. It is hard to debug the example, as the UART is disconnected when the jump to the other image is made. When I try debugging with a JTAG debugger and openocd 8.0, no jump is evident in the crucial line:

   

CyU3PUsbJumpBackToBooter (0x40078000);

   

The other image is obviously not loaded, which should be evident when it has another VID/PID combination.

   

Is this sample up to date?

   

Are there any other example projects available?

   

 

   

Regards, Matt

0 Likes
2 Replies
Anonymous
Not applicable

 Hi Matt,

   

Can you please open cyfxtx.c file and check if the address 0x40078000 is specified as 2-stage bootloader address?

   

Regards,

   

- Madhu

0 Likes
Anonymous
Not applicable

Hi Madhu,

   

Yes, the cyfxtx.c file contains:

   

#define CY_U3P_SYS_MEM_TOP           (0x40078000)

   

and the linker script cyfx3.ld for FX3BootAppGcc contains 0x40078000 as well (as start of the code)

   

    SYS_MEM        : ORIGIN = 0x40078000    LENGTH = 0x7000

   

 

   

Regards, Matt
 

0 Likes