This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SPIM failed to read after NRF SDK updated to 1.6.x

Hi all,

I am using NRF5340 in my custom board. The spims are working well, they are developed by nrfx lib in NRF SDK 1.5.1.

However, after I updated my sdk to 1.6.1, the spim cannot read correctly anymore.

The chip id I want to read by spim is supposed to be  "0x1a", but always got "0xff".

So is there any changes between sdk 1.5.1 and 1.6.1 on using spim?

Thanks!

Parents Reply Children
  • I added CONFIG_DISK_DRIVERS=n to prj.conf, but still got the same result.

    It is very strange, because I tested the program (built in sdk v1.6.1) on 5340 DK board, it worked well. The program(built in sdk v1.6.1) failed on my custom board.

    But the program(built in sdk 1.5.1) worked well on both 5340 DK and my custom board!

    So I really want to know why and what is the different between 1.5.1 and 1.6.1? 

  • Does this happen on a specific SPIM instance (SPIM0, SPIM2, SPIM4 etc.) or on every instance?

    Since you are using a custom board, you are also using custom board files, correct?

  • Both SPIM2 and SPIM4 met the problem. 

    custom board files? Do you mean the overlay files?

  • We strongly recommend that custom boards do not use the default board files in zephyr/boards/arm/nrf5340dk_nrf5340. As these will not reflect any changes you have made on your custom board.

    If you are using overlay files to differentiate between the boards, it would be helpful to see these overlays.

  • The pins I used on my custom board are the same pins on 5340DK board. The other differences between the two boards I guess maybe the power circuit. I use VREGH  for cpu cores and PIOs, and I have checked the high level of pins is 3.3V.

    I am not using overlay files yet since the program works well in sdk 1.5.1. And I don't know which file should be modified for my custom board, is there any guide for me?

Related