Hi, I'm trying to port BTstack bluetooth stack for Pi ZERO 2W. ( https://github.com/bluekitchen/btstack/ ... port/raspi )
You know, the official release already contains ports for Pi 3 and Pi ZERO W, but not Pi ZERO 2W. So I followed the setup guide and successfully built the binary, and ran the test sample, (gatt_counter, for example.)
The test sample seems to work fine at the first time. But when I terminate the program and run again, it does not work. I always have to reboot the board to run again.
I traced the code using GDB and other tools, and found that the bluetooth chipset UART /dev/serial1 does not respond at second run time. I found the code contains chipset reset function using GPIO45 pin as described but I found that Pi ZERO 2W chipset is BCM4345C0 not 43438 like Pi ZERO W.
I suspect that 4345C0 has another GPIO connection for BT_REG_EN but cannot go further 'cause I cannot find the full schematic file.
So if anyone has some answer or succeeded in porting Pi ZERO 2W, please share with me the information for this problem.
Regards,
Samdol
You know, the official release already contains ports for Pi 3 and Pi ZERO W, but not Pi ZERO 2W. So I followed the setup guide and successfully built the binary, and ran the test sample, (gatt_counter, for example.)
The test sample seems to work fine at the first time. But when I terminate the program and run again, it does not work. I always have to reboot the board to run again.
I traced the code using GDB and other tools, and found that the bluetooth chipset UART /dev/serial1 does not respond at second run time. I found the code contains chipset reset function using GPIO45 pin as described but I found that Pi ZERO 2W chipset is BCM4345C0 not 43438 like Pi ZERO W.
I suspect that 4345C0 has another GPIO connection for BT_REG_EN but cannot go further 'cause I cannot find the full schematic file.
So if anyone has some answer or succeeded in porting Pi ZERO 2W, please share with me the information for this problem.
Regards,
Samdol
Statistics: Posted by Samdol — Sat Nov 23, 2024 1:28 am — Replies 3 — Views 59