Enabling power to QSPI flash before programming

We would like to program an external QSPI flash device connected to the nrf5340 micro.  The power to the QSPI flash is enabled via one of the micro pins.  Is there a way to set the nrf5340 micro pin to a known state prior to programming the external QSPI using nrfjprog?  The qspiloader.py python script is too slow...

Thanks

Parents
  • I tried using the nrfjprog --ramwr --val to explicitly set the micro pin state to enable the power supply prior to running the programming step.  I could execute nrfjprog multiple times setting different register addresses (P1->OUT, P1_DIR and P1->PIN_CFG[1]) and it appeared to work UNTIL I ran the programming step.  Then it looked like the pin reverted to it's reset state.

    Any ideas how to work around this?

Reply
  • I tried using the nrfjprog --ramwr --val to explicitly set the micro pin state to enable the power supply prior to running the programming step.  I could execute nrfjprog multiple times setting different register addresses (P1->OUT, P1_DIR and P1->PIN_CFG[1]) and it appeared to work UNTIL I ran the programming step.  Then it looked like the pin reverted to it's reset state.

    Any ideas how to work around this?

Children
No Data
Related