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

Keil 5.20, nRF52 and ESB

I've successfully compiled, flashed, and run the SDK11 ESB examples on nRF52 DKs using GCC, and am trying unsuccessfully to get them to work on the Keil 5.20 IDE.

I've seen comments that said ESB on the nRF52 wasn't compatible with the Keil IDE - is that correct, and if so, will it ever be supported?

Parents
  • Hi,

    The older esb.lib files are only compatible with the nRF51x22. In SDK v11, an open source implementation of nrf_esb (based on the microesb project on our github) was added. This has support for both nRF51x22 and nRF52832, and with all compilers that we support (gcc/iar/keil).

    Do you get any error message while compiling or debugging on Keil?

    Best regards, Håkon

  • *** Using Compiler 'V5.06 update 2 (build 183)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Build target 'nrf52832_xxaa' compiling bsp.c... RTE\Board_Support\nRF52832_xxAA\bsp.c(13): error: #5: cannot open source input file "bsp.h": No such file or directory #include "bsp.h" RTE\Board_Support\nRF52832_xxAA\bsp.c: 0 warnings, 1 error compiling nrf_esb.c... nrf_esb.c(13): error: #5: cannot open source input file "nrf_error.h": No such file or directory #include "nrf_error.h" nrf_esb.c: 0 warnings, 1 error compiling main.c... main.c(16): error: #5: cannot open source input file "sdk_common.h": No such file or directory #include "sdk_common.h" main.c: 0 warnings, 1 error compiling system_nrf52.c... RTE\Device\nRF52832_xxAA\system_nrf52.c(33): error: #5: cannot open source input file "nrf.h": No such file or directory #include "nrf.h" RTE\Device\nRF52832_xxAA\system_nrf52.c: 0 warnings, 1 error compiling nrf_delay.c... C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\delay\nrf_delay.c(14): error: #5: cannot open source input file "compiler_abstraction.h": No such file or directory #include "compiler_abstraction.h" C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\delay\nrf_delay.c: 0 warnings, 1 error compiling nrf_drv_common.c... C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\common\nrf_drv_common.h(18): error: #5: cannot open source input file "nrf.h": No such file or directory #include "nrf.h" C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\common\nrf_drv_common.c: 0 warnings, 1 error compiling nrf_drv_gpiote.c... C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\gpiote\nrf_drv_gpiote.h(26): error: #5: cannot open source input file "nrf_gpiote.h": No such file or directory #include "nrf_gpiote.h" C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\gpiote\nrf_drv_gpiote.c: 0 warnings, 1 error compiling app_button.c... RTE\nRF_Libraries\nRF52832_xxAA\app_button.h(41): error: #5: cannot open source input file "nrf.h": No such file or directory #include "nrf.h" RTE\nRF_Libraries\nRF52832_xxAA\app_button.c: 0 warnings, 1 error compiling app_error.c... RTE\nRF_Libraries\nRF52832_xxAA\app_error.c(22): error: #5: cannot open source input file "nrf.h": No such file or directory #include "nrf.h" RTE\nRF_Libraries\nRF52832_xxAA\app_error.c: 0 warnings, 1 error compiling app_timer.c... RTE\nRF_Libraries\nRF52832_xxAA\app_error.h(28): error: #5: cannot open source input file "nrf.h": No such file or directory #include "nrf.h" RTE\nRF_Libraries\nRF52832_xxAA\app_timer.c: 0 warnings, 1 error compiling app_util_platform.c... RTE\nRF_Libraries\nRF52832_xxAA\app_util_platform.c(13): error: #5: cannot open source input file "app_util_platform.h": No such file or directory #include "app_util_platform.h" RTE\nRF_Libraries\nRF52832_xxAA\app_util_platform.c: 0 warnings, 1 error compiling nrf_assert.c... RTE\nRF_Libraries\nRF52832_xxAA\nrf_assert.h(18): error: #5: cannot open source input file "nrf.h": No such file or directory #include "nrf.h" RTE\nRF_Libraries\nRF52832_xxAA\nrf_assert.c: 0 warnings, 1 error ".\Objects\rigitest.axf" - 12 Error(s), 0 Warning(s). Target not created. Build Time Elapsed: 00:00:00

Reply
  • *** Using Compiler 'V5.06 update 2 (build 183)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Build target 'nrf52832_xxaa' compiling bsp.c... RTE\Board_Support\nRF52832_xxAA\bsp.c(13): error: #5: cannot open source input file "bsp.h": No such file or directory #include "bsp.h" RTE\Board_Support\nRF52832_xxAA\bsp.c: 0 warnings, 1 error compiling nrf_esb.c... nrf_esb.c(13): error: #5: cannot open source input file "nrf_error.h": No such file or directory #include "nrf_error.h" nrf_esb.c: 0 warnings, 1 error compiling main.c... main.c(16): error: #5: cannot open source input file "sdk_common.h": No such file or directory #include "sdk_common.h" main.c: 0 warnings, 1 error compiling system_nrf52.c... RTE\Device\nRF52832_xxAA\system_nrf52.c(33): error: #5: cannot open source input file "nrf.h": No such file or directory #include "nrf.h" RTE\Device\nRF52832_xxAA\system_nrf52.c: 0 warnings, 1 error compiling nrf_delay.c... C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\delay\nrf_delay.c(14): error: #5: cannot open source input file "compiler_abstraction.h": No such file or directory #include "compiler_abstraction.h" C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\delay\nrf_delay.c: 0 warnings, 1 error compiling nrf_drv_common.c... C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\common\nrf_drv_common.h(18): error: #5: cannot open source input file "nrf.h": No such file or directory #include "nrf.h" C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\common\nrf_drv_common.c: 0 warnings, 1 error compiling nrf_drv_gpiote.c... C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\gpiote\nrf_drv_gpiote.h(26): error: #5: cannot open source input file "nrf_gpiote.h": No such file or directory #include "nrf_gpiote.h" C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\gpiote\nrf_drv_gpiote.c: 0 warnings, 1 error compiling app_button.c... RTE\nRF_Libraries\nRF52832_xxAA\app_button.h(41): error: #5: cannot open source input file "nrf.h": No such file or directory #include "nrf.h" RTE\nRF_Libraries\nRF52832_xxAA\app_button.c: 0 warnings, 1 error compiling app_error.c... RTE\nRF_Libraries\nRF52832_xxAA\app_error.c(22): error: #5: cannot open source input file "nrf.h": No such file or directory #include "nrf.h" RTE\nRF_Libraries\nRF52832_xxAA\app_error.c: 0 warnings, 1 error compiling app_timer.c... RTE\nRF_Libraries\nRF52832_xxAA\app_error.h(28): error: #5: cannot open source input file "nrf.h": No such file or directory #include "nrf.h" RTE\nRF_Libraries\nRF52832_xxAA\app_timer.c: 0 warnings, 1 error compiling app_util_platform.c... RTE\nRF_Libraries\nRF52832_xxAA\app_util_platform.c(13): error: #5: cannot open source input file "app_util_platform.h": No such file or directory #include "app_util_platform.h" RTE\nRF_Libraries\nRF52832_xxAA\app_util_platform.c: 0 warnings, 1 error compiling nrf_assert.c... RTE\nRF_Libraries\nRF52832_xxAA\nrf_assert.h(18): error: #5: cannot open source input file "nrf.h": No such file or directory #include "nrf.h" RTE\nRF_Libraries\nRF52832_xxAA\nrf_assert.c: 0 warnings, 1 error ".\Objects\rigitest.axf" - 12 Error(s), 0 Warning(s). Target not created. Build Time Elapsed: 00:00:00

Children
No Data
Related