TCP/IP ==> MQX_UNHANDLED_INTERRUPT (0x0041)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TCP/IP ==> MQX_UNHANDLED_INTERRUPT (0x0041)

Jump to solution
1,413 Views
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 Solution
518 Views
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.

 

View solution in original post

0 Kudos
2 Replies
519 Views
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 Kudos
518 Views
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 Kudos