RTCS examples crashing in MQX 4.0.1

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

RTCS examples crashing in MQX 4.0.1

Jump to solution
834 Views
njk909
Contributor II

I was using MQX 3.7 with Codewarrior 10.2 on my M52259EVB. I want to upgrade to MQX 4.0.1.

I downloaded and installed 4.0.1, and am still using CW10.2, then built the libraries in debug and release mode using default user_config.h and intflash.lcf files.  No issues linking or compiling.  Then I built the httpsrv example in the RTCS folder without any problem.

When I try to run, it crashes when RTCS_create() is called.  I traced the source of the crash in debug mode to:

RTCS_create -> RTCS_task_create -> _task_create() -> task_create_internal()->CHECK_RUN_SCHEDULER()

*** UNHANDLED INTERRUPT ***

Vector #: 0  0x0

Offset  : 0  0x0

Task Id: 0x10002 Td_ptr 0x20001f38 Stack Frame: 0x2000312c

Interrupt_nesting level: 1   PC: 0x00000000   SR: 0xf442

I tried uninstalling and reinstalling 4.0.1, and also tried a second M52259EVB board.

Can anyone confirm that RTCS examples will work in 4.0.1 on the M52259EVB with stock user_config.h?  I compared the user_config.h, small_ram_config.h, and intflash.lcf files between 3.7 and 4.0.1 and they seem to be identical.  The MFS examples and all RTCS examples seem to crash when I try to run them.  All the examples in 3.7 run without issue.

I've tried programming using PROGCFZ and also using CodeWarrior 10.2 programmer.  I'm using the Coldfire USB multilink.

Any ideas?  Anyone else have this issue?

0 Kudos
1 Solution
446 Views
butok
NXP Employee
NXP Employee

Please try CW 10.4, instead of 10.2.

View solution in original post

0 Kudos
3 Replies
447 Views
butok
NXP Employee
NXP Employee

Please try CW 10.4, instead of 10.2.

0 Kudos
446 Views
njk909
Contributor II


I downloaded and installed CW10.4 Special Edition.  I built the libraries with that, and then tried to build the httpsrv example, but it failed due to code size restriction.  So I opened up CW 10.2 and built the httpsrv example using the libraries built in CW 10.4, and it works fine.

So there is an issue with building the MQX 4.0.1 libraries in CW 10.2 for the M52259EVB, even though they compile/link without any warnings/errors.  Any idea what it might be?

0 Kudos
446 Views
njk909
Contributor II

Ok, I will try that.  This could be problematic, however, because our license is for 10.2, and I emailed support and they said our 10.2 license won't work on 10.4.

I can try the evaluation edition for now though just to see if that resolves the problem.

0 Kudos