- Init QSPI in mem-mapped mode
- Check if we should jump to user code and do so if appropriate. I will later try and find out whether this config is keep or we need to re-config it...
- if no jump, re-inits the QSPI bus without mem-mapping (apparently author couldnt get it working by just exiting mapped mode). This is to be able to write on the QSPI flash the file received over USB, i guess (as mem-mapped is read-only)
- After this, my code tried reading as mem-mapped, obviously failed . I could get it to read from 0x90000000 by going into the mode again
So i "just" need to figure out why it is either:
- Not detecting the code on QSPI as bootable and jumping to it (pretty sure this is what happens)
- Crashing when user code (ChibiOS) runs and falling back to bootloader (not sure if that's even the behaviour on crash)