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

Including nRF5 SDK for Mesh functionality in an nRF5 SDK example

Hello,


I'm integrating Nordic Mesh SDK into nRF5_SDK_15.2. I have following following guide for this:


https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v3.2.0%2Fmd_doc_getting_started_how_to_nordicSDK.html


After completing all the steps, the compiler shows following errors. I'm unable to locate the cause of error. It seems there are several constants related to
flash storage that are declared somewhere (or need to be declared). I'm not sure where they are declared or where to declare them. Can anybody please guide me?

Building ‘project’ from solution ‘project’ in configuration ‘Debug’
'Output/project Debug/Obj/thumb_crt0.o' is up to date
'Output/project Debug/Obj/nrf_log_backend_rtt.o' is up to date
'Output/project Debug/Obj/nrf_log_backend_serial.o' is up to date
'Output/project Debug/Obj/nrf_log_backend_uart.o' is up to date
'Output/project Debug/Obj/nrf_log_default_backends.o' is up to date
'Output/project Debug/Obj/nrf_log_frontend.o' is up to date
'Output/project Debug/Obj/nrf_log_str_formatter.o' is up to date
'Output/project Debug/Obj/app_button.o' is up to date
'Output/project Debug/Obj/app_error.o' is up to date
'Output/project Debug/Obj/app_error_handler_gcc.o' is up to date
'Output/project Debug/Obj/app_error_weak.o' is up to date
'Output/project Debug/Obj/app_scheduler.o' is up to date
'Output/project Debug/Obj/app_timer.o' is up to date
'Output/project Debug/Obj/app_util_platform.o' is up to date
'Output/project Debug/Obj/crc16.o' is up to date
'Output/project Debug/Obj/fds.o' is up to date
'Output/project Debug/Obj/hardfault_implementation.o' is up to date
'Output/project Debug/Obj/nrf_assert.o' is up to date
'Output/project Debug/Obj/nrf_atfifo.o' is up to date
'Output/project Debug/Obj/nrf_atflags.o' is up to date
'Output/project Debug/Obj/nrf_atomic.o' is up to date
'Output/project Debug/Obj/nrf_balloc.o' is up to date
'Output/project Debug/Obj/nrf_fprintf.o' is up to date
'Output/project Debug/Obj/nrf_fprintf_format.o' is up to date
'Output/project Debug/Obj/nrf_fstorage.o' is up to date
'Output/project Debug/Obj/nrf_fstorage_sd.o' is up to date
'Output/project Debug/Obj/nrf_memobj.o' is up to date
'Output/project Debug/Obj/nrf_pwr_mgmt.o' is up to date
'Output/project Debug/Obj/nrf_ringbuf.o' is up to date
'Output/project Debug/Obj/nrf_section_iter.o' is up to date
'Output/project Debug/Obj/nrf_strerror.o' is up to date
'Output/project Debug/Obj/sensorsim.o' is up to date
'Output/project Debug/Obj/app_pwm.o' is up to date
'Output/project Debug/Obj/ses_startup_nrf52840.o' is up to date
'Output/project Debug/Obj/ses_startup_nrf_common.o' is up to date
'Output/project Debug/Obj/system_nrf52840.o' is up to date
'Output/project Debug/Obj/boards.o' is up to date
'Output/project Debug/Obj/nrf_drv_clock.o' is up to date
'Output/project Debug/Obj/nrf_drv_uart.o' is up to date
'Output/project Debug/Obj/nrfx_clock.o' is up to date
'Output/project Debug/Obj/nrfx_gpiote.o' is up to date
'Output/project Debug/Obj/nrfx_power_clock.o' is up to date
'Output/project Debug/Obj/nrfx_prs.o' is up to date
'Output/project Debug/Obj/nrfx_uart.o' is up to date
'Output/project Debug/Obj/nrfx_uarte.o' is up to date
'Output/project Debug/Obj/nrfx_saadc.o' is up to date
'Output/project Debug/Obj/nrfx_timer.o' is up to date
'Output/project Debug/Obj/nrf_drv_ppi.o' is up to date
'Output/project Debug/Obj/nrfx_ppi.o' is up to date
'Output/project Debug/Obj/bsp.o' is up to date
'Output/project Debug/Obj/bsp_btn_ble.o' is up to date
'Output/project Debug/Obj/main.o' is up to date
'Output/project Debug/Obj/SEGGER_RTT.o' is up to date
'Output/project Debug/Obj/SEGGER_RTT_Syscalls_SES.o' is up to date
'Output/project Debug/Obj/SEGGER_RTT_printf.o' is up to date
'Output/project Debug/Obj/auth_status_tracker.o' is up to date
'Output/project Debug/Obj/ble_advdata.o' is up to date
'Output/project Debug/Obj/ble_advertising.o' is up to date
'Output/project Debug/Obj/ble_conn_params.o' is up to date
'Output/project Debug/Obj/ble_conn_state.o' is up to date
'Output/project Debug/Obj/ble_srv_common.o' is up to date
'Output/project Debug/Obj/gatt_cache_manager.o' is up to date
'Output/project Debug/Obj/gatts_cache_manager.o' is up to date
'Output/project Debug/Obj/id_manager.o' is up to date
'Output/project Debug/Obj/nrf_ble_gatt.o' is up to date
'Output/project Debug/Obj/nrf_ble_qwr.o' is up to date
'Output/project Debug/Obj/peer_data_storage.o' is up to date
'Output/project Debug/Obj/peer_database.o' is up to date
'Output/project Debug/Obj/peer_id.o' is up to date
'Output/project Debug/Obj/peer_manager.o' is up to date
'Output/project Debug/Obj/peer_manager_handler.o' is up to date
'Output/project Debug/Obj/pm_buffer.o' is up to date
'Output/project Debug/Obj/security_dispatcher.o' is up to date
'Output/project Debug/Obj/security_manager.o' is up to date
'Output/project Debug/Obj/utf.o' is up to date
'Output/project Debug/Obj/nrf_sdh.o' is up to date
'Output/project Debug/Obj/nrf_sdh_ble.o' is up to date
'Output/project Debug/Obj/nrf_sdh_soc.o' is up to date
'Output/project Debug/Obj/cue_service.o' is up to date
'Output/project Debug/Obj/scr_service.o' is up to date
'Output/project Debug/Obj/dev_service.o' is up to date
'Output/project Debug/Obj/cue_driver.o' is up to date
'Output/project Debug/Obj/rgb_driver.o' is up to date
'Output/project Debug/Obj/fds_driver.o' is up to date
'Output/project Debug/Obj/scr_timer.o' is up to date
'Output/project Debug/Obj/adc_driver.o' is up to date
'Output/project Debug/Obj/dev_name.o' is up to date
'Output/project Debug/Obj/scr_execute.o' is up to date
'Output/project Debug/Obj/dfu_driver.o' is up to date
'Output/project Debug/Obj/test_cues.o' is up to date
'Output/project Debug/Obj/test_drives.o' is up to date
'Output/project Debug/Obj/cache.o' is up to date
'Output/project Debug/Obj/ccm_soft.o' is up to date
'Output/project Debug/Obj/core_tx.o' is up to date
'Output/project Debug/Obj/core_tx_adv.o' is up to date
'Output/project Debug/Obj/core_tx_instaburst.o' is up to date
'Output/project Debug/Obj/core_tx_lpn.o' is up to date
'Output/project Debug/Obj/enc.o' is up to date
'Output/project Debug/Obj/event.o' is up to date
'Output/project Debug/Obj/fifo.o' is up to date
'Output/project Debug/Obj/flash_manager.o' is up to date
'Output/project Debug/Obj/flash_manager_defrag.o' is up to date
'Output/project Debug/Obj/flash_manager_internal.o' is up to date
'Output/project Debug/Obj/fsm.o' is up to date
'Output/project Debug/Obj/hal.o' is up to date
'Output/project Debug/Obj/heartbeat.o' is up to date
'Output/project Debug/Obj/internal_event.o' is up to date
'Output/project Debug/Obj/list.o' is up to date
'Output/project Debug/Obj/log.o' is up to date
'Output/project Debug/Obj/lpn.o' is up to date
'Output/project Debug/Obj/mesh_config.o' is up to date
'Output/project Debug/Obj/mesh_config_backend.o' is up to date
Output/project Debug/Obj/mesh_config_flashman_glue.o does not exist.
Output/project Debug/Obj/mesh_flash.o does not exist.
Compiling ‘mesh_flash.c’



