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

Beginner question about SPI example in SDK on different nrf52 boards

Hi everyone,

I have 2 boards that I've been using for testing. One is the NRF52 DK with the nrf52832 and the other is a simple custom board i made with an nrf52810. 

I've been able to flash both boards and confirmed that they are working with simple GPIO functions and i have started to move to getting the SPI bus working. I've been using the SPI example in the SDK (with a few pin changes for the custom board and set to only transmit, not receive anything) and it works great on the NRF52 DK. To flash it on the custom board, i first change the target device in IAR (to nrd52810) but it is not behaving the same way as the DK is. From the debugger, it seems to execute the exact same code but its not triggering the event handler when the transfer is complete,instead it gets stuck in a while loop until the transfer is complete. When looking at the scope traces, neither the SCK or MOSI have anything on them however the SS does go from high to low so it does seem like its executing part of the transmission.

Any ideas on what i am missing here. Im pretty new to firmware development in general.

Thanks!

Parents
  • Hi Kevin,

    I also work with these two boards nrf52832 and nrf52810. My code works great on the 832 board, but when I change the config and run on 810, I get some problems.

    Firstly, for the spi, it can transfer once time, but have no callback, will lead the code run  to somewhere like arm_startup_nrf52810.s and can not do anything. I really don't know why?

    Secondly, when add the FreeRTOS system to the project, there are many errors, so I change the code in rtos, it can work now, I use a semaphore to block the task, but the task can run even thouth without a semaphore. it is very strange.  

    How do you solve the problems on 810, especially for SPI, please tell me.

    Best regards.

Reply
  • Hi Kevin,

    I also work with these two boards nrf52832 and nrf52810. My code works great on the 832 board, but when I change the config and run on 810, I get some problems.

    Firstly, for the spi, it can transfer once time, but have no callback, will lead the code run  to somewhere like arm_startup_nrf52810.s and can not do anything. I really don't know why?

    Secondly, when add the FreeRTOS system to the project, there are many errors, so I change the code in rtos, it can work now, I use a semaphore to block the task, but the task can run even thouth without a semaphore. it is very strange.  

    How do you solve the problems on 810, especially for SPI, please tell me.

    Best regards.

Children
No Data
Related