I’m designing a custom board using a SF32LB525UC6 chip, and I’ve reached a point where I need to flash the board’s NOR using sftools to get my first program running. Unfortunately sftools fails to do anything at all, and errors out both at reading and writing.
The Flash chip, a W25Q16RVXHJQ, seems to be working fine, as I’m able to access it using SifilUARTServer and writing to memory and the registers directly form Ozone. Memory persists as expected after reset. I can’t write into memory directly, I have to latch WREN on the flash chip beforehand, but I don’t think that’s unexpected behavior.
Reading from the memory using sftool doesn’t work, I get a CRC timeout after the progress bar goes to 100%.
Writing to the memory doesn’t work, I get a “protocol error : write flash failed to start at 0x12000000”.
At this point I suspect the RAM stub is somehow displeased with the kind of NOR flash I have wired to my chip. I’m considering writing my own stub to check if I’m able to write and read flash programmatically, but I wanted to ask you first, in case you had any idea what could be wrong with this flash chip, or maybe if you have more information on how the RAM stubs are built and how they work, for example is the source code available somewhere ?
Thank you kindly in advance for your help.
