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

Configurate nRF51822-QFAA for ble_app_uart_c

Hello all,


since Tuesday I'm trying to get the example project ble_app_uart_c (SDK Version 12) running. Meanwhile I can compile the project without errors, but when I flash the hex file into the chip, the application does not work. Of course I have flashed the softdevice (S130 Version 2.0.1) before. I suspect that something is wrong in the settings of the oscillator, because data arrives via the serial interface. However, this data is "cryptic" and comes at irregular times.

I use the nRF51822-QFAA SoC.

Thanks for your help.

Parents
  • I assume you have access to an nRF51822-DK that you can use for development, and thereby run the getting started section as-is?

    https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/nrf51_getting_started.html 

    If you still have problems, maybe try to run "nrfjprog --recover" from command line once, to erase possible data that may reside in UICR or other part of flash that possible can influence the application depending on the example project.

  • Thank you for your reply.

    I have already read the instructions for the start and I also recovered the chip before flashing with softdevice and application. I already had another project (ble_app_beacon) running, that worked wonderfully. However, the ble_app_uart_c project does not work, I suspect that something is wrong with the settings. I can receive data via UART, but it comes irregularly and is not readable, there are "cryptic" characters. I tried debugging the project, however I never get past the ble_stack_init() function. So it could be the clock config or the initialization of the memory.


    Can I possibly upload the project here or send it to you? I've been troubleshooting since Wednesday and still don't know what the problem is.

  • Are you sure the voltage levels on UART is correct (~VDD) and that the UART RX pin is pulled/driven high externally? "cryptic" characters may mean the baudrate is wrong. 

    Kenneth

  • The baudrate thing was my first thought too, but I have loaded other projects into the SoC and there the UART interface works perfectly. There must be something wrong in the settings, but I just can't find the problem. When I try to debug the project, I get an error message. It says (in Eclipse):

    Downloading 11624 bytes @ address 0x0001B000 - Verify failed
    Downloading 8 bytes @ address 0x0001DD68 - Verify failed
    Downloading 120 bytes @ address 0x0001DD70 - Verify failed

    So it seems that the program cannot be loaded into flash. For that reason, I think there may be something wrong with the clock settings.

Reply
  • The baudrate thing was my first thought too, but I have loaded other projects into the SoC and there the UART interface works perfectly. There must be something wrong in the settings, but I just can't find the problem. When I try to debug the project, I get an error message. It says (in Eclipse):

    Downloading 11624 bytes @ address 0x0001B000 - Verify failed
    Downloading 8 bytes @ address 0x0001DD68 - Verify failed
    Downloading 120 bytes @ address 0x0001DD70 - Verify failed

    So it seems that the program cannot be loaded into flash. For that reason, I think there may be something wrong with the clock settings.

Children
No Data
Related