I would like to modify the weather station demo firmware with segger embedded studio. Does anyone have the firmware bundled as a segger embedded studio solution that they could share?
It would save a lot of hasstle getting the codebase configered properly.
Itās going to take me another few hours (across a hopefully-very-small-number-of-days) to get ses+SDK12.3 up. (I forgot I was using my own code in ses with SDK14.2.)
This is taking longer than I expected. The nfc .a file expects certain symbols. I tried the quick-and-dirty route of removing nfc, but still have some issues getting all the right symbols in place. Itās going to be at least a few days before I can revisit this.
An the error message on building the code is as below. It appears to me the libraries under the C:\Ruuvi folder are not being compiled during build process.
Rebuilding āR4ā from solution āR4ā in configuration āDebugā
Compiling āmain.cā
Compiling āSEGGER_RTT_Syscalls_SES.cā
Compiling āSEGGER_RTT.cā
Assembling āthumb_crt0.sā
Assembling āCortex_M_Startup.sā
Assembling āHardFaultHandler.Sā
Compiling āSEGGER_HardFaultHandler.cā
Generating linker script āR4.ldā
Linking R4.elf
Output/R4 Debug/Obj/main.o: In function nrf_delay_us': undefined reference toSystemCoreClockā
Output/R4 Debug/Obj/main.o: In function change_mode': undefined reference tomillisā
undefined reference to millis' undefined reference tolis2dh12_set_sample_rateā
undefined reference to app_timer_stop' undefined reference toapp_timer_startā
undefined reference to bluetooth_configure_advertising_interval' undefined reference tobluetooth_apply_configurationā
undefined reference to lis2dh12_set_sample_rate' undefined reference toapp_timer_stopā
undefined reference to app_timer_start' undefined reference tobluetooth_configure_advertising_intervalā
undefined reference to bluetooth_apply_configuration' Output/R4 Debug/Obj/main.o: In functionbutton_press_handlerā:
undefined reference to app_sched_event_put' Output/R4 Debug/Obj/main.o: In functionpower_manageā:
undefined reference to app_error_handler' Output/R4 Debug/Obj/main.o: In functionupdateAdvertisementā:
undefined reference to bluetooth_set_manufacturer_data' undefined reference tobluetooth_set_eddystone_urlā
Output/R4 Debug/Obj/main.o: In function main_timer_handler': undefined reference tobme280_read_measurementsā
undefined reference to bme280_get_temperature' undefined reference tobme280_get_pressureā
undefined reference to bme280_get_humidity' undefined reference tolis2dh12_read_samplesā
undefined reference to getBattery' undefined reference toparseSensorDataā
undefined reference to encodeToRawFormat5' undefined reference toencodeToUrlDataFromatā
undefined reference to watchdog_feed' Output/R4 Debug/Obj/main.o: In functionmainā:
undefined reference to init_sensors' undefined reference toinit_logā
undefined reference to init_leds' undefined reference toinit_nfcā
undefined reference to init_ble' undefined reference tobluetooth_advertising_stopā
undefined reference to bluetooth_tx_power_set' undefined reference tobluetooth_configure_advertising_intervalā
undefined reference to init_timer' undefined reference toinit_rtcā
undefined reference to pin_interrupt_init' undefined reference topin_interrupt_enableā
undefined reference to pin_interrupt_enable' undefined reference tolis2dh12_resetā
undefined reference to lis2dh12_enable' undefined reference tolis2dh12_set_scaleā
undefined reference to lis2dh12_set_sample_rate' undefined reference tolis2dh12_set_resolutionā
undefined reference to lis2dh12_write_register' undefined reference tolis2dh12_write_registerā
undefined reference to lis2dh12_write_register' undefined reference topin_interrupt_enableā
undefined reference to lis2dh12_set_interrupts' undefined reference tobme280_set_oversampling_humā
undefined reference to bme280_set_oversampling_temp' undefined reference tobme280_set_oversampling_pressā
undefined reference to bme280_set_iir' undefined reference tobme280_set_intervalā
undefined reference to bme280_set_mode' undefined reference toinit_blink_statusā
undefined reference to init_watchdog' undefined reference tobluetooth_advertising_startā
undefined reference to app_sched_execute' undefined reference tolis2dh12_int1_handlerā
Build failed
I have the same impression, but could not find the root cause. Both .h and .c files of the Ruuvi supplied code are on the same folders and the directive that points them out to the IDE are declared on āUser Include Directoriesā. Any hint?