Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After the program changes the camera to HM0360, the machine does not work. #11

Open
namejinnameyuan opened this issue Jan 6, 2025 · 12 comments
Assignees
Labels
sscma-example-we2 Label for sscma-example-we2 Stale UAY Unassigned yet

Comments

@namejinnameyuan
Copy link

Please check the output information. I2C cannot communicate with HM0360. What parts of the program configuration need to be modified?

[15:28:56.400]收←◆\0
[15:28:56.548]收←◆1st BL Modem Build DATE=Nov 30 2023, 0x0002000b
Please input any key to enter X-Modem mode in 100 ms
waiting input key
[15:28:56.569]收←◆\0
[15:28:56.626]收←◆1st BL Modem Build DATE=Nov 30 2023, 0x0002000b
Please input any key to enter X-Modem mode in 100 ms
waiting input key
[15:28:56.729]收←◆...
slot_header invalid !!
slot flash_offset 0x00000000
New MemDesp himax_sec_SB_image_process PASS
set_memory_s_ns
bl_status = 0x800000, HX_DSP_FLAG 1
bl_status = 0x800000

[15:28:56.760]收←◆jump_addr=0x10000000
Compiler Version: ARM GNU, 13.2.1 20231009
wakeup_event=0x0,WakeupEvt1=0x0, freq=400000000
ori_clk src info, 0x56100030=4077
ori_clk src info, 0x56100034=0
ori_clk src info, 0x56100038=c1a4
clk src info, 0x56100030=4037
clk src info, 0x56100034=0
clk src info, 0x56100038=c1b8
__GNUC
mm_start_addr address: 3401f000
YOLO11n object detection
TA[3401f000]
Ethos-U55 device initialised
[ERROR] yolo11n_ob_model's schema version -1 is not equal to supported version 3
cis_hm0360_init
Set PA1(AON_GPIO1) to High
hx_drv_cis_set_slaveID(0x24)
dw_iic_write err_state:2
dw_iic_write err_code:-60
[hx_drv_i2cm_write_data]-L:701, Fail:-60
retry=0, (regAddr=0x0100, val=0x00) Fail (-60)
dw_iic_write err_state:2
dw_iic_write err_code:-60
[hx_drv_i2cm_write_data]-L:701, Fail:-60
retry=1, (regAddr=0x0100, val=0x00) Fail (-60)
dw_iic_write err_state:2
dw_iic_write err_code:-60
[hx_drv_i2cm_write_data]-L:701, Fail:-60
retry=2, (regAddr=0x0100, val=0x00) Fail (-60)
HM0360 off by app fail

CIS Init fail

[15:46:02.354]收←◆\0
[15:46:02.471]收←◆1st BL Modem Build DATE=Nov 30 2023, 0x0002000b
Please input any key to enter X-Modem mode in 100 ms
waiting input key
[15:46:02.578]收←◆...
slot_header invalid !!
slot flash_offset 0x00000000
New MemDesp himax_sec_SB_image_process PASS
set_memory_s_ns
bl_status = 0x800000, HX_DSP_FLAG 1
bl_status = 0x800000

[15:46:02.605]收←◆jump_addr=0x10000000
Compiler Version: ARM GNU, 13.2.1 20231009
wakeup_event=0x0,WakeupEvt1=0x0, freq=400000000
ori_clk src info, 0x56100030=4077
ori_clk src info, 0x56100034=0
ori_clk src info, 0x56100038=c1a4
clk src info, 0x56100030=4037
clk src info, 0x56100034=0
clk src info, 0x56100038=c1b8
__GNUC
mm_start_addr address: 3401f000
YOLO11n object detection
TA[3401f000]
Ethos-U55 device initialised
[ERROR] yolo11n_ob_model's schema version -1 is not equal to supported version 3
cis_hm0360_init
Set PA1(AON_GPIO1) to High
hx_drv_cis_set_slaveID(0x24)
dw_iic_write err_state:2
dw_iic_write err_code:-60
[hx_drv_i2cm_write_data]-L:701, Fail:-60
retry=0, (regAddr=0x0100, val=0x00) Fail (-60)
dw_iic_write err_state:2
dw_iic_write err_code:-60
[hx_drv_i2cm_write_data]-L:701, Fail:-60
retry=1, (regAddr=0x0100, val=0x00) Fail (-60)
dw_iic_write err_state:2
dw_iic_write err_code:-60
[hx_drv_i2cm_write_data]-L:701, Fail:-60
retry=2, (regAddr=0x0100, val=0x00) Fail (-60)
HM0360 off by app fail

CIS Init fail

@LynnL4
Copy link
Member

LynnL4 commented Jan 6, 2025

hi,
Which branch did you compile and which example demo. Also the HM0360 camera was obtained from there. What are the specs. By default grove vision ai v2 is wearing OV5640.

@namejinnameyuan
Copy link
Author

