|
| 1 | +# x-cube-n6-camera-capture Application |
| 2 | + |
| 3 | +Computer Vision application to capture video stream using USB UVC. |
| 4 | + |
| 5 | +Streamed video format is 800x480 YUV422 at 30 frames per second. |
| 6 | + |
| 7 | +## Package Content |
| 8 | + |
| 9 | +This package contains in the Binary directory ready-to-flash Intel hex files for STM32N6570-DK and NUCLEO-N657X0-Q platforms. |
| 10 | + |
| 11 | +For each platform, there are two binary flavors: |
| 12 | +- front: It's a selfie-like orientation. |
| 13 | +- rear: It's a camera-like orientation. |
| 14 | + |
| 15 | +## Hardware Support |
| 16 | + |
| 17 | +### MB1939 STM32N6570-DK |
| 18 | + |
| 19 | +- The board should be connected to the onboard ST-LINK debug adapter CN6 with a **USB-C to USB-C cable to ensure sufficient power**. |
| 20 | +- An additional USB cable to connect USB1 (CN18) to the host computer for UVC streaming. |
| 21 | +- OTP fuses are set in this example for xSPI IOs to get the maximum speed (200MHz) on xSPI interfaces. |
| 22 | + |
| 23 | +- 3 cameras are supported: |
| 24 | + - MB1854B IMX335 (Default camera provided with the MB1939 STM32N6570-DK board) |
| 25 | + - STEVAL-55G1MBI VD55G1 camera module |
| 26 | + - STEVAL-66GYMAI VD66GY camera module |
| 27 | + |
| 28 | +### MB1940 NUCLEO-N657X0-Q |
| 29 | + |
| 30 | +- The board should be connected to the onboard ST-LINK debug adapter CN10 with a **USB-C to USB-C cable to ensure sufficient power**. |
| 31 | +- An additional USB cable to connect USB (CN8) to the host computer for UVC streaming. |
| 32 | +- OTP fuses are set in this example for xSPI IOs to get the maximum speed (200MHz) on xSPI interfaces. |
| 33 | + |
| 34 | +- 3 cameras are supported: |
| 35 | + - MB1854B IMX335 |
| 36 | + - STEVAL-55G1MBI VD55G1 camera module |
| 37 | + - STEVAL-66GYMAI VD66GY camera module |
| 38 | + |
| 39 | +## Tools Version |
| 40 | + |
| 41 | +- [STM32CubeProgrammer](https://www.st.com/en/development-tools/stm32cubeprog.html) (**v2.18.0**) |
| 42 | + |
| 43 | +## Console parameters |
| 44 | + |
| 45 | +You can see application messages by attaching a console application to the ST-Link console output. Use the following console parameters: |
| 46 | +- Baud rate of 115200 bps. |
| 47 | +- No parity. |
| 48 | +- One stop bit. |
| 49 | + |
| 50 | +## Flash Binaries |
| 51 | + |
| 52 | +### STM32N6570-DK |
| 53 | + |
| 54 | +1. Set BOOT0 and BOOT1 switches to the right position. |
| 55 | +2. Power up the board by connecting the ST-LINK debug adapter CN6 to the host computer. |
| 56 | +3. Program `Binary/x-cube-n6-camera-capture_<front|rear>_STM32N6570-DK.hex`. |
| 57 | +4. Set BOOT0 and BOOT1 switches to the left position. |
| 58 | +5. Perform a power down/up sequence. |
| 59 | +6. If not yet done, connect USB1 (CN18) to the host computer. |
| 60 | +7. Launch the host webcam application. |
| 61 | + |
| 62 | +### NUCLEO-N657X0-Q |
| 63 | + |
| 64 | +1. Set BOOT0 and BOOT1 switches to the right position. |
| 65 | +2. Power up the board by connecting the ST-LINK debug adapter CN10 to the host computer. |
| 66 | +3. Program `Binary/x-cube-n6-camera-capture_<front|rear>_NUCLEO-N657X0-Q.hex`. |
| 67 | +4. Set BOOT0 and BOOT1 switches to the left position. |
| 68 | +5. Perform a power down/up sequence. |
| 69 | +6. If not yet done, connect USB (CN8) to the host computer. |
| 70 | +7. Launch the host webcam application. |
0 commit comments