Sony's Developer World forum

    • Home
    • Forum guidelines

    Upcoming maintenance 

     

    Dear Customers and Partners.

    This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.

    This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.

    We apologize for any inconvenience.

     

     

    Spresense SDK camera example hard fault.

    Spresense
    camera spresense sdk nuttx examples
    1
    2
    513
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sk_shibi last edited by sk_shibi

      Hello,
      I am attempting to interface the camera add on board CXD5602PWBCAM1E with Spresense main and extension board using Spresense SDK Camera example.

      The below image the setup of the camera add on board to the Spresense.

      IMG_2624.jpg

      I interfaced the camera using Spresense Arduino library to check for any connectivity or setup issue. I was successfully able to capture images from the camera and write onto the SD card.

      When I attempted to run the example camera application in Spresense SDK, I ran into the issue of the hard fault.

      Camera example: https://github.com/sonydevworld/spresense-nuttx-apps/tree/new-master/examples/camera/

      I added some debugging prints to check the issue and discovered that it crashed while opening the /dev/video file using open("/dev/video", 0); line.

      video_initialize("/dev/video"); function was able to generate the file in the dev folder. But I am unsure if the creation of the device file is at fault.

      Below image is the code in the camera_main.c in camera example with my debugging print statements.
      Screenshot from 2022-01-10 14-52-29.png

      The below image is the serial terminal hard fault message. The camera device is created but it crashes when trying to open the character device.
      Screenshot from 2022-01-10 14-52-49.png

      My SDK configuration has most options related to video and camera enabled including CMOS image sensor.

      Screenshot from 2022-01-10 15-09-49.png
      Screenshot from 2022-01-10 15-10-01.png

      Screenshot from 2022-01-10 15-07-53.png

      Screenshot from 2022-01-10 15-14-29.png

      I am a stuck on how to get past the open function in the Spresense so as to use the example as a sample for my own program.

      Any support to resolve the issue will be very much helpful.

      Thanks and Regards,
      Shibi.

      S 1 Reply Last reply Reply Quote
      • S
        sk_shibi @sk_shibi last edited by

        Hi,
        I was going through the default configuration in Spresense SDK example folder spresense/sdk/configs/examples/camera/defconfig and found that CXD56_I2C2 in SDK Config was not enabled in my project which primarily caused the hard fault in the program. After enabling that option, the camera example is now working as expected.

        1 Reply Last reply Reply Quote
        • First post
          Last post
        Developer World
        Copyright © 2021 Sony Group Corporation. All rights reserved.
        • Contact us
        • Legal