Programming Flash - It is possible using SPI

NevynSelby
Posts: 30
Joined: Thu Dec 24, 2015 12:04 pm

Programming Flash - It is possible using SPI

Postby NevynSelby » Mon Dec 31, 2018 4:34 pm

After reading the documentation I think I know the answer, but is it possible to use the SPI bus to load a program into the flash memory?

From what I have read I think there are really only two options:
  • UART
  • OTA
Is this correct?

Regards,
Mark

ESP_Sprite
Posts: 9043
Joined: Thu Nov 26, 2015 4:08 am

Re: Programming Flash - It is possible using SPI

Postby ESP_Sprite » Wed Jan 02, 2019 9:22 am

You can do OTA over any protocol or bus you want, including SPI. (Obviously, you may need the glue logic for this yourself.)

NevynSelby
Posts: 30
Joined: Thu Dec 24, 2015 12:04 pm

Re: Programming Flash - It is possible using SPI

Postby NevynSelby » Wed Jan 02, 2019 5:33 pm

By glue logic - I take it you mean we would have to put the logic in our application or write a custom bootloader?

Regards
Mark

ESP_Sprite
Posts: 9043
Joined: Thu Nov 26, 2015 4:08 am

Re: Programming Flash - It is possible using SPI

Postby ESP_Sprite » Wed Jan 02, 2019 8:16 pm

Yes. There's a driver for SPI, and if I recall correctly you can feed data from any source into the OTA subsystem. You'd just need to write the logic to tie them together according to what specific data transfer logic you want to use.

NevynSelby
Posts: 30
Joined: Thu Dec 24, 2015 12:04 pm

Re: Programming Flash - It is possible using SPI

Postby NevynSelby » Thu Jan 03, 2019 6:05 am

Thank you for your help.

Regards,
Mark

Who is online

Users browsing this forum: No registered users and 82 guests