CSI2 HM0360 ISP Example

How to run

IMPORTANT: you might need to change the Master Clock of the HM0360 if you are using the external Add-On to the 12MHz one (default using 24MHz) in the HM0360 Options of the menuconfig.

  1. Demo modes available:

    • Saving pictures (CONFIG_SAVING_PICTURE=y): save a single image to file (Out.ppm in the build directory)

    • Stream image through UART (CONFIG_APP_STREAM_TO_UART=y): stream images via uart. You can use the ../uart_read_image.py script to read the streamed images and display them with this command run in another terminal:

      python ../uart_read_image.py --ttyUSB 1 --img_resolution QVGA/VGA
      
  2. Configure CMake with the desired camera resolution

    Format QVGA: .. code-block:: bash

    cmake -B build “-DCONFIG_DRIVER_HM0360_FORMAT_QVGA=y”

    Format VGA: .. code-block:: bash

    cmake -B build “-DCONFIG_DRIVER_HM0360_FORMAT_VGA=y”

  3. Build and run the application

    cmake --build build -t run
    
  4. Display the image (if SAVING_PICTURE mode)

    feh build/Out.ppm
    

Write image to L3

There is also an option to write the incoming image from camera directly to L3. This is shown in test_l3.c and this mode can be enebaled in the menuconfig options.