You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@facchinm (I wouldn't bug you if it wasn't important!)
Someone on the edgeImpulse.com forum is trying to get a machine learning vision model working on the M4 core. When I try even the simple Arduino camera raw bytes example I get the same results as a complex sketch:
C:\Arduino-1.8.19\portable\packages\arduino\hardware\mbed_portenta\3.1.1\libraries\Camera\src\camera.cpp: In function 'void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef*)':
C:\Arduino-1.8.19\portable\packages\arduino\hardware\mbed_portenta\3.1.1\libraries\Camera\src\camera.cpp:120:27: error: 'DCMI_TIM' was not declared in this scope
if (htim->Instance == DCMI_TIM) {
Is this something that might have an easy fix or is it more complex than that?
The text was updated successfully, but these errors were encountered:
Hi Jeremy,
this is due to this and this lines, that should read #if defined(PORTENTA_H7_M7) || defined(PORTENTA_H7_M4) to apply to M4 core too.
Let me know if changing it makes the camera work on the M4, because there may be other issues with memory zones and DMA. If it works, I'll be glad to merge the patch immadiately
Basically Camera::grabFrame( needs SCB_InvalidateDCache_by_Addr(, but I can't seem to get it included for the PortentaH7 M4 core, it runs fine on the M7 Core.
The file cachel1_armv7.h that has SCB_InvalidateDCache_by_Addr( is here
I am testing using the Arduino example CameraMotionDetect I am getting the same error even if I switch to SDRAM or the HEAP for the camera buffer, those examples are here
@facchinm (I wouldn't bug you if it wasn't important!)
Someone on the edgeImpulse.com forum is trying to get a machine learning vision model working on the M4 core. When I try even the simple Arduino camera raw bytes example I get the same results as a complex sketch:
Is this something that might have an easy fix or is it more complex than that?
The text was updated successfully, but these errors were encountered: