This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2564: STM32CubeMx + Bluetopia

Part Number: CC2564

Hi,

is there any way to make Bluetopia 4.0.2.2 run with STM32CubeMx? How can i do using HAL Drivers instead of STD_PERIPHERALS DRIVERS?

I have searched older posts  but i did't find any recent good news

Thanks in Advance

Paolo

 

  • Hi Paolo,

    The TI dual-mode Bluetooth Stack on STM32F4 MCUs (v4.0.2.2 and v4.2.1.0) SDK uses the standard peripheral driver libraries. The Bluetooth stack in the SDK has dependencies on the HCITRANS (HCITRANS.c) and BTPSKRNL (BTPSKRNL.c). The APIs in the HCITRANS.c and BTPSKRNL.c call the Standard peripheral libraries (STM32_StdPeriph_lib). Similarly, the sample applications has dependencies on HAL and HAL.c calls the Standard peripheral libraries STM32_StdPeriph_lib.

    All these 3 files in the SDK are shared in source forms. As long as you do the respective porting/migration from one driver package to another, it is possible to use the STM32CubeMx.

    For more details, please refer to the Porting documentation included in the SDK for more details. Also, please refer to the following FAQ for details on resources for porting.
    processors.wiki.ti.com/.../CC256x_Forum_Guidelines_and_FAQs


    Best regards,
    Vihang
  • BluetopiaCubeMX.zip

    Some edited files for porting. Note: UART ports are hardcoded, but easy to change.

    BTPS has own SysTick_Handler() implementation, if you want use own in stm32f4xx_it.c rename it:

    void SysTick_Handler(void)
    {
      /* USER CODE BEGIN SysTick_IRQn 0 */
      BTPS_SysTick_Handler();
      /* USER CODE END SysTick_IRQn 0 */
      HAL_IncTick();
      HAL_SYSTICK_IRQHandler();
      /* USER CODE BEGIN SysTick_IRQn 1 */
    
      /* USER CODE END SysTick_IRQn 1 */
    }

  • Thanks a lot!

    I'll try soon!

    My Best Regards

    Paolo