LPBAM_LPUART_TransmitReceive hardfault
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-01-15 09:17 AM - edited 2025-01-15 09:17 AM
I'm trying the LPBAM_LPUART_TransmitReceive with a NUCLEO-U575ZI-Q but I can't make it works.
I enabled the debug by removing the init of PA13 and PA14. The MCU got stuck into an hardfault when calling ADV_LPBAM_UART_Transmit_SetFullQ() for the second time:
Any idea what is wrong, thanks in advance ?
- Labels:
-
LPUART
-
STM32U5 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-01-16 04:56 AM
Hello @nicolas ,
Make sure to follow the set-up and instructions in the readme file of the "LPBAM_LPUART_TransmitReceive" example.
Did you properly initialize and configure the LPUART and DMA before calling ADV_LPBAM_UART_Transmit_SetFullQ() function?
Check the DMA configuration and make sure that the DMA channels are properly set up for the LPUART transmit and receive operations.
Did you look at the STM32U575 errata sheet and check if you have the known limitation related to the LPUART that could be causing this issue.
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-01-16 06:26 AM
Thanks for the answer.
I follow the instruction and the transmitter board blue led never turn on.
The code should normally be correct because I didn't modify it.
Is this example works will all version of the NUCLEO-U575ZI-Q board ?
Is there a special solder bridge configuration to use ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-01-16 07:45 AM
Are you using the example from the latest release of STM32CubeU5 v1.7.0 ?
If you are using the example from ioc file, make sure also to use the latest release of CubeMX (v6.13.0) as contains fixes for LPBAM.
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-01-16 08:27 AM
I'm creating the project with example selector from STM32CubeIDE and i have verified that the code match the folder STM32Cube_FW_U5_V1.7.0\Projects\NUCLEO-U575ZI-Q\Applications\LPBAM\LPBAM_LPUART_TransmitReceive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-01-17 12:11 AM
Would it be possible to provide me with .bin or .hex file of this example in transmitter mode so I can check if my problem come from hardware or software ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-01-20 01:38 AM
Hi @nicolas,
I've tested the example on NUCLEO-U575ZI-Q (MB1549) and it works as expected.
@nicolas wrote:
I enabled the debug by removing the init of PA13 and PA14.
=> This application (only transmitter board) can not be used in DEBUG mode due to the fact that the debug pins are configured in analog mode for power consumption and Cortex-M33 core is no longer clocked during low power mode so debugging features are disabled.
Please check this point as described in the readme file.
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-01-20 01:56 AM
I know that but with the unmodified code, the blue led never turn on.
And with debugger, the code crash before going into low power.
Would it be possible to have a binary file so i can know if i have a problem with my hardware or with my compilation ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-01-20 02:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-01-20 03:09 AM
Thank you. I see the blue led now, there must be something wrong in my project.