Hi,
I am currently working on programming a bootloader on to my nrf52840 DK. The bootloader will be able to do DFUs via SPI. I am using SDK 15.2.0. I also want to be able to write the update being received to an external EEPROM then transfer it over to internal memory (perform a dual bank update with eeprom). I am using an outside eeprom to use as external memory rather than the on board external memory. It communicates via 3 wire SPI, however, since I am already using an SPI connection, I am assuming that I could will be able to connect the EEPROM to the QSPI and disconnecting the external onboard memory. I currently have the EEPROM connected to my board as shown in the picture below. Vcc on the EEPROM is connected to VDD on the board.
I followed the instructions in this link to use the corresponding GPIOs. I then tested my connection using the nrfjprog --readqspi temp.hex . It was able to read the EEPROM and show it in temp.hex, but when I tried writing or erasing the memory, it would say the following:
I rerun nrfjprog --readqspi and it gives me the same values meaning that nrfjprog is not correctly erasing the EEPROM. I do not know if it is because I am using QSPI or if I am no connecting the external memory correctly. If it is because I am using QSPI, is there a way I can create another SPI connection on the board? And if so, how can I do that?
Any advice helps!!!