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

Peripherals examples in SDK

I am using the BMD-360 Evaluation Kit and have just started trying out the examples in the SDK. I have gotten many of the ble examples running and been able to modify them slightly. However when I decieded to try any of the SPI and TWI examples nothing happened. They build without errors and I can flash them on to the BMD-360 DK but nothing happens when I try their functions. I tried running them in the debugger mode and in each case got the message: "Stopped by vector catch" and it indicating it had something to do with the HardFault_handler().

I also tried running the GPIOTE example and got the same error. I did however get the blinky example running and I am able to use the GPIOs. Would this indicate that I have a faulty board or am I missing something here?

Parents
  • Hi,

    • Which SDK version and which board file are you using?
    • Could you use debugger with breakpoints and go step-by-step and see where the program goes in to the hardfault handler? Does it go past the initializing phase? Are you seeing any activity on the CLK line when you run either of the TWI or the SPI examples?

    regards

    Jared

  • Hi Jared!

    • v16.0 and the board file is pca10040. Which is advised to use in the datasheet. The startup files are labeled "ses_startup_nrf52840.s" and "system_nrf5280.s" So I would guess it is using the startup for the wrong board? 
    • I have tried using the debugger with break points. It stops before running any of the code from the main file. So during the initialization phase. Unfortunately I am working from home so I don't have any oscilloscope to check the lines
    • I am not able to recieve the NRF_LOG_RAW_INFO in Putty either. I am able to do this for other examples!
Reply
  • Hi Jared!

    • v16.0 and the board file is pca10040. Which is advised to use in the datasheet. The startup files are labeled "ses_startup_nrf52840.s" and "system_nrf5280.s" So I would guess it is using the startup for the wrong board? 
    • I have tried using the debugger with break points. It stops before running any of the code from the main file. So during the initialization phase. Unfortunately I am working from home so I don't have any oscilloscope to check the lines
    • I am not able to recieve the NRF_LOG_RAW_INFO in Putty either. I am able to do this for other examples!
Children
Related