nrfjprogdll_err_t NRFJPROG_qspi_custom(uint8_t instruction_code, uint32_t instruction_length, const uint8_t * data_in, uint8_t * data_out);
Trying to use the call writing in c code but not sure how to implement.
When using the QspiDefault.ini, we have the following instructions:
InitializationCustomInstruction = 0x06 ; Write enable (wren). Set the Write enable Latch (WEL) bit. it resets after every write operation.
InitializationCustomInstruction = 0x01, [0x40] ; Enable quad spi
InitializationCustomInstruction = 0xb7 ; 32 bit addressing enable
How would I convert to sending the cmds with the dll? Was given the QspiDefault.ini now sure how all the commands word but need to convert to dll.
Thought I could write the code like this but does not work properly when I flash the file to the external memory.
nrfjprogdll_err_t cmdRes;
uint8_t inst01 = 0x06;
uint8_t inst02 = 0x01;
uint8_t inst03 = 0xb7;
uint32_t instrLen = 1;
const unsigned char dataIn[1] = {'0x40'};
cmdRes = NRFJPROG_qspi_custom(inst01, instrLen, NULL, NULL);
cmdRes = NRFJPROG_qspi_custom(inst02, instrLen, dataIn, NULL);
cmdRes = NRFJPROG_qspi_custom(inst03, instrLen, NULL, NULL);