CX3 PMODE boot option

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

cross mob
NoAr_1540581
Level 5
Level 5
Distributor - Macnica (Japan)
5 solutions authored 250 sign-ins 100 replies posted

Hello

Normally, when writing FW and booting, I think that Dip-switch will be used to switch PMODE. At the customer's request, the PMODE setting is "fixed" without using Dip-switch.
Q) Is there a way to write FW from the HOST (Control Center) to SPI Flash and then boot from SPI Flash? Please let me know if there is a method in which PMODE is fixed and both(USB and SPI) boot options can be set.

Best Regards

Arai

0 Likes
1 Solution

Hello Arai san,


I understand the customer requirement as pointed by you.
I verified this on the FX3S FPGA DVK by PACTRON and since there was some image in the FLASH already, i had to change the PMODE to USB first to make it enumerate and then change it back to PMODE: 0Z1.

In customer's use case, during first boot up, the device will "fail" loading of the image from FLASH into RAM since the FLASH will be empty or won't have the first 2 bytes as 'CY' and will fallback to USB boot and enumerate as Cypress USB Bootloader Device.

Once the device enumerates as Cypress USB Bootloader Device, you can program the SPI FLASH using the control center and once it succeeded, reboot (or power cycle) the device.

The device will again try to load the data from FLASH to RAM and since the image has CY initials as the first 2 bytes, the device will successfully enumerate as the customer's firmware device (Cypress Bulkloop Example Device, in my case).

Once the device enumerates as the expected device, the customer can use the above implementation when they want to program the device again, to make the enumeration fallback to USB.

Regards,
Yashwant

View solution in original post

0 Likes
8 Replies