AnsweredAssumed Answered

Defining tasks using Processor Expert

Question asked by David Pfaltzgraff on Feb 3, 2015
Latest reply on Feb 6, 2015 by soledad

I have an MQX_lite project that was defined using Processor Expert (PE). I have one task - blink an LED.

 

With the code that's generated, the task never runs. How can I define the set of auto-start tasks using PE? This would be preferred.

 

If I need to do it manually, where would it go in this snippet of main()?

 

====

  /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/

PE_low_level_init();

  /*** End of Processor Expert internal initialization.                    ***/

 

  /* Write your code here */

  /* For example: for(;;) { } */

 

  /*** Don't write any code pass this line, or it will be deleted during code generation. ***/

  /*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/

  #ifdef PEX_RTOS_START

    PEX_RTOS_START();                  /* Startup of the selected RTOS. Macro is defined by the RTOS component. */

  #endif

  /*** End of RTOS startup code.  ***/

  /*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/

  for(;;){}

====

As it is now, the execution goes into PEX_RTOS_START() and never returns.

 

Thanks.

Outcomes