xmos / xcore_iot

Other
29 stars 39 forks source link

Feature/dfu #552

Closed xmos-jmccarthy closed 1 year ago

xmos-jmccarthy commented 1 year ago

Add DFU example over USB.

Uses a new DFU image driver, which utilized libquadflash at boot to create an image table for the app to use.

Closes #551

xmos-jmccarthy commented 1 year ago

Marking do not merge. TODO: Update readme Resolve rtos submodule conflict. Add cmake command to create upgrade image Add cmake command to flash with factory image

keithm-xmos commented 1 year ago

I noticed that the RTOS core examples do not build.

https://github.com/xmos/xcore_sdk/actions/runs/3440356711/jobs/5738743733

I wonder if this is because the Docker builder uses XTC 15.1.0. We need to update to a newer version but that may be a couple weeks away.

xmos-jmccarthy commented 1 year ago

Do not merge yet. Adding DFU support for Tools 15.1.4.

xmos-jmccarthy commented 1 year ago

Moved QSPI spec out of DFU driver to allow users to have more flexibility. This enables support for Tools 15.1.3 and 15.1.4 at the cost of a little extra explicit initialization code.

Tested on Linux with 15.1.3, 15.1.4, and 15.2.0.

xmos-jmccarthy commented 1 year ago

553

All OS verified.

Readme updated for potential Windows FAQ.