Question/Issue:
When deploying a model via CMSIS-PACK, the following compilation error occurs:
..\edgeimpulse\model-parameters/model_variables.h(135): error: field designator 'block_id' does not refer to any field in type 'const ei_learning_block_config_anomaly_kmeans_t'
.block_id = 6,
^
1 error generated.
Project ID:
766035
Context/Use case:
Based on the error message, I can pinpoint the problem to the model_variables.h file. Comparing it with the previously correct file, I see that the parameter ‘block_id’ has been added to ‘ei_learning_block_config_anomaly_kmeans_t’ . In the ei_model_types.h file that defines ‘ei_learning_block_config_anomaly_kmeans_t’ , I also see no parameter ‘block_id’ .
I suspect this is due to a mismatch between the model PACK and SDK-PACK.
Reproducibility:
- [ ] Always
Environment:
- Platform: [STM32F4]
- Build Environment Details: [KEIL V5.36]
- Edge Impulse Version (Firmware): [1.74.8]
- Project Version: [7.0.0, 9.0.0]
Additional Information:
My current solution is to block the line of code in model_variables.h(135), so that the model can work normally.