Open
Description
As mentioned here: #77 (comment), I managed to get QSPI working via direct access. Just have to add CONFIG_FLASH=y
to the associated configuration files.
Using that same approach threw together a library to write directly to address associated with qspi that I used before for FRAM and on the T4 QSPI
The example outputs:
Starting...
Device INFO:
Device Name: qspi-nor-flash@90000000
QSPI Partition Size: 16777216
QSPI Partition Defined: 16252928
=================
Data_0: true
Data_1: 1.3574999571
Data_2: 314159
Data_3: 142
Data_4: 0xBlock of 1024 0x42's loaded in array
...... ...... ......
The Quick Brown Fox
Init Done - array loaded
...... ...... ......
...... ...... ......
...... ...... ......
Data_0: true
Data_1: 1.3574999571
Data_2: 314159
Data_3: 142
Data_4:
Data_5: The Quick Brown Fox
...... ...... ......
Read Write test done - check data if successfull
...... ...... ......
Starting Device Erase......
QSPI Erased!
Now there are a couple questions I need to have.
- When I dumped
storage
flash sizes I get
Device Name: qspi-nor-flash@90000000
QSPI Partition Size: 16777216
QSPI Partition Defined: 16252928
the partition size comes from calling flash_get_size(flash_dev, &size);
while the expected size is DT_SIZE_K(15872)
which is in the dtsi file for the stm32h747. There is a difference, not sure why and wondering if this could affect things later on.
- Right now
#define SPI_FLASH_SECTOR_SIZE 4096
wondering if this is the correct setting.
Cheers - at least one more thing is working.
Metadata
Metadata
Assignees
Labels
No labels