FreeRTOS project using fsl_shell and freertos_uart_frdmk64f example

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FreeRTOS project using fsl_shell and freertos_uart_frdmk64f example

2,857 次查看
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

标签 (1)
0 项奖励
回复
1 回复

1,615 次查看
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 项奖励
回复