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

Merge saadc with uart

        development software, with versions (SDKs, IDEs, SoftDevices, ...): 
        Computer platform, with versions (Windows/Linux/OSX, ...) Windows 10 Pro x64
        hardware revisions (chip build codes, board revisions, ...) nRF52840-DK
        general setup and configuration Embedded Studio 3.40 SDK nRF5_SDK_15.0.0_a53641a

I am new to Nordic; I tried to use saadc as a base project and merge uart project (both under C:\Nordic_Semi\nRF5_SDK_15.0.0_a53641a\examples\peripheral);

the merged project have issues below:


I checked that I defined path and configuration file; I do not see any problem.
I tested both saadc and uart project running fine; and merged project also runs if I comment out one feature (say uart), the another one saaac will run as usual.
I have been work on this for over one week; it stooped me go noway.
Please help.

Donald

  • Apparently you are using a function called bsp_board_init() in your project, but your compiler doesn't know where to find it. If you look in the uart example you will see that bsp_boart_init() is defined in a file called board.c which is located at \nRF5_SDK_15.0.0_a53641a\components\boards\. Have you included this file in your project?

  • Yes, please see:

    ../../../config

    ../../../../../../components

    ../../../../../../components/boards

    ../../../../../../components/drivers_nrf/nrf_soc_nosd

    ../../../../../../components/libraries/atomic

    ../../../../../../components/libraries/balloc

    ../../../../../../components/libraries/bsp

    ../../../../../../components/libraries/button

    ../../../../../../components/libraries/delay

    ../../../../../../components/libraries/experimental_log

    ../../../../../../components/libraries/experimental_log/src

    ../../../../../../components/libraries/experimental_memobj

    ../../../../../../components/libraries/experimental_section_vars

    ../../../../../../components/libraries/fifo

    ../../../../../../components/libraries/scheduler

    ../../../../../../components/libraries/strerror

    ../../../../../../components/libraries/uart

    ../../../../../../components/libraries/mutex

    ../../../../../../components/libraries/pwr_mgmt

    ../../../../../../components/libraries/timer

    ../../../../../../components/libraries/util

    ../../../../../../components/toolchain/cmsis/include

    ../../..

    ../../../../../../external/fprintf

    ../../../../../../external/segger_rtt

    ../../../../../../integration/nrfx

    ../../../../../../integration/nrfx/legacy

    ../../../../../../modules/nrfx

    ../../../../../../modules/nrfx/drivers/include

    ../../../../../../modules/nrfx/hal

    ../../../../../../modules/nrfx/mdk

    ../config

  • Those are just include paths that show your compiler where to look for header (.h) files. You need to include the source (.c) file in your project as well:

  • Can you please put your project files in a .zip file and upload it so that I can try to compile it myself?

Related