Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Strugling to find example code for Nrf52832 S332

Rank

Total Posts: 1

Joined 2025-01-08

PM

Hi Tech Suppert,

I am really struggling getting thing to be able to compile when targeting NRF52832 and SoftDevice S332 (downloaded from ThisIsAnt in version 5)

The project I am upgrading is both a bootloader SDK10 Keil MDK 5 S310 and an app SDK 10 Keil MDK 5 S310

When using the S332 i get a lot of compile errors - it seems a lot has changed::

How can I go forward??

Copy of build info below:

==========================

Build started: Project: dfu_dual_bank_ble_s310_pca10028
*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'nrf51422_xxac'
Validate Run Time Environment: errors/warnings detected:
'NordicSemiconductor::nRF_SoftDevice:s332&default;@5.0.0': error #511: Additional software components required
require NordicSemiconductor::None:[email protected]: Install missing component
Clean started - Project: 'dfu_dual_bank_ble_s310_pca10028'
deleting intermediate output files for target 'nrf51422_xxac'
Clean done
compiling dfu_ble_svc.c...
compiling main.c...
C:\Users\jense\AppData\Local\Arm\Packs\NordicSemiconductor\nRF_SoftDevice_Common\1.1.5\softdevice_handler\softdevice_handler.h(117): error: #20: identifier "nrf_clock_lfclksrc_t" is undefined
uint32_t softdevice_handler_init(nrf_clock_lfclksrc_t clock_source,
..\..\..\main.c(171): error: #20: identifier "GATT_MTU_SIZE_DEFAULT" is undefined
SOFTDEVICE_HANDLER_APPSH_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, true);
..\..\..\main.c(171): error: #20: identifier "NRF_CLOCK_LFCLKSRC_XTAL_20_PPM" is undefined
SOFTDEVICE_HANDLER_APPSH_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, true);
..\..\..\main.c(174): error: #20: identifier "ble_enable_params_t" is undefined
ble_enable_params_t ble_enable_params;
..\..\..\main.c: 0 warnings, 4 errors
assembling arm_startup_nrf52.s...
compiling system_nrf52.c...
compiling ble_dfu.c...
compiling ble_srv_common.c...
compiling ble_advdata.c...
RTE/nRF_BLE/nRF52832_xxAA/ble_advdata.c(105): warning: #223-D: function "sd_ble_gap_address_get" declared implicitly
err_code = sd_ble_gap_address_get(&device;_addr);
RTE/nRF_BLE/nRF52832_xxAA/ble_advdata.c: 1 warning, 0 errors
compiling ble_conn_params.c...
compiling nrf_delay.c...
compiling pstorage_raw.c...
compiling bootloader.c...
C:/Users/jense/AppData/Local/Arm/Packs/NordicSemiconductor/nRF_Libraries/3.1.0/bootloader_dfu/bootloader.c(120): error: #20: identifier "MBR_SIZE" is undefined
image_crc = crc16_compute((uint8_t *)DFU_BANK_0_REGION_START,
C:/Users/jense/AppData/Local/Arm/Packs/NordicSemiconductor/nRF_Libraries/3.1.0/bootloader_dfu/bootloader.c(310): error: #20: identifier "MBR_SIZE" is undefined
err_code = sd_softdevice_vector_table_base_set(CODE_REGION_1_START);
C:/Users/jense/AppData/Local/Arm/Packs/NordicSemiconductor/nRF_Libraries/3.1.0/bootloader_dfu/bootloader.c: 0 warnings, 2 errors
compiling bootloader_settings.c...
compiling bootloader_util.c...
compiling dfu_dual_bank.c...
compiling dfu_transport_ble.c...
C:\Users\jense\AppData\Local\Arm\Packs\NordicSemiconductor\nRF_SoftDevice_Common\1.1.5\softdevice_handler\softdevice_handler.h(117): error: #20: identifier "nrf_clock_lfclksrc_t" is undefined
uint32_t softdevice_handler_init(nrf_clock_lfclksrc_t clock_source,
C:/Users/jense/AppData/Local/Arm/Packs/NordicSemiconductor/nRF_Libraries/3.1.0/bootloader_dfu/dfu_transport_ble.c(157): error: #20: identifier "BLE_ERROR_NO_TX_BUFFERS" is undefined
(err_code == BLE_ERROR_NO_TX_BUFFERS))
C:/Users/jense/AppData/Local/Arm/Packs/NordicSemiconductor/nRF_Libraries/3.1.0/bootloader_dfu/dfu_transport_ble.c(715): error: #20: identifier "ble_gap_whitelist_t" is undefined
ble_gap_whitelist_t whitelist;
C:/Users/jense/AppData/Local/Arm/Packs/NordicSemiconductor/nRF_Libraries/3.1.0/bootloader_dfu/dfu_transport_ble.c(724): error: #136: struct "<unnamed>" has no field "p_whitelist"
m_adv_params.p_whitelist = &whitelist;
C:/Users/jense/AppData/Local/Arm/Packs/NordicSemiconductor/nRF_Libraries/3.1.0/bootloader_dfu/dfu_transport_ble.c(739): error: #165: too few arguments in function call
err_code = sd_ble_gap_adv_start(&m_adv_params);
C:/Users/jense/AppData/Local/Arm/Packs/NordicSemiconductor/nRF_Libraries/3.1.0/bootloader_dfu/dfu_transport_ble.c(824): error: #136: struct "<unnamed>" has no field "keys_central"
keys.keys_central.p_id_key = &id;_key;
C:/Users/jense/AppData/Local/Arm/Packs/NordicSemiconductor/nRF_Libraries/3.1.0/bootloader_dfu/dfu_transport_ble.c(825): error: #136: struct "<unnamed>" has no field "keys_central"
keys.keys_central.p_enc_key = &enc;_key;
C:/Users/jense/AppData/Local/Arm/Packs/NordicSemiconductor/nRF_Libraries/3.1.0/bootloader_dfu/dfu_transport_ble.c(1067): warning: #223-D: function "sd_ble_gap_address_get" declared implicitly
err_code = sd_ble_gap_address_get(&addr;);
C:/Users/jense/AppData/Local/Arm/Packs/NordicSemiconductor/nRF_Libraries/3.1.0/bootloader_dfu/dfu_transport_ble.c(1073): warning: #223-D: function "sd_ble_gap_address_set" declared implicitly
err_code = sd_ble_gap_address_set(BLE_GAP_ADDR_CYCLE_MODE_NONE, &addr;);
C:/Users/jense/AppData/Local/Arm/Packs/NordicSemiconductor/nRF_Libraries/3.1.0/bootloader_dfu/dfu_transport_ble.c(1073): error: #20: identifier "BLE_GAP_ADDR_CYCLE_MODE_NONE" is undefined
err_code = sd_ble_gap_address_set(BLE_GAP_ADDR_CYCLE_MODE_NONE, &addr;);
C:/Users/jense/AppData/Local/Arm/Packs/NordicSemiconductor/nRF_Libraries/3.1.0/bootloader_dfu/dfu_transport_ble.c: 2 warnings, 8 errors
compiling app_error.c...
compiling app_scheduler.c...
RTE/nRF_Libraries/nRF52832_xxAA/app_scheduler.c(102): warning: #223-D: function "sd_nvic_critical_region_enter" declared implicitly
CRITICAL_REGION_ENTER();
RTE/nRF_Libraries/nRF52832_xxAA/app_scheduler.c(110): warning: #223-D: function "sd_nvic_critical_region_exit" declared implicitly
CRITICAL_REGION_EXIT();
RTE/nRF_Libraries/nRF52832_xxAA/app_scheduler.c: 2 warnings, 0 errors
compiling app_timer.c...
compiling app_timer_appsh.c...
compiling crc16.c...
compiling dfu_init_template.c...
RTE/nRF_Libraries/nRF52832_xxAA/dfu_init_template.c(121): erro