I hope this post finds you well,
As you can see in the following example of fl.add_device
fl.add_device({"alias": "qspi", "name": "MT25QU128ABA", "address": 0x40000000, "ws_address": 0x10000000, "ws_size": 0x1FFFF, "geometry": "8x1", "controller": "QSPI"})
#set QSPI as current device
fl.set_current_device("qspi")
The fl.add_device() is formed by the following characteristics
- Alias: This setting specified the type of memory that is being used or you want to add.
- qspi
- sd
- mmc
- nor
- nand
- Name: This setting specified the model or the number part of the memory or flash memory that you used or added
- Address: This setting specified the base address in SoC for flash device.
- Ws_address: This setting is for the workspace address; Address where the flash algorithm is downloaded.
- Ws_size: This setting is for the size of the workspace.
- Geometry: This setting specified the flash organization
- Controller: This part specified the controller of the memory
- If you use qspi the controller would be QSPI
- If you use sd or mmc the controller is eSDHC
- If you use nor or nand the controller is IFC
Best regards,
Sebastian