uART Interrupt Issue for T1042

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

uART Interrupt Issue for T1042

跳至解决方案
1,901 次查看
love_hate_and_repeat
Contributor III

I mentioned this problem in another question without giving my uART driver example and  I want to share my uART Interrupt Driver Application with you  maybe you can help to solve this problem. I spent a lot of time to solve this problem but I didnt solve in any manner. I run this application as standalone on T1042 board. I place uART driver to ram by u-boot tftp command and after that i run bootelf command of u-boot to execute uART Driver application. by the way, The content of IVPR register is 0x7ff10000

when I send serial data to the board  Interrupt handler doesnt run or CPU doesnt call interrupt handler function. It jumps another exception handler like below picture. uART Driver  is attached. you can look at it and say what i make mistakes in code side.

after i run application, I send serial data to the application over uART but i get this message like below.

error.jpg

thanks in advance.

0 项奖励
回复
1 解答
1,720 次查看
love_hate_and_repeat
Contributor III

I resolved my problem.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,721 次查看
love_hate_and_repeat
Contributor III

I resolved my problem.

0 项奖励
回复
1,720 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the attached T1042 UART driver provided in CodeWarrior.

0 项奖励
回复
1,720 次查看
love_hate_and_repeat
Contributor III

I reviewed driver and it's using polling method to receive character. I'm new for driver concept and i wonder why my code is not working. which part of code is inadequate because when new character is received interrupt doesnt happen I mean another interrupt handler is called by processor like external interrupt exception , floatin point unavailable exception.

If you know the reason my interrupt handler is not being called  please can you explain it with a lot of details.

0 项奖励
回复