nrf52832 SPI Flash issue

We have code that we are porting from nrf52833 to nrf52832, this is developed in SES v5.34 with SDK 17.1.0.

The code works perfect of nrf52833 platform.

When porting to nrf52832 we made the changes to use S132, as S140 is not supported on nrf52832.

Issue we are having is around SPI. The application reads and writes data to a 16Mbit SPI flash device.

This does not work correctly on nrf52832. Its like the SPI does not work the same. 

Using logic analyzer i can see our code tries to clock out 2 bytes for a single byte register write. i.e. 

to set the WEL we clock out 0x06, but the clock runs for two bytes. We also find the CS returns high whilst in the 

process of clocking the second byte.

Would there be any reason that nrf52833 needed extra clock ? i.e. errata 

Would this extra clock be causing issue on nrf52832 ?

Parents
  • Hi there,

    Could you share a similar picture from the logic analyzer trace when it works on the nRF52833?

    Are you controlling the CS through the driver or setting it manually by using the GPIO peripheral direclty?

    One main difference between the nRF52833 and the nRF52832 is that the MAXCNT on the nRF52833 is 16 bit versus 8 bit on the nRF52832. But I don't think that's is relevant here,

    regards

    Jared 

Reply
  • Hi there,

    Could you share a similar picture from the logic analyzer trace when it works on the nRF52833?

    Are you controlling the CS through the driver or setting it manually by using the GPIO peripheral direclty?

    One main difference between the nRF52833 and the nRF52832 is that the MAXCNT on the nRF52833 is 16 bit versus 8 bit on the nRF52832. But I don't think that's is relevant here,

    regards

    Jared 

Children
No Data
Related