ucos ii printf float variable abort scheduling

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

ucos ii printf float variable abort scheduling

790 Views
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

Labels (1)
Tags (1)
0 Kudos
1 Reply

473 Views
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 Kudos