xmos / xcore_iot

Other
29 stars 39 forks source link

Investigate and scope work to integrate XTC Tools 15.2 flash library #501

Closed keithm-xmos closed 1 year ago

keithm-xmos commented 1 year ago
xmos-jmccarthy commented 1 year ago

Tools updated flash library is a re-implementation of the libquadflash API. This consists of quadflashlib.h and quadflash.h. quadflash.h, is different from the qspi_io driver and xmos_flash (the original bitstream approach) library in that it also provides access the flash from a boot image vs data partition perspective. The current qspi_io and xmos_flash library both accessed the flash address space directly. quadflashlib.h would be the direct replacement for the current qspi io driver, but bits of quadflash.h will needed for future DFU support. All estimates below assume quadflashlib.h porting, with quadflash.h portions included in future DFU specific qspi driver enhancements.

Estimated SP 10 Scope in rough order: <1 sp Remove qspi_io from fwk_io

3 sp Update rtos_qspi_flash driver to use quadflash.h and/or quadflashlib.h. Most should be straight forward. The safety of rtos_qspi_flash_read_ll() needs to be evaluated once implementation is in, but it appears safe from quick glance.

4 sp Functional benchmarking and verification at application level: This change may break:

1 sp Add driver support and docs for manual flash parameters. Will reference: https://www.xmos.ai/documentation/XM-014363-PC-5/html/tools-guide/tutorials/add-flash-support/flash.html

2 sp Update tests for added/removed features. This work should include xmos/fwk_rtos#101

Note: With this change the SDK will no longer be compatible with XTC Tools < 15.2

keithm-xmos commented 1 year ago

Has been broken into tasks and assigned to appropriate repo.