K53 BSP stuck in line ASM_LABEL(no_one_to_run) dispatch.S file

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

K53 BSP stuck in line ASM_LABEL(no_one_to_run) dispatch.S file

1,971 Views
joséflores
Contributor II

Good morning,

I made a custon PCB with the MK53DN512CMD10 microcontroller. I´m trying to run a simple code and it got stuck in the next line at the dispatch.S file:

ASM_LABEL(no_one_to_run)

                /* woohoo, idle task must be enabled, this point cannot be reachable, you have serious problem */

               b .

I´m using an 8 MHz external crystal on PTA18 and PTA19, I already configured the ProcessorExpert.pe (System oscillator -  Clock source = External and Clock frequency = 8MHz) and I generate de code on Generate Processor Expert Code option. If it helps, appears the next warning:

DescriptionResourcePathLocationType
Warning: The PLL/FLL clock value is 0 - the clock is disabled. (Clock frequency [MHz])bsp_twrk53n512Cpu/Clock frequency [MHz]Processor Expert Problem

And I can´t chance the option to able.

What should I do?

Best regards.

Tags (2)
0 Kudos
Reply
5 Replies

1,389 Views
soledad
NXP Employee
NXP Employee

Hello,

This issue is caused if the custom board has a different clock configuration. The TWR-K53N512 features a 50 MHz on-board clock oscillator as seen in sheet 3 of the schematics.

If you have a different configuration, you need to change the BSP. Attached, you can find a document that explains how to change the default clock configurations.

  1. Please check the bsp_cm.c file located at the path: C:\Freescale\Freescale_MQX_4_2\mqx\source\bsp\<your_board>
  2. Localize the void _bsp_initialize_hardware(void) function
  3. Modify this function according your needs.


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,389 Views
joséflores
Contributor II

Hi Sol,

Thanks for your answer, but I still have the problem, I already did the procedure that you sent to me, but I don´t understand totally how modify the void _bsp_initialize_hardware(void) function or if it is the same as the page 12 of the documentMQX_Howto_Setup_Kinetis_Clock_UsingPE.pdf, but I have the same doubt.

Best regards.

0 Kudos
Reply

1,389 Views
soledad
NXP Employee
NXP Employee

Hi,

Please check the attached document, it shows an example (page 19).

Let me know if this helps.

Have a nice day

Soledad

0 Kudos
Reply

1,389 Views
joséflores
Contributor II

Good afternoon Sol:

Thanks again for your answer. I already realized step by step the procedure of the document that you sent to me, but I still have the same error, even I perform step 6.2 and it stills happening. I´m attaching you files, one that says "Before", which contains some segments before to being modified. The other document, "After" contains the modified segments according to the generated code by the Processor Expert. Both files are commented to identify changes and which files were modified.

Best regards.

0 Kudos
Reply

1,389 Views
soledad
NXP Employee
NXP Employee

Hello José ,

Please check the following thread and please let me know if this helps.

MQX K53 custom board configuration

Regards

Sol

0 Kudos
Reply