I am trying to use the Pi Camera Module (v1.3) with the Raspberry Pi HAT Adapter.
The steps that I had executed were:
1) Get the code, hw manifest and nuttx config from picamera sample project:
$ cd $BUILD_TOP/nuttx/nuttx/tools
$ ./configure.sh hdk/muc/picamera
2) I used all the default configuration from the picamera in the menuconfig. I had only changed the following item because my module is 1.3 (instead of 2.0):
-> Device Drivers
--> Mods High Speed Bus (MHB) driver Support
---> MHB Camera
----> OV5674 Raspberry Pi Module = Y
----> IMX219 Raspberry Pi Module (v2) = N
3) Turned on the Dip Switch A1. The rest of them were off.
4) VIO switch in Rasp HAT Adapter set to 3P3.
When I open the camera app in my Moto Z, the message Camera Error: Please restart camera is shown.
In the dmesg logs, the following is shown:
[14889879.801] apbe_pwrctrl_op_set_mode: power mode=1
[1488987320.819] mhb_rx_thread: ERROR: Invalid length=7f00
[1488987320.824] mhb_handle_pm_status_not: PM status: 1
[1488987320.824] _mhb_camera_slave_status_callback: slave status 1 wait_event=0xfe03
[1488987320.837] mhb_handle_pm_status_not: PM status: 3
[1488987320.837] hb_camera_slave_status_callback: slave status 3 wait_event=0xfe03
[1488987320.841] _mhb_camera_wait_for_response: INFO: Time spent on PEERONNECTED 1508ms Result 0
[1488987321.903] _mhb_camera_wait_for_response: ERROR: Time spent on CDSI CONFIG 1013ms Result 6E
[1488987321.908] m_camera_sm_wait_stream_process_ev: FAILED s_state 3 event -1. Powering Off
Does someone had this problem? Do you know what could be wrong?
Thanks