mesh_flash.c
'FLASH_TIME_TO_ERASE_PAGE_US' undeclared here (not in a function)
in definition of macro 'NRF_MESH_STATIC_ASSERT'
'FLASH_TIME_TO_WRITE_ONE_WORD_US' undeclared (first use in this function); did you mean 'FLASH_TIME_TO_ERASE_PAGE_US'?
each undeclared identifier is reported only once for each function it appears in
'FLASH_TIME_TO_WRITE_ONE_WORD_US' undeclared (first use in this function); did you mean 'FLASH_TIME_TO_ERASE_PAGE_US'?
'FLASH_TIME_TO_WRITE_ONE_WORD_US' undeclared (first use in this function); did you mean 'FLASH_TIME_TO_ERASE_PAGE_US'?
Output/project Debug/Obj/mesh_lpn_subman.o does not exist.
Compiling ‘mesh_lpn_subman.c’
'Output/project Debug/Obj/mesh_mem_mem_manager.o' is up to date
Compiling ‘mesh_config_flashman_glue.c’
'FLASH_TIME_TO_WRITE_ONE_WORD_US' undeclared (first use in this function); did you mean 'FLASH_TIME_PER_WORD_US'?
in expansion of macro 'FLASH_TIME_PER_WORD_US'
each undeclared identifier is reported only once for each function it appears in
in expansion of macro 'FLASH_TIME_PER_WORD_US'
Output/project Debug/Obj/mesh_mem_packet_mgr.o does not exist.
Compiling ‘mesh_mem_packet_mgr.c’
Build failed

Parents Reply
  • Hi again, 

    I just modified the example in nRF Mesh SDK v4.0 (nRF5 SDK v16) to allow PBGATT provisioning and GATT proxy with UART. It's simply a quick modification, not properly tested. What I did beside adding proxy is to remove the nrf_ble_gatt library (MTU is handled by the mesh gatt library) and adding the NUS service re-initialization after provisioning ( check the call NUS_init() inside sd_state_evt_handler() in mesh_provisionee.c)

    It's for nRF52832 but it shouldn't be difficult to convert to nRF52840 (use any text editor to compare the NRF52840 project file and nRF52832 project file (in other mesh example) using notepad++ for example and apply the same to the current project). 



    Update: here is the same application but updated for Mesh SDK v5.0 and nRF5 SDK v17.x

    3755.ble_app_uart_coexist_GATT_SDK5.0.zip

Children
Related