FreeRTOS project using fsl_shell and freertos_uart_frdmk64f example

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

FreeRTOS project using fsl_shell and freertos_uart_frdmk64f example

1,996 Views
aes_mike
Contributor III

We have a test project using KDS 3.2.0 and KSDK 2.0.0 for the K64F.  See attached zip file.

 

We created a new project that includes FreeRTOS and we are attempting to use fsl_shell.  We are using the demo project freertos_uart_frdmk64f as a guide in terms of communications with UART. 

 

Anyway, when we run this code we get a hard fault.

 

If we remove "NVIC_SetPriority( UART0_RX_TX_IRQn, 5 );" in the beginning of main, then we get      configASSERT( ucCurrentPriority >= ucMaxSysCallPriority );  in the function vPortValidateInterruptPriority().

 

 Any suggestions on what we are doing wrong?

 

I am new to FreeRTOS and so still learning.  We have done lots of bare metal projects using KDS 1.3.0 with good success.  For our target board we are running a bare-metal project and that works just fine.

Original Attachment has been moved to: Test_RTOS_fsl_shell.zip

Labels (1)
0 Kudos
1 Reply

754 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Aes,

Pls refer to the example:

C:\DriverE\Freescale\SDK2.0_FRDM_K64F\boards\frdmk64f\rtos_examples\freertos_dspi\kds

As the configMAX_SYSCALL_INTERRUPT_PRIORITY is set up as 5, you should set the peripheral interrupt greater than 5.

How about using the code:

    NVIC_SetPriority(UART0_RX_TX_IRQn, 6);

Hope it can help you

BR

XiangJun Rong

0 Kudos