Porting project to MQX

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

Porting project to MQX

2,109 Views
abelebarbieri
Contributor I

I have a Codewarrior 10.3 project developed also using Processor Expert.

There is a possibility to make it run under MQX without the need to remake the project? it's possible to trasform this project in one or more MQX tasks?

Please, help me!

Thanks. Abele

0 Kudos
7 Replies

1,798 Views
petr_uhlir
NXP Employee
NXP Employee

Hi Abele,

if you have developed your project on Kinetis derivative which is supported by MQX than it is possible. You can export settings of PEx components in your baremetal application using

  1. File -> Export -> Processor Expert -> Export Component Settings, select components you would like to be integrated in MQX BSP and save to some MyComponents.pef file
  2. Open BSP project which you want to import your component settings to and File -> Import -> Processor Expert -> Component Settings to Project
  3. Generate code and resolve possible component conflicts.
  4. Rebuild libraries.
  5. Create application using your PEx components.
    Check MQX examples to see howto create task (hello,...) and task entry into task template list
  6. Add your task which handles the PEx components.
  7. Copy code from your baremetal application into new task
  8. Copy events from your baremetal Events.c into some application C file
  9. Build application and resolve build issues.
  10. Debug runtime issues.

This is just simple workflow as I do not know any details about your application. Transfering baremetal code into RTOS is little bit tricky. The description above do not take care about application optimization and splitting baremetal superloop into tasks and using RTOS synchronization objects for better performance as this is application specific.

Regards Petr

0 Kudos

1,798 Views
abelebarbieri
Contributor I

Hi Petr

I have performed the first four steps as your list, but when I rebuild bsp project i find many errors (see image here attached)

Have you any further suggestion about?

Many thanks in advance.

Regards

Abele

From: petr.uhlir

Sent: Tuesday, April 23, 2013 10:35 AM

To: abele barbieri

Subject: Re: MQX Software Solutions - Porting project to MQX

Porting project to MQX

created by petr.uhlir in MQX Software Solutions - View the full discussion

0 Kudos

1,798 Views
petr_uhlir
NXP Employee
NXP Employee

Can you please attach your ProcessorExpert.pe file?

0 Kudos

1,798 Views
abelebarbieri
Contributor I

Hi Petr

here attached ProcessorExpert file

regards

0 Kudos

1,798 Views
petr_uhlir
NXP Employee
NXP Employee

Its just some PEF file inside zip not complete ProcessorExpert.pe project

0 Kudos

1,798 Views
abelebarbieri
Contributor I

Hi Petr

I made a few tests with Processor Expert included in BSP. I think I found an issue related to Logical Device Driver BitIO_LDD and BitsIO_LDD. If I added one of these component, PE generates the files .s and .h for the build, but when you build the BSP library it does not create the object referred, and then produces error.

I think that there is a trouble in CW10.3 using MQX and Processor Expert. I attach Codewarrior screenshot to best understand.

Reagrds

Abele

From: petr.uhlir

Sent: Friday, April 26, 2013 1:50 PM

To: abele barbieri

Subject: Re: MQX Software Solutions - Porting project to MQX

Porting project to MQX

created by petr.uhlir in MQX Software Solutions - View the full discussion

0 Kudos

1,798 Views
abelebarbieri
Contributor I

Sorry, I was wrong file ...

here right file

From: petr.uhlir

Sent: Friday, April 26, 2013 1:50 PM

To: abele barbieri

Subject: Re: MQX Software Solutions - Porting project to MQX

Porting project to MQX

created by petr.uhlir in MQX Software Solutions - View the full discussion

0 Kudos