Hi,
I would like to build a project with functions below.
- Support BLE uart service
- Support CLI with uart interface for the communication with terminal, like TeraTerm.
- Has the ability to access persistent memory
After looking for the sdk examples i found two projects, flash_fstorage and ble_app_uart, are suitable for the requirement.(The locations of the two projects are listed after the signature.) Then i try to merge the two together, simply compare the difference between the two and adding miss files from one to the other. With some try and including paths, it builds successfully. Then i run the merged project on pca10040 board and do some simple tests before going ahead.
- Can it repeat the result of flash_fstorge: build and run merged project with main.c copied from flash_fstorge project, the results of the merged project and flash_fstorage are the same. it can erase, write and read persistent memory successfully.
- Can it repeat the result of ble_app_uart: build and run merged project with main.c copied from ble_app_uart project. It failed and shown the following message by RTT viewer.
0> app: ERROR 4 [NRF_ERROR_NO_MEM] at ......\main.c:221
After digging into more i found it failed on sd_ble_uuid_vs_add() with error number NRF_ERROR_NO_MEM. I wonder if i need change some parameters but i don't know how, any suggestion on it?
Thanks, Wayne
flash_fstorage project:
nRF5_SDK_14.2.0_17b948a\examples\peripheral\flash_fstorage\pca10040\s132\arm5_no_packs\flash_fstorage_example_s132_pca10040.uvprojx
ble_app_uart project:
nRF5_SDK_14.2.0_17b948a\examples\ble_peripheral\ble_app_uart\pca10040\s132\arm5_no_packs\ble_app_uart_pca10040_s132.uvprojx