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

Can i use sd_ble_gatts_hvx function in freertos custom thread?

the priority of my custom thread is lowest priority. but it's not possible to call hvx function.

in ble_app_hrs_freertos example,

a sd_ble_gatts_hvx function is called in timer service routine context.

that's ok. because interrupt service routine.

i know that a interupt servie routine context same to main in freertos.

So, is it possible to only call a sd_ble_gatts_hvx function in main context or interrupt context????

if it is not, please show me example.

Parents
  • Thanks for reply. I tested your example code. and it's good.

    but in my project, the hardfault is occured.

    So, i checked again my code. before calling hvx function, my code use a floating point operation.

    my project base is nRF5_SDK_11.0.0-2.alpha_bc3f6a0.

    I chaned a base sdk to nRF5_SDK_11.0.0_89a8197.

    then hardfault disappeared.

    i don't know the cause.

    in nRF5_SDK_11.0.0-2.alpha_bc3f6a0 , do you have a FPU problem in freertos?

    i would like to know the cause.

Reply
  • Thanks for reply. I tested your example code. and it's good.

    but in my project, the hardfault is occured.

    So, i checked again my code. before calling hvx function, my code use a floating point operation.

    my project base is nRF5_SDK_11.0.0-2.alpha_bc3f6a0.

    I chaned a base sdk to nRF5_SDK_11.0.0_89a8197.

    then hardfault disappeared.

    i don't know the cause.

    in nRF5_SDK_11.0.0-2.alpha_bc3f6a0 , do you have a FPU problem in freertos?

    i would like to know the cause.

Children
Related