BTstack Port for STM32 F4 Discovery Board with CC256x

65 views
Skip to first unread message

Hanna Nabil

unread,
Feb 19, 2021, 7:09:32 PM2/19/21
to btstack-dev
Greetings, 
Sir, On this tutorial, you put STM32 evaluation then an adapter board then the CC256 module, My question is If I connect my STM32 Discovery board to my custom design CC2564 board, Shall they work fine, or I am missing something ?

Matthias Ringwald

unread,
Feb 20, 2021, 11:42:19 AM2/20/21
to btsta...@googlegroups.com
Hi Hanna

Asides from the voltage converter, the only other relevant part is the 32.768 kHz oscillator on the adapter board. The CC2564 needs a 32 kHz clock. You may either use an oscillator, or, find a way to emit a 32 kHz clock on one of the GPIOs and connect it to the Slow Clock pin of the CC2564 (saving you the oscillator).

Best
Matthias

> On 20 Feb 2021, at 01:09, Hanna Nabil <hanana...@gmail.com> wrote:
>
> Greetings,
> Sir, On this tutorial, you put STM32 evaluation then an adapter board then the CC256 module, My question is If I connect my STM32 Discovery board to my custom design CC2564 board, Shall they work fine, or I am missing something ?
>
> --
> You received this message because you are subscribed to the Google Groups "btstack-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to btstack-dev...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/btstack-dev/eb24e0c6-b289-4553-9067-336b75004aebn%40googlegroups.com.

Hanna Nabil

unread,
Feb 21, 2021, 3:14:56 AM2/21/21
to btstack-dev
I already did that Thanks, 
I have an issue now when I run make command, It got stuck in the extracting, although I tried to extract the folder manual still.
it gives,,
"Extracting cc256xb_bt_sp_v1.8/initscripts-TIInit_6.7.16_bt_spec_4.1.bts"
A subdirectory or file -p already exists.
Error occurred while processing: -p.
make: *** [cc256xb_bt_sp_v1.8/initscripts-TIInit_6.7.16_bt_spec_4.1.bts] Error 1

Capture.PNG

Matthias Ringwald

unread,
Feb 22, 2021, 2:24:19 PM2/22/21
to btsta...@googlegroups.com
Hi Hanna

You're using the Windows Comand Shell, which does not support the -p option of mkdir (PowerShell doesn't either).

The easiest way would be to run make in a mingw environment (see port/windows-winusb/README.md for info on how to set it up), or in a Linux VM.

If there's an easy way to make sure a directory exists, I'd be happy to improve the Makefile. We've already converted some shell scripts to Python to make it workable for Windows, too.

cheers
matthias

> On 21 Feb 2021, at 09:14, Hanna Nabil <hanana...@gmail.com> wrote:
>
> I already did that Thanks,
> I have an issue now when I run make command, It got stuck in the extracting, although I tried to extract the folder manual still.
> it gives,,
> "Extracting cc256xb_bt_sp_v1.8/initscripts-TIInit_6.7.16_bt_spec_4.1.bts"
> A subdirectory or file -p already exists.
> Error occurred while processing: -p.
> make: *** [cc256xb_bt_sp_v1.8/initscripts-TIInit_6.7.16_bt_spec_4.1.bts] Error 1
>
> <Capture.PNG>
> On Saturday, February 20, 2021 at 6:42:19 PM UTC+2 Matthias Ringwald wrote:
> Hi Hanna
>
> Asides from the voltage converter, the only other relevant part is the 32.768 kHz oscillator on the adapter board. The CC2564 needs a 32 kHz clock. You may either use an oscillator, or, find a way to emit a 32 kHz clock on one of the GPIOs and connect it to the Slow Clock pin of the CC2564 (saving you the oscillator).
>
> Best
> Matthias
>
> > On 20 Feb 2021, at 01:09, Hanna Nabil <hanana...@gmail.com> wrote:
> >
> > Greetings,
> > Sir, On this tutorial, you put STM32 evaluation then an adapter board then the CC256 module, My question is If I connect my STM32 Discovery board to my custom design CC2564 board, Shall they work fine, or I am missing something ?
> >
> > --
> > You received this message because you are subscribed to the Google Groups "btstack-dev" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to btstack-dev...@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/btstack-dev/eb24e0c6-b289-4553-9067-336b75004aebn%40googlegroups.com.
>
>
> --
> You received this message because you are subscribed to the Google Groups "btstack-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to btstack-dev...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/btstack-dev/516a5ee8-ff38-4643-9042-73b470163560n%40googlegroups.com.
> <Capture.PNG>

Hanna Nabil

unread,
Feb 23, 2021, 5:33:02 AM2/23/21
to btstack-dev
So I installed Msys2 package and tried to run make, it gives same error as in the image below 
Capture.PNG
So I worked on git-bash it runs successfully but also stuck at "" makefile: file not recognized : File format not recognized ,
as in the image below
Screenshot 2021-02-23 123133.png

Matthias Ringwald

unread,
Feb 23, 2021, 9:27:50 AM2/23/21
to btsta...@googlegroups.com
Hi Hanna

Looks like you don't have 'unzip' installed. please isntall unzip e.g. with pacman and try again in the msys2 shell.

best
matthias


> On 23 Feb 2021, at 11:33, Hanna Nabil <hanana...@gmail.com> wrote:
>
> So I installed Msys2 package and tried to run make, it gives same error as in the image below
> <Capture.PNG>
> So I worked on git-bash it runs successfully but also stuck at "" makefile: file not recognized : File format not recognized ,
> as in the image below
> To view this discussion on the web visit https://groups.google.com/d/msgid/btstack-dev/dd8b6b08-2068-4092-b7a5-b07446f26e00n%40googlegroups.com.
> <Capture.PNG><Screenshot 2021-02-23 123133.png>

Reply all
Reply to author
Forward
0 new messages