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

Newbie to Nordic nrf51822

hi, As a ambitious tech lover i bought BLE400 nrf51822 motherboard. I downloaded SDK 11.0, keil and nrfgo. I started programming based on the Nordic developer Zone. I first did the blinky example successfully and then i tried the ble_app_uart example [https://devzone.nordicsemi.com/tutorials/2/] but I dont notice LED1 blinking on the board approximately every 2 seconds as instructed. I tried to flash many more examples of ble_peripheral from the SDK but i failed to find nrf51822 advertising. Hope you will help me to fix this and give a proper guide. Thanks in advance.

Parents
  • I identified the issue that I face while I tried to flash in Keil 5. My problem was the application program overwrites the SoftDevice preloaded or got some error like "Error: Flash Download failed - "Cortex-M0" "that does not allow me to download the program to module. It was due to the wrong selection of IROM1 and IRAM1 to the application program. If you face this issue, just try out the following steps:

    Step 1: Flash the SoftDevice based on the application you required using nRFgo Studio.

    S110 - BLE Peripheral Stack S120 - BLE Central Stack S130 - BLE Peripheral Stack + BLE Central Stack S210 - ANT Stack S310 - ANT + BLE Stack

    Step 2: Downlaod the application program to module using keil.

    Select the correct device you used in target option and select the debugger you used and add your device to the debugger setting. Select the IROM1 and IRAM1 correctly. This are some common values for different combinations of SoftDevices and chips.

    S110 v8.0 from SDS v2.0

    IRAM base - 0x20002000
    IRAM size(16 kB RAM) - 0x2000
    
    IRAM size(32 kB RAM) - 0x6000
    
    IROM base - 0x18000
    IROM size(128 kB Flash) - 0x8000
    IROM size(256 kB Flash) - 0x28000
    

    S120 v2.1 from SDS v2.1

    IRAM base - 0x20002800
    IRAM size(16 kB RAM) - 0x1800
    
    IRAM size(32 kB RAM) - 0x5800
    
    IROM base - 0x1D000
    IROM size(128 kB Flash) - 0x3000
    IROM size(256 kB Flash) - 0x23000
    

    S130 v1.0 from SDS v1.0

    IRAM base - 0x20002800
    IRAM size(16 kB RAM) - 0x1800
    
    IRAM size(32 kB RAM) - 0x5800
    
    IROM base - 0x1C000
    IROM size(128 kB Flash) - 0x4000
    IROM size(256 kB Flash) - 0x24000
    

    S130 v2.0 from SDS v2.0

    IRAM base - 0x20001870
    IRAM size(16 kB RAM) - 0x2790
    
    IRAM size(32 kB RAM) - 0x6790
    
    IROM base - 0x1B000
    IROM size(128 kB Flash) - 0x5000
    IROM size(256 kB Flash) - 0x25000
    

    S210 v5.0 from SDS v3.0

    IRAM base - 0x20000900
    IRAM size(16 kB RAM) - 0x3700
    
    IRAM size(32 kB RAM) - 0x7700
    
    IROM base - 0xD000
    IROM size(128 kB Flash) - 0x13000
    IROM size(256 kB Flash) - 0x33000
    

    S310 v3.0 from SDS v3.0

    IRAM base - 0x20002200
    IRAM size(16 kB RAM) - 0x1E00
    
    IRAM size(32 kB RAM) - 0x5E00
    
    IROM base - 0x1D000
    IROM size(128 kB Flash) - 0x3000
    IROM size(256 kB Flash) - 0x23000
    

    S132 v0.9 from SDS v0.5

    IRAM base - 0x20002800
    
    IRAM size(64 kB RAM) - 0xD800
    
    IROM base - 0x1C000
    IROM size(512 kB Flash) - 0x64000
    

    S132 v2.0 from SDS v2.0

    IRAM base - 0x20001870
    
    IRAM size(64 kB RAM) - 0xE790
    
    IROM base - 0x1C000
    IROM size(512 kB Flash) - 0x64000
    

    Try downloading.

Reply
  • I identified the issue that I face while I tried to flash in Keil 5. My problem was the application program overwrites the SoftDevice preloaded or got some error like "Error: Flash Download failed - "Cortex-M0" "that does not allow me to download the program to module. It was due to the wrong selection of IROM1 and IRAM1 to the application program. If you face this issue, just try out the following steps:

    Step 1: Flash the SoftDevice based on the application you required using nRFgo Studio.

    S110 - BLE Peripheral Stack S120 - BLE Central Stack S130 - BLE Peripheral Stack + BLE Central Stack S210 - ANT Stack S310 - ANT + BLE Stack

    Step 2: Downlaod the application program to module using keil.

    Select the correct device you used in target option and select the debugger you used and add your device to the debugger setting. Select the IROM1 and IRAM1 correctly. This are some common values for different combinations of SoftDevices and chips.

    S110 v8.0 from SDS v2.0

    IRAM base - 0x20002000
    IRAM size(16 kB RAM) - 0x2000
    
    IRAM size(32 kB RAM) - 0x6000
    
    IROM base - 0x18000
    IROM size(128 kB Flash) - 0x8000
    IROM size(256 kB Flash) - 0x28000
    

    S120 v2.1 from SDS v2.1

    IRAM base - 0x20002800
    IRAM size(16 kB RAM) - 0x1800
    
    IRAM size(32 kB RAM) - 0x5800
    
    IROM base - 0x1D000
    IROM size(128 kB Flash) - 0x3000
    IROM size(256 kB Flash) - 0x23000
    

    S130 v1.0 from SDS v1.0

    IRAM base - 0x20002800
    IRAM size(16 kB RAM) - 0x1800
    
    IRAM size(32 kB RAM) - 0x5800
    
    IROM base - 0x1C000
    IROM size(128 kB Flash) - 0x4000
    IROM size(256 kB Flash) - 0x24000
    

    S130 v2.0 from SDS v2.0

    IRAM base - 0x20001870
    IRAM size(16 kB RAM) - 0x2790
    
    IRAM size(32 kB RAM) - 0x6790
    
    IROM base - 0x1B000
    IROM size(128 kB Flash) - 0x5000
    IROM size(256 kB Flash) - 0x25000
    

    S210 v5.0 from SDS v3.0

    IRAM base - 0x20000900
    IRAM size(16 kB RAM) - 0x3700
    
    IRAM size(32 kB RAM) - 0x7700
    
    IROM base - 0xD000
    IROM size(128 kB Flash) - 0x13000
    IROM size(256 kB Flash) - 0x33000
    

    S310 v3.0 from SDS v3.0

    IRAM base - 0x20002200
    IRAM size(16 kB RAM) - 0x1E00
    
    IRAM size(32 kB RAM) - 0x5E00
    
    IROM base - 0x1D000
    IROM size(128 kB Flash) - 0x3000
    IROM size(256 kB Flash) - 0x23000
    

    S132 v0.9 from SDS v0.5

    IRAM base - 0x20002800
    
    IRAM size(64 kB RAM) - 0xD800
    
    IROM base - 0x1C000
    IROM size(512 kB Flash) - 0x64000
    

    S132 v2.0 from SDS v2.0

    IRAM base - 0x20001870
    
    IRAM size(64 kB RAM) - 0xE790
    
    IROM base - 0x1C000
    IROM size(512 kB Flash) - 0x64000
    

    Try downloading.

Children
No Data
Related