I use the file https://github.com/HimaxWiseEyePlus/Seeed_Grove_Vision_AI_Module_V2. I use your Grove vision ai v2 and it works fine. I have another board, but it has the HM0360 lens. I changed CIS_SUPPORT_INAPP = cis_sensor
CIS_SUPPORT_INAPP_MODEL = cis_hm0360
#CIS_SUPPORT_INAPP_MODEL = cis_ov5647
#CIS_SUPPORT_INAPP_MODEL = cis_imx219
but the output is I2C error

@Lesords Lesords added UAY Unassigned yet sscma-example-we2 Label for sscma-example-we2 labels Jan 6, 2025
@LynnL4
Copy link
Member

LynnL4 commented Jan 6, 2025

Could you please confirm which board you are using? The HM0360 sensor uses either MIPI or DVP interface. If you are using the MIPI version of HM0360, you can refer to the example in the link below for parameter configuration:

HM0360 MIPI Example

@namejinnameyuan
Copy link
Author

I am using a DVP interface. Are there any other configurations that need to be modified?

@LynnL4
Copy link
Member

LynnL4 commented Jan 6, 2025

@namejinnameyuan
Copy link
Author

There is a problem with compilation, as shown below:

/home/d/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: obj_epii_evb_icv30_bdv10/gnu_epii_evb_WLCSP65/EPII_CM55M_gnu_epii_evb_WLCSP65_s.elf section .text' will not fit in region CM55M_S_APP_ROM'
/home/d/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: obj_epii_evb_icv30_bdv10/gnu_epii_evb_WLCSP65/EPII_CM55M_gnu_epii_evb_WLCSP65_s.elf section .bss' will not fit in region CM55M_S_APP_DATA'
/home/d/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: region RAM overflowed with stack
/home/d/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: region CM55M_S_APP_ROM' overflowed by 186020 bytes /home/d/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: region CM55M_S_APP_DATA' overflowed by 1251276 bytes
Memory region Used Size Region Size %age Used
CM55M_S_APP_ROM: 448164 B 256 KB 170.96%
CM55M_S_APP_DATA: 1513420 B 256 KB 577.32%
CM55M_S_SRAM: 0 GB 1924 KB 0.00%
collect2: error: ld returned 1 exit status
make: *** [options/rules.mk:246: obj_epii_evb_icv30_bdv10/gnu_epii_evb_WLCSP65/EPII_CM55M_gnu_epii_evb_WLCSP65_s.elf] Error 1

@LynnL4
Copy link
Member

LynnL4 commented Jan 7, 2025

You need to specify the app you want to compile.

@namejinnameyuan
Copy link
Author

I used the example you gave me and got the same result

https://github.com/Seeed-Studio/sscma-example-we2/tree/1.0.x/EPII_CM55M_APP_S/app/scenario_app/allon_sensor

slot flash_offset 0x00000000
New MemDesp himax_sec_SB_image_process PASS
set_memory_s_ns
HX_DSP_FLAG 1
jump_addr=0x10000000
Compiler Version: ARM GNU, 13.2.1 20231009
wakeup_event=0x0,WakeupEvt1=0x0
cis_hm0360_init
hx_drv_scu_set_SEN_INT_pinmux(SCU_SEN_INT_PINMUX_FVALID)
hx_drv_scu_set_SEN_GPIO_pinmux(SCU_SEN_GPIO_PINMUX_LVALID)
hx_drv_scu_set_SEN_XSLEEP_pinmux(SCU_SEN_XSLEEP_PINMUX_SEN_XSLEEP_0)
ori_mclk_int_ext=0,ori_mclk_int_src=0
mclk_int_ext=0,mclk_int_src=0
mclk DIV1, xshutdown_pin=82
hx_drv_sensorctrl_set_xSleep(1)
dw_iic_write err_state:2
dw_iic_write err_code:-60
[hx_drv_i2cm_write_data]-L:701, Fail:-60
retry=0, (regAddr=0x0100, val=0x00) Fail (-60)
dw_iic_write err_state:2
dw_iic_write err_code:-60
[hx_drv_i2cm_write_data]-L:701, Fail:-60
retry=1, (regAddr=0x0100, val=0x00) Fail (-60)
dw_iic_write err_state:2
dw_iic_write err_code:-60
[hx_drv_i2cm_write_data]-L:701, Fail:-60
retry=2, (regAddr=0x0100, val=0x00) Fail (-60)
HM0360 off by app fail

CIS Init fail

@LynnL4
Copy link
Member

LynnL4 commented Jan 7, 2025

You can share the schematic of your device. This is most likely caused by hardware differences between your device and the Grove Vision AI v2.

@namejinnameyuan
Copy link
Author

I gave you their board design drawings:
HM0360
HX6538

@LynnL4
Copy link
Member

LynnL4 commented Jan 8, 2025

Sorry, I’m unable to identify the specific issue. I would recommend submitting an issue to Himax for further assistance.
https://github.com/HimaxWiseEyePlus/Seeed_Grove_Vision_AI_Module_V2/issues

Copy link

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sscma-example-we2 Label for sscma-example-we2 Stale UAY Unassigned yet
Projects
Status: Todo
Development

No branches or pull requests

3 participants