Modify cfg file

@Edward It works
more /sys/module/usbcore/parameters/usbfs_memory_mb
32

@Marian

Can you use the program normally now?

@Edward Non, I have the same answer from the program :frowning:

more /sys/module/usbcore/parameters/usbfs_memory_mb
32

[INFO] claim interface ret: 0
[INFO] Frame buffer size: 12000000
[INFO] Frame buffer size: 12000000
[INFO] Frame buffer size: 12000000
[INFO] Frame buffer size: 12000000
[INFO] Frame buffer size: 12000000
[ERROR] 0 alloc memory failed.
width: 4000, height: 3000

@Marian

image
Sorry, I calculated, this camera needs at least 58MB, you can directly set it to 100, please try again.

@Edward set it to 100, but still the same answer from the program

@Marian

I updated the sdk for arm64

You need to modify arducam_usb_sdk_test.cpp
image

Thanks! I’ll test it and give feedback.

BTW, could you please send me a version of this SDK to work also with RPI 4B?

@Marian

Raspberry Pi is also arm architecture
You can use it on 64 bit raspberry pi.

@Edward I try to compile and I get the error below

/usr/lib//libarducam_usb_sdk.so: undefined reference to `pthread_cond_clockwait@GLIBC_2.30’

@Marian

Is it not working on the Raspberry Pi, or other devices.

Because I’m off work now, and tomorrow is the weekend. I’ll try again next week and update you on the progress.

happy weekend

Hi @Marian,

Please try the file below:
arducam_usb_sdk_test_arm64.tar.xz (29.4 KB)

Hi @Edward

I test it the new sdk, but it doesn’t work, it can’t open the camera, as you ca see below:

[ERROR] open device failed.
width: 12000, height: 9000
Failed to open camera.

When I look for the camera I see it is connected:
lsusb >
Bus 002 Device 003: ID 04b4:03f2 Cypress Semiconductor Corp. FX3
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 001 Device 004: ID 1c4f:0034 SiGma Micro XM102K Optical Wheel Mouse
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

@Marian

Looks like a permission issue, have you tried using sudo in front of the command?

@Edward yes, it works fine with sudo option. Thanks!

@Edward Btw, I guess to used this SDK on clasic Linux platform, I need to pass DMA as option to open camera function, right?

@Marian

You can try both, mainly to see which format your hardware supports.

Can you tell me your arm64 hardware platform?
I also want to study why dma cannot be supported.

I use Qualcomm Snapdragon 821 4 cores with 4GB LPDDR4 PoP 1866MHz

@Marian

thanks,this is indeed not the hardware I often use, I will pay more attention to this later.