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

s110/s120 and blank .ld files

Hello! I'm trying to program nrf51822 like a BLE device. I'm using QT Creator + GNU Compiler + Open OCD + STlink(debugger) to create and program. If I choose "gcc_nrf51_blank_xxaa.ld" like linker script file, I can to debug and to blink leds. But If I choose "gcc_nrf51_s110_xxaa.ld" I can't to blink leds, and can't to debug my program. Can you tell me what the differ between "gcc_nrf51_blank_xxaa.ld" and "gcc_nrf51_s110_xxaa.ld". And what I must to do if I want to create BLE device?

Parents
  • blank is used with bare nRF51 chip (it runs as a pure ARM Cortex M0), s110 used when S110 soft device (BLE stack) is programmed in flash memory.

    To create a BLE device start with ble_app_template in SDK examples dir.

    -c

Reply
  • blank is used with bare nRF51 chip (it runs as a pure ARM Cortex M0), s110 used when S110 soft device (BLE stack) is programmed in flash memory.

    To create a BLE device start with ble_app_template in SDK examples dir.

    -c

Children
  • Thanks for answer. Can you tell me, how can I program s110 soft device in flash memory? I'm trying this:

    1. From examples I get "ble_app_template_s110_xxaa.hex" file.

    2. Tries to program flash with it via open ocd.

    3. Resets chip.

    Nothing happens.

    I modifyed example(main.c file) like this (led has pin9):

    ...
        void func_mig()
        {
            nrf_delay_ms(500);
            nrf_gpio_pin_set(9);
            nrf_delay_ms(500);
            nrf_gpio_pin_clear(9);
            nrf_delay_ms(500);
        }
        
        /**@brief Function for application main entry.
         */
        int main(void)
        {
            nrf_gpio_cfg_output(9);
            func_mig();
            nrf_delay_ms(2000);
            func_mig();
            func_mig();
            // Initialize
            leds_init();
            timers_init();
        ...
    

    But if I programs this code with blank .ld files, I can toggle on/off with Leds.

  • If your question is answered please accept it by clicking the grey circle with a check mark in it. If you have more questions, please add them as separate questions, not in a comment.

Related