NRF51 UART tutorial undefined reference

Sysprogs forums Forums VisualGDB NRF51 UART tutorial undefined reference

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21645
    brhn
    Participant

    I’m using 5.3R8 trial version for 30-days . I’ve tried to compli “https://visualgdb.com/tutorials/arm/nrf51/uart/” this tutorial but, it gives me
    Error undefined reference to `app_uart_put’ and for others two function ‘app_uart_get’ and ‘app_uart_init’. By the way, I encountered this error with several application (“timer,mause ble,kayboard etc.”), It’s so boring and I’m about to break that pc 🙂

    1>------ Derleme başladı: Proje: EmbeddedProject1, Yapılandırma: Debug VisualGDB ------
     1>LEDBlink.cpp
     1>Linking ../VisualGDB/Debug/EmbeddedProject1...
     1>VisualGDB/Debug/LEDBlink.o: In function `main':
     1>D:\work_space\nrf_mause\EmbeddedProject1\EmbeddedProject1\LEDBlink.cpp(52): error : undefined reference to `app_uart_init'
     1>D:\work_space\nrf_mause\EmbeddedProject1\EmbeddedProject1\LEDBlink.cpp(62): error : undefined reference to `app_uart_get'
     1>D:\work_space\nrf_mause\EmbeddedProject1\EmbeddedProject1\LEDBlink.cpp(66): error : undefined reference to `app_uart_put'
     1>collect2.exe : error : ld returned 1 exit status
     1>"EmbeddedProject1.vcxproj" projesini oluşturma tamamlandı -- BAŞARISIZ OLDU.
     ========== Oluşturma: 0 başarılı, 1 başarısız, 0 güncel, 0 atlandı ==========
    • This topic was modified 6 years, 8 months ago by support. Reason: formatting
    #21650
    support
    Keymaster

    Hi,

    This error means that the app_uart_init() function is declared, but not implemented in any source files included in your project. The easiest way to solve this type of problem is to quickly search for the function name (i.e. app_uart_init in the Nordic SDK installed by VisualGDB) that will point to the app_uart.c file.

    You can then either include the file to your project manually (via Add->Existing Item) or enable the corresponding setting under VisualGDB Project Properties -> Embedded Frameworks to automatically include it as a part of the Nordic BSP.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.