Debugging my code using edge impulse on vs code

I wat to deug my coe and I have this errors, have you an idea about how to fix them?

HardFault_Handler@0x0002ec3e (c:\Users\ghaaz\Desktop\nRF5_SDK_15.3.0_59ac345copy\modules\nrfx\mdk\gcc_startup_nrf52840.S:300)
<signal handler called>@0xffffffe9 (Unknown Source:0)
_free_r@0x00037d64 (\_free_r.cdasm:18)
ei_free@0x00026336 (c:\Users\ghaaz\Desktop\nRF5_SDK_15.3.0_59ac345copy\examples\test1\ble_app_blinky1copy\edge_impulse\edge-impulse-sdk\porting\ei_classifier_porting.cpp:76)
ei::ei_matrix::~ei_matrix@0x00028224 (c:\Users\ghaaz\Desktop\nRF5_SDK_15.3.0_59ac345copy\examples\test1\ble_app_blinky1copy\edge_impulse\edge-impulse-sdk\dsp\numpy_types.h:124)
(anonymous namespace)::extract_raw_features@0x000284dc (c:\Users\ghaaz\Desktop\nRF5_SDK_15.3.0_59ac345copy\examples\test1\ble_app_blinky1copy\edge_impulse\edge-impulse-sdk\classifier\ei_run_dsp.h:161)
(anonymous namespace)::run_classifier@0x000292da (c:\Users\ghaaz\Desktop\nRF5_SDK_15.3.0_59ac345copy\examples\test1\ble_app_blinky1copy\edge_impulse\edge-impulse-sdk\classifier\ei_run_classifier.h:457)
process_input@0x0003421c (c:\Users\ghaaz\Desktop\nRF5_SDK_15.3.0_59ac345copy\examples\test1\ble_app_blinky1copy\main.c:652)
main@0x000342a6 (c:\Users\ghaaz\Desktop\nRF5_SDK_15.3.0_59ac345copy\examples\test1\ble_app_blinky1copy\main.c:677)

Parents Reply
  • I can build my code, and when I debug The code stopped and didn't give me the result of this function

    if (process_input(500)>0.5)
       SEGGER_RTT_WriteString(0, "in danger");
       else
       SEGGER_RTT_WriteString(0, "not in danger");
    <<<float process_input(uint8_t val){
      features[0]=val;
      for (i=1;i<600;i++)
      features[i]=0;
      signal_t signal;
      signal.total_length=FEATURES_SIZE;
      signal.get_data=&raw_feature_get_data;
      ei_impulse_result_t result;
      EI_IMPULSE_ERROR res = run_classifier(&signal,&result,true);
     return result.classification[0].value;
     
    }             >>>
     
Children
No Data
Related