We are using nRF52811, is there any sample code support to set/save thread power calibration table/data to available non-volatile partition.
thanks,
Webber
We are using nRF52811, is there any sample code support to set/save thread power calibration table/data to available non-volatile partition.
thanks,
Webber
Hi Webber,
Can you explain what is "thread power calibration table/data"? I assume it is not related to our Thread since nRF52811 has too small memory and flash to support Thread.
Back to the question, you can use the Flash Data Storage (FDS) library to store custom data flash with or without Softdevice enable. Please refer to Flash Data Storage Example, specifically you can modify "m_dummy_cfg" to your own target data structure.
Since there is no direct example for nRF52811, please modify the existing example "Section Placement Macros" ( project option -> common -> Linker-> Section Placement Macro) to the following configuration to fit nRF52811 memory map.
FLASH_PH_START=0x0 FLASH_PH_SIZE=0x30000 RAM_PH_START=0x20000000 RAM_PH_SIZE=0x6000 FLASH_START=0x0 FLASH_SIZE=0x30000 RAM_START=0x20000000 RAM_SIZE=0x6000
Best regards,
Charlie
Hi Charlie,
Thanks for your reply, what "thread power calibration table/data" is the calibrated result of power and voltage values such as "-r A0 -t 11,3,1100/14,11,1000/25,2,1100 -b 11,3,4 -s 1050,-4,300/970,-4,240/630,-8,320/580,-8,120....." with size of around 200 to 300bytes, and it should be set to and loaded from thread chip when it bootup, we're trying to implement this function on diagnostic mode with diag.c for reference, please advise us if there is other way recommend.
thanks,
Webber
Have you tried Flash Data Storage (FDS) example?
From my understanding, your hardware structure nRF52811 and thread chip are connected through an interface. nRF52811 store the calibration data from the thread chip after calibration operation and send the data back to thread chip during startup. If this is how it works, FDS should be OK, and you only need to add read, write drivers for this interface.
Hi Charlie,
Is there any document which shows how to config the .h and .c file from libraries for building hex file?
I copied folder fds from \nRF5_SDK_17.0.2_d674dde\components\libraries to
openthread\third_party\NordicSemiconductor\libraries, and got below errors as
../../../examples/platforms/nrf528xx/libopenthread-nrf52811.a(libopenthread_nrf52811_a-diag.o): In function `fds_test_init':
/media/public01/webber/openthread/examples/../examples/platforms/nrf528xx/src/diag.c:669: undefined reference to `fds_register'
what command I using to generate hex file is "make -f examples/Makefile-nrf52811 NCP_SPI=1 FULL_LOGS=1 DIAGNOSTIC=1 && arm-none-eabi-objcopy -O ihex output/nrf52811/bin/ot-ncp-mtd output/nrf52811/bin/ot-ncp-mtd.hex"
thanks
Webber
I will close this case since a new case has been created for this new question. Please always do this for the new questions.
how to find Makefile with correct directory to add including file from libraries