Hardfault when using UART2 interrupt

5 posts / 0 new
Last post
svl0822
Offline
Last seen:5 years 9 months ago
加入:2014-11-17 19:20
Hardfault when using UART2 interrupt

Hello Dialog,

I am getting a hardfault error when using the UART2_Handler_func method in uart2.c. The interrupt handler enters uart2_rec_data_avail_isr() (when some data comes in) and then hardfaults somewhere in the uart2_rxdata_getf() method. How can I avoid this and get some data out of my UART2?

Thanks,
svl0822

bensalemsaif
Offline
Last seen:3 years 7 months ago
加入:2016-02-02 12:42
Hello,

Hello,

I got this hardfault too, is there any solution for that ? do anybody knows the cause ?

Thanks,

MT_dialog
Offline
Last seen:1 month 5 days ago
工作人员
加入:2015-06-08 11:34
Hi bensalemsaif,

Hi bensalemsaif,

Please use the UART2_Handler() in order to get the interrupts from UART2. As far as i can see in the SDK there is no implementation for UART_Handler_func() and i haven't seen a hard fault occuring when using theUART2_Handler.

Thanks MT_dialog

3alogics
Offline
Last seen:5 months 3 days ago
加入:2016-09-26 13:27
Hello! Dialog.

Hello! Dialog.

请详细描述我意味着什么n.
I'm sorry, please attach the modified source.

Thanks,

MT_dialog
Offline
Last seen:1 month 5 days ago
工作人员
加入:2015-06-08 11:34
Hi 3alogics,

Hi 3alogics,

What is the issue that your have, please try to be descriptive about what you are experiencing ? There is no modification needed in order to use the interrupts from the UART, just check the uart2_async in the peripherals example in the SDK.

Thanks MT_dialog