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

No source available for "0x6d2" ???

Hi everyone, I'm working on the nrf51822 QFAAH I tried to flash the ble_app_uart example and it didn't work. So I debug it and it stops here

As you can see in the picture there is nothing at 0x6d2

I can build it and flash it, I wrote my linker ldscript to be able to flash a chip with 16kB of RAM and 256kB of Flash memory. I changed nothing in the main.c. In the memory I know the softdevice S130 v2.0.1 ends here 0x1b000 so my program stops in the softdevice part ???

Please I need some help to make this work...

Parents Reply
  • Thanks for uploading the project.

    You're calling printf in your project, but you do not have retarget.c included in your build. This will cause issues, as the printf call will rely on finding _write() and _read(), and when it does not; it will go into a undefined state.

    In addition, you have using UART with flow control enabled:

        const app_uart_comm_params_t comm_params =
        {
            RX_PIN_NUMBER,
            TX_PIN_NUMBER,
            RTS_PIN_NUMBER,
            CTS_PIN_NUMBER,
            APP_UART_FLOW_CONTROL_ENABLED,
            false,
            UART_BAUDRATE_BAUDRATE_Baud115200
        };

    This requires that you open the terminal before the application will continue.

    Could you try adding retarget.c to your build (or comment out the printf() call) ?

    For debugging purposes, you can also disable the flow control, as this would require you to open the terminal in order for the application to run properly.

    Best regards,

    Håkon

Children
Related