2023-06-09 10:45 PM
Hi @RomainR. sir,
As i already posted a query regarding UART DMA using STM32G030K6T6 controller, you have corrected my code it worked well. when i generated a new project and i followed the step to have provided me but it doesn't work it get stuck in error handler. Can you please explain me the process you have done. I Add new project configuration pictures. If i made a mistake please correct me sir.
Solved! Go to Solution.
2023-06-12 08:02 AM
Hello @mrsmile (Community Member)
Use DMA in Normal mode.
Regards,
Romain,
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-06-12 10:05 PM
ok sir, Thank you so much your valuable time spend with me. Thank you sir......!
2023-06-12 10:06 PM
Problem solved.
2023-06-12 12:25 AM
Hello @mrsmile (Community Member)
I just generated a STM32CubeMx project for STM32G030K6T6 device.
I cannot find a diagnosis for the Hardfault with the little information you provide.
Can you design and run a simple project with CubeMX without DMA and without UART which is functional (a simple GPIO toggle)?
If so, you need to debug your program to find which line of your code generates a Hardfault.
On a Cortex M0+ the fault status registers are not available so it is a bit more difficult and involves inspecting only the stacked registers with the debugger (r0-r3, r13, LR and PC values)
BR
romain,
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-06-12 05:34 AM
ok sir, sir your checking DMA circular mode or Normal mode.
2023-06-12 05:37 AM
i just generate DMA Normal mode with same code. output is comes properly for 500 msec once.but circular mode with same code does not worked well sir(its Stuck Error Handler).
2023-06-12 08:02 AM
Hello @mrsmile (Community Member)
Use DMA in Normal mode.
Regards,
Romain,
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-06-12 10:05 PM
ok sir, Thank you so much your valuable time spend with me. Thank you sir......!
2023-06-12 10:06 PM
Problem solved.