TCP/IP ==> MQX_UNHANDLED_INTERRUPT (0x0041)

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

TCP/IP ==> MQX_UNHANDLED_INTERRUPT (0x0041)

跳至解决方案
1,438 次查看
master_szumi
Contributor III

Problem is very stange.

 

I've got MQX project with RTCS and it works fine (RTCS init and bind normally).

 

Then I add some code (in function compeletly not connected with RTCS, function executed after RTCS init and bind or even never executed!) and RTCS crashes on:

 

RTCS_create()

 

it waits indefinitely in this function. So I stop debugger and look into MQX toolkit:

 

On taks list:

TCP/IP MQX_UNHANDLED_INTERRUPT (0x0041)

 

Stack usage:

TCP/IP 5%

 

What does it mean?

 

 


 

 

 

 

 

1 解答
543 次查看
boogy
Contributor III

I get this MQX error so often I now consider myself an expert.

I would turn on my "generate Listing file" on the Linker compiler settings then do something like this:

Set up a com channel for debug.

    _io_set_handle(IO_STDIN, ch1_fh);
     _io_set_handle(IO_STDOUT, ch1_fh);
     _int_install_unexpected_isr(); 

The port will spit out the details in particular the program counter where the error occurs.

Find it in you list file and all will be revealed.

 

在原帖中查看解决方案

0 项奖励
2 回复数
544 次查看
boogy
Contributor III

I get this MQX error so often I now consider myself an expert.

I would turn on my "generate Listing file" on the Linker compiler settings then do something like this:

Set up a com channel for debug.

    _io_set_handle(IO_STDIN, ch1_fh);
     _io_set_handle(IO_STDOUT, ch1_fh);
     _int_install_unexpected_isr(); 

The port will spit out the details in particular the program counter where the error occurs.

Find it in you list file and all will be revealed.

 

0 项奖励
543 次查看
barrymcnamara
Contributor II

Can you explain how to do this?

I found a setting "Generate assembler listing" under Cross ARM C Compiler / Miscellaneous -- is this the right one?

When I add the _io_set_handle calls I get errors. Where is this function defined, where is IO_STDIN and IO_STDOUT defined, and what did you set ch1_fh to? Also, would you add these lines at the start of your main task or somewhere else?

0 项奖励