Zigbee Traces No Output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-16 05:15 AM
Hello,
I am trying to get zigbee traces running on STM32WB5MMG running on Sparkfuns development boards.
For my current project I am using this hardware:
- SprakFun MicroMod Main Board - Single - https://www.sparkfun.com/products/20748
- SparkFun MicroMod STM32WB5MMG Processor - https://www.sparkfun.com/products/21438
Standalone UART Connection works fine, only the traces dont work in combination with the Zigbee Stack enabled. To illustrate the problem I created two fresh projects:
STM32WB5MMG_UART_TEST:
- This one is a project for testing the UART on the custom hardware (serial connector located next to the "function zero" connector), I enabled interrupts and dma for rx/tx which works perfectly fine putting out a simple counter.
STM32WB5MMG_ZIGBEE_WITH_TRACES_TEST:
- This one is a fresh project for testing the Zigbee Stack together with traces (based on the same configuration as STM32WB5MMG_UART_TEST). I expect the Zigbee Traces to be received on the serial interface just like the counter in the other project. For this i set up the Zigbee Stack as recommended in the MX UI. Note that I enabled CFG_HW_USART1_DMA_TX_SUPPORT and ensured that in ProjectManager Advanced Settings panel MX_USART_init Not Generate Function call is ticked and Visibility is unticked as hinted in the configuration under CFG_HW_USART1_ENABLED. I do not receive any output.
What I have done: playing around with the settings (a lot!), which was not helpful so far.
For now I am not sure what might be the issue, maybe I am missing a little setting or some configuration, which is hidden somewhere. I appreciate any help!
Kind regards
Solved! Go to Solution.
- Labels:
-
Bug-report
-
STM32CubeMX
-
STM32WB series
-
Zigbee
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-17 03:10 AM
Hello Ouadi,
sorry for the late reply.
I was able to solve to problem.
Apparently the traces do not work on some projects not created from examples, as a function call Init_Debug() needs to be set in function void MX_APPE_Init(void) in file app_entry.c. This solved the problem for me.
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-17 02:30 AM
Hello,
It seems that the IPCC interrupts are note activated on your IOC file making the communication impossible between M0/M4, the stack will then return an error and the traces will not be displayed.
Please activate the IPCC Tx and Rx interrupts as follow
Best regards,
Ouadi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-17 03:10 AM
Hello Ouadi,
sorry for the late reply.
I was able to solve to problem.
Apparently the traces do not work on some projects not created from examples, as a function call Init_Debug() needs to be set in function void MX_APPE_Init(void) in file app_entry.c. This solved the problem for me.
Best regards
![](/skins/images/7538BDC9E95ED3EEB274102A302A21E6/responsive_peak/images/icon_anonymous_message.png)