Large size writing and reading on external QSPI flash via cubeprogrammer
- September 17, 2024
- 1 reply
- 1770 views
Hello,
I want to write and read large size data to external QSPI flash memory. I worked on an external loader for Cubeprogrammer and small data reading, writing or flash deletion operations. But when I try to read bytes 0x400000 from address 0x00000000 for example, it doesn't work. Because RAM is not enough for this job.
int Read(uint32_t address, uint32_t size, uint8_t* buffer)
Cubeprogrammer is sending size 0x400000 and it is correct. But the buffer size is not enough. If the buffer is not enough for this job, I just want to split the size and buffer.
Cube programmer reading -> 0x400000
divide :
int Read(0x00000000, 1024, buffer);
int Read (0x00000100, 1024, buffer+1024);
int Read (0x00000200, 1024, buffer+2048);
can i do this? I don't want to use memory map mode because I don't want to use only the read function. Read, write, erase sector or flash, calculate crc etc. I want to use functions.
see second picture 40000₁₆ = 262144₁₀ but cubeprogrammer sending max ram size value 221696₁₀ = 36200₁₆
