This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I believe I understand the SPI flash programming procedure but I would like some clarification/guidance to make sure I'm not missing something:
My setup:
Aardvark Total Phase i2c/spi flash adapter
i2c tied to port I2C2
spi tied to spi flash
ADCIN2 set to Configuration 3 - 20v sink 5v source
At boot, device looks for patch from SPI flash, then proceeds to configuration 3 if no patch is present, correct?
My problem is when using application GUI, I can load settings to a chip and read back that those changes were correct over i2c. If I write the binary to spi flash, I get confirmation that it was written successfully but then on power cycle, it reads spi flash error and did not load a patch. I saved the binary as a full image rather than a low or high region.
Do I need to change my configuration to wait_for_3v3_internal so that it loads the patch file rather than configuration 3? I assumed even with configuration 3 it would try to load a patch file.
Thanks!
Hello,
At boot, device looks for patch from SPI flash, then proceeds to configuration 3 if no patch is present, correct?
Yes this is correct.
Do you have the Aardvark connected to the SPI lines?
Thanks,
Emma
Hi Emma,
Yes, I do have the Aardvark connected to the SPI lines.
Are there some things I can do with SPI to verify that that the flash was programmed correctly?
Hello,
Are you flashing your device using the "Flash from Binary file" option or are you changing your settings in debug mode? Debug mode changes are not permanent. This video demonstrates the proper way to flash your device: https://training.ti.com/tps65987evm-and-usb-c-pd-duo-evm-tutorial?context=1140344-1140343 3:55 has the flash instructions. You will need to ensure you are flashing from Aardvark so make sure that you configure your I2C adapter settings.
Thanks,
Emma
when I read from flash offsets I don't get the "Read Success" like in the video. What am I missing?
This is the SPI flash I used:
Hi Emma,
I was reading here
That tieing MISO low will disable the flash update. My MISO is tied low.... have I been doing this wrong the whole time because I disabled my flash by tieing it low?
Hello,
Yes this is what is causing your issue, good find! Please follow any one of our EVM's to see a correct SPI set up. I recommend the https://www.ti.com/tool/USB-C-PD-DUO-EVM
Thanks,
Emma