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

S130 Softdevice Example

Currently I am searching for s130 example code. I know it's in alpha stage, but I think it should be possible to start to experiment with it, isn't it?

In the past I've been going through S110 v5, S110 v6, and S110 v7 which can be found in github.com/.../CMakeBuild.config.default.

The recommendations for v7 for example are incorporated in my code:

#if(NORDIC_SDK_VERSION >= 7)                                                                                            
        BLE_CALL(sd_ble_gap_enable);                                                                                    
        ble_gap_addr_t addr;                                                                                            
        BLE_CALL(sd_ble_gap_address_get, (&addr));                                                                      
        BLE_CALL(sd_ble_gap_address_set, (BLE_GAP_ADDR_CYCLE_MODE_NONE, &addr));                                        
#endif          

I don't know if these recommendations are still valid for the S130.

My current configuration:

NRF51822_DIR=/opt/nrf51_sdk/v6/nrf51822                                                                                 
NORDIC_SDK_VERSION=6                                                                                                    
SOFTDEVICE=s130_nrf51822_0.5.0-1.alpha                                                                                  
SOFTDEVICE_NO_SEPARATE_UICR_SECTION=1                                                                                   
APPLICATION_START_ADDRESS=0x00020000                                                                                    
APPLICATION_LENGTH=0x2a000   

The application start address is from the S130 SoftDevice Specification, but I haven't found out what I need to change in my code.

So, an example with the S130 would be greatly appreciated!

Parents
  • My own fault. There is an example in the s130_nrf51822_0.5.0-1.alpha.zip file! Suppose you run:

    mkdir -p /opt/softdevices
    unzip s130_nrf51822_0.5.0-1.alpha.zip -d /opt/softdevices
    

    And you will not find it in /opt/softdevices/s130_nrf51822_0.5.0-1.alpha_API/Example, but in /opt/softdevices/Example itself.

    See also this issue on github.

    Read the code in s130_demo_app/src/main.c and you see that there is a button that needs to be pressed. So, this is a demo that works with the evaluation kit (and requires besides the button a display).

Reply
  • My own fault. There is an example in the s130_nrf51822_0.5.0-1.alpha.zip file! Suppose you run:

    mkdir -p /opt/softdevices
    unzip s130_nrf51822_0.5.0-1.alpha.zip -d /opt/softdevices
    

    And you will not find it in /opt/softdevices/s130_nrf51822_0.5.0-1.alpha_API/Example, but in /opt/softdevices/Example itself.

    See also this issue on github.

    Read the code in s130_demo_app/src/main.c and you see that there is a button that needs to be pressed. So, this is a demo that works with the evaluation kit (and requires besides the button a display).

Children
Related