This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to send data from flash memory to ble?

Hello, I am using PCA10028 and sdk 12.2.0. Now I have interfaced temperature sensor and I am storing 4000 readings from sample to flash. Once all the 4000 samples are stored I want to send this data to my nrf app using ble. How can I do that?

I am attaching my code here. Please give me suggestions.

Also when I enable memory storage functions my PCA10028 does not advertise.

main.c New Text Document (2).txt

Thanks, Shailav

Parents
  • FormerMember
    0 FormerMember

    The example ble_app_hrs-fds-test-github.zip in this answer shows how to use FDS when the softdevice is enabled, I would recommend you to take a look at it. It shows how to write and read data from flash.

  • Hello Kristin, I have downloaded code ble_app_uart_test_throughput.zip from devzone.nordicsemi.com/.../. I think this is what you were trying to suggest me. Now my only challenge is that my function data_send gives me error as conflicting types for data_send and when I call this function like below

     case BLE_EVT_TX_COMPLETE:
            if(m_nus.is_notification_enabled == true)
    					{
    						err_code = sd_nvic_SetPendingIRQ(DATA_SEND_IRQn);
    						APP_ERROR_CHECK(err_code);
    						data_send();
    					}
            break;
    

    It gives me error as "implicit declaration of function" Thanks, Shailav

Reply
  • Hello Kristin, I have downloaded code ble_app_uart_test_throughput.zip from devzone.nordicsemi.com/.../. I think this is what you were trying to suggest me. Now my only challenge is that my function data_send gives me error as conflicting types for data_send and when I call this function like below

     case BLE_EVT_TX_COMPLETE:
            if(m_nus.is_notification_enabled == true)
    					{
    						err_code = sd_nvic_SetPendingIRQ(DATA_SEND_IRQn);
    						APP_ERROR_CHECK(err_code);
    						data_send();
    					}
            break;
    

    It gives me error as "implicit declaration of function" Thanks, Shailav

Children
No Data
Related