2021-03-29 01:28 AM
Hi everyone,
Currently I am using Mac_802_15_4_FFD (Coordinator) application on STM32WB Nucleo board (FUS v1.1.2 & stm32wb5x_Mac_802_15_4_fw.bin flashed). Everything works perfectly. Nodes were connected and sends messages to coordinator succesfully.
But I want to use this example on STM32WB USB Dongle. I flashed FUS v1.1.2 & stm32wb5x_Mac_802_15_4_fw.bin FWs on USB dongle and I downloaded Mac_802_15_4_FFD example on USB dongle. Seems everything working until FFD MAC APP - Association Requested step but there is no RECEIVE DATA : HELLO COORDINATOR & RECEIVE DATA : DATA FROM NODE messages on USB dongle. Seems like there is a connection problem on USB Dongle.
I am suspect about it may cause from MCUs. Because there is STM32WB55RGV6 on Nucleo and there ise STM32WB55CGU6 on USB Dongle. Is flash addresses should be different for stacks?
What should I do to run Mac_802_15_4_FFD application on STM32 USB dongle?
2021-05-27 10:39 PM
Hi again, problem solved. For further information I changed;
Properties->C/C++ Build->Settings->Tool Settings->MCU GCC Compliler->Preprocessor change 'USE_STM32WBXX_NUCLEO' to 'USE_STM32WBXX_USB_DONGLE'
Properties->C/C++ Build->Settings->Tool Settings->MCU GCC Compliler->Include paths change '../../../../../../../Drivers/BSP/P-NUCLEO-WB55.Nucleo' to '../../../../../../../Drivers/BSP/P-NUCLEO-WB55.USBDongle'
Refresh the project, check Drivers folder in project updated or update manually by adding stm32wbxx_ usb_dongle.c and removing stm32wbxx_ nucleo.c after all build the project.
Note that if you add any pin configuration you have to check it have to be comptiable for both MCUs.