Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SPI example: Application doesn't toggle LED

Hey guys,

I'm working with the Laird DVK-BL652 and the Nordic SDK v.14.2.0 with Eclipse (Kepler) and try the example "SPI Master". I didn't modify this example but after compiling and flashing the application doesn't toggle LED... I think the application doesn't execute SPI transactions.? Can someone help please?

Thanks in advance,

Christoph

Parents Reply
  • Hey Mojo,

    thanks for your answer. You are right. I don't think the LED on the Nordic DevKit needs to be configured or something in this way. Now I have manually integrated a LED from the board into the program and it works. My LED blinks after each transaction.

    Eclipse Kepler: I bought this board (DVK-BL652-SA https://www.lairdconnect.com/wireless-modules/bluetooth-modules/bluetooth-5-modules/bl652-series-bluetooth-v5-nfc) and on the manufacturers side is only this instruction (https://www.mouser.de/datasheet/2/986/BL652_Dev_Kit_User_Guide-1591025.pdf) which recommends Eclipse Kepler and Nordic SDK v.14.0.0. What do you think about it?

    SPI example:

    Do you know which register is adressed in the last line? I can't find it in LIS3DH-Datasheet (accelerometer).

    "

    //MOD BLOCK FOR NEW REG

    static uint8_t       m_config_buf1[] = {0x20,0x97};   //CTRL_REG1: 9 = normal power mode (1.344kHz), Low-power Mode (5.376kHz); 7 = Z-,Y-,X-axis enable
    static uint8_t       m_config_buf2[] = {0x23,0x88};   //CTRL_REG4: 8 = output registers not updated until MSB and LSB reading; 8 = high-resolution output mode enabled
    static uint8_t       m_config_buf3[] = {0x22,0x10};   //CTRL_REG3: 1 = ZYXDA interrupt on INT1 enable
    static uint8_t       m_config_buf4[] = {0x1F,0x80};   //TEMP_CFG_REG: 8 = ADC enabled
    static uint8_t       m_config_buf5[] = {0x23,0x88};   //CTRL_REG4: 8 = output registers not updated until MSB and LSB reading; 8 = high-resolution output mode enabled
    static uint8_t       m_config_buf6[] = {0xA3,0x00};  //???

    "

    Best regards,

    Christoph

Children
Related