arduino / ArduinoCore-mbed

330 stars 195 forks source link

[AE-49] No video output for Portenta Vision Shield #661

Open aliphys opened 1 year ago

aliphys commented 1 year ago

The data sent from CameraCaptureRawBytes.ino sketch uploaded to a Portenta H7 + Vision Shield board is not displayed in the output in Processing 4.2 by the CameraRawBytesVisualizer.pde sketch.

image

Testing with the OpenMV IDE results in a smooth 60 FPS video feed, suggesting that the Portenta Vision shield in question is healthy.

image

Compile
``` PS C:\Users\user\AppData\Local\Temp\.arduinoIDE-unsaved2023311-19888-xzbezf.tewf\CameraCaptureRawBytes> arduino-cli compile -b arduino:mbed_portenta:envie_m7 Used library Version Path Camera 1.0 C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\4.0.2\libraries\Camera Wire C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\4.0.2\libraries\Wire Himax_HM0360 C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\4.0.2\libraries\Himax_HM0360 Used platform Version Path arduino:mbed_portenta 4.0.2 C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\4.0.2 ```
Upload
``` PS C:\Users\user\AppData\Local\Temp\.arduinoIDE-unsaved2023311-19888-xzbezf.tewf\CameraCaptureRawBytes> arduino-cli uploTOUCH: error during reset: opening port at 1200bps: Invalid serial port dfu-util 0.10-dev Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2021 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to http://sourceforge.net/p/dfu-util/tickets/ Warning: Invalid DFU suffix signature A valid DFU suffix will be required in a future dfu-util release Opening DFU capable USB device... Device ID 2341:035b Device DFU version 011a Claiming USB DFU Interface... Setting Alternate Interface #0 ... Determining device status... DFU state(2) = dfuIDLE, status(0) = No error condition is present DFU mode device DFU version 011a Device returned transfer size 4096 DfuSe interface name: "Internal Flash " Downloading element to address = 0x08040000, size = 172204 Erase [=========================] 100% 172204 bytes Erase done. Download [=========================] 100% 172204 bytes Download done. File downloaded successfully Transitioning to dfuMANIFEST state ```

Related to:

hpssjellis commented 1 year ago

@aliphys I used to have those issues, until I switched from a windows machine to ubuntu linux and then things were fine.

https://github.com/arduino-libraries/Arduino_OV767X/issues/5

By the way with the Portenta Waveshare grayscale 128x128 OLED is awesome with the Portenta

image

https://www.waveshare.com/1.5inch-oled-module.htm

I have many sketches that use both on my Portenta Pro Community Solutions Arduino Library (In the arduino library manager just type "community" it should show up)

The github link is here if you want to install it from a zipped file.

https://github.com/hpssjellis/portenta-pro-community-solutions.

The sketches are mainly in the dot35 area but also in the machine learning dot51 area