ucos ii printf float variable abort scheduling

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

ucos ii printf float variable abort scheduling

1,358 次查看
jessegreen
Contributor I

      when I printf a float variable by calling PRINTF function in the freescale library,the ucos ii kernel stop scheduling,I don't kown why,the attachment is the source code ,please help me find the problem,thank you all!

IDE:Keil MDK V5.16

MCU:MK24FN1M0VDC12

Debug_console:UART3

Result :as below

169392_169392.jpg1234.jpg

Original Attachment has been moved to: ucos_t1.rar

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

1,041 次查看
soledad
NXP Employee
NXP Employee

Hello,

When building the demo with GCC, ensure that the demo and platform library are built with this option:

<code>
   <br>CHOOSE_FLOAT=HARD_FP <br>
</code>
Otherwise, the project does not use the Kinetis device’s hardware floating point when using the CMSIS-- DSP library.

In addition please check the below threads.

printf() with float values 

GENERAL: PRECISION OF PRINTF %F FORMAT STRING 


Have a great day,
Sol

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

0 项奖励
回复