For testing your SPI connection, you can load our SPI example firmware into the RAM of FX3 and try to write data to the devices and read back the same. The examples are available in the FX3 SDK in the following locations:
- For SPI Read / Write:<FX3 SDK INSTALLATION PATH> \ 1.3\firmware\serialif_examples\cyfxusbspiregmode.
Can you plase do follwing steps.
step-1: Erase the data for that use erase command=0x00c4.
Step-2: Write data to the flash for that use write command=0x00c2.
Step-3:Read data from the flash for that use read command=0x00c3.
Hi and thank you.
I tested this, but the flash chip cannot be properly programmed by the internal routines. I think I found the issue: At Adesto/Atmel FLASH chips, the sector protection is globally enabled on power up. The example and obviously the boot programmer does not take care of the state of the sector protection in the status register. So Adesto/Atmel flash chips cannot be programmed by ControlCenter.
Can you add this functionality to future versions? I programmed the chip externally and the FX3 can boot. Only programming is affected.
Please refer the flashprogram example code provided with the SDK in this path:"C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\basic_examples\cyfxflashprog"
Flash program code is the main source code for the boot programmer.you can chage the state of the sector protection in the Flash program code.
The firmware enumerates as a custom device communicating with the CyUsb3.sys driver and provides a set of vendor commands that can be used to download the firmware to the EEPROM/FLASH devices.
Modify the firmware according to your requirements after that build the firmware and you will get the image file, that image replace with cybootprogrammer.img.
cybootprogrammer.img is provided in this path:"C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\application\c_sharp\controlcenter".