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?

  • That didn't make a difference when compiling the SDK11 ESB example. The DevicePack examples do compile OK, sorry I didn't explain that clearly - it's the SDK11 ESB example that won't compile in Keil, but are fine with GCC.

    The readme.txt in C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Examples\11.0.0-2.alpha indicates that the example "proprietary_rf\esb\esb_ptx_prx" isn't compatible with the pca10040 nRF52 development board. Is it possible to make it compatible somehow?

  • Hi Steve,

    Are you using the SDK v11-alpha? This does not include the opensource nrf_esb library. It was included in the stable release of v11: developer.nordicsemi.com/.../nRF5_SDK_11.0.0_89a8197.zip

    This release is only available in .zip format. Could you try this one and see if it compiles and runs properly?

    Cheers, Håkon

  • Hi Håkon,

    I have the latest non-alpha version of the library. Please can you tell me how I can get Keil 5.20 to work with SDK11 so I can try to compile its ESB examples?

    Thank you!

    Steve.

  • Could you please post a build log, or similar, showing the issue you're seeing?

    Cheers, 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

Related