TCP/IP ==> MQX_UNHANDLED_INTERRUPT (0x0041)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

TCP/IP ==> MQX_UNHANDLED_INTERRUPT (0x0041)

ソリューションへジャンプ
2,229件の閲覧回数
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 解決策
1,334件の閲覧回数
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 返答(返信)
1,335件の閲覧回数
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 件の賞賛
返信
1,334件の閲覧回数
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 件の賞賛
返信