ucos ii printf float variable abort scheduling

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

ucos ii printf float variable abort scheduling

791件の閲覧回数
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 返信

474件の閲覧回数
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 件の賞賛