This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

External Memory SPI connection

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!!!

Parents
  • Hi,

    I followed the instructions in this link to use the corresponding GPIOs

    Just to double check, have you soldered and cut the solder bridges needed to use these GPIOs for other purpose than using the onboard external in the DK?

    To use the GPIOs for a purpose other than the onboard external memory and have them available on the P24 connector, six solder bridges (SB10SB15) must be cut and six solder bridges (SB20SB25) must be shorted. See the following figure for details.

    Does your EEPROM support QSPI? Do you have a datasheet for this part available?

    Best regards,

    Marjeris

Reply
  • Hi,

    I followed the instructions in this link to use the corresponding GPIOs

    Just to double check, have you soldered and cut the solder bridges needed to use these GPIOs for other purpose than using the onboard external in the DK?

    To use the GPIOs for a purpose other than the onboard external memory and have them available on the P24 connector, six solder bridges (SB10SB15) must be cut and six solder bridges (SB20SB25) must be shorted. See the following figure for details.

    Does your EEPROM support QSPI? Do you have a datasheet for this part available?

    Best regards,

    Marjeris

Children
Related