10-23-2015 02:20 PM
hello Sir,
I am using the edk based platform for my project. I need to display a fraction value for example 12.3452 after some processing on the hyperterminal. However using floating point datatype in the C file is not solving my issue. It is only displaying the whole number part before the point i.e only 12. So how to solve it.
10-23-2015 09:29 PM
10-23-2015 09:57 PM
yes sir..and not only that when I am using the format 2.4f also I am getting 1. when 1.9 is the desired result I am getting 1. i.e always the floor value.
10-24-2015 01:50 PM
Can you post an example of your code where this happens? Are you really using printf and not xil_printf?
10-25-2015 01:47 PM
Sir,
I have attached my code herewith..This is simple an addition of two numbers say 1.2 ans 1.3 to produce 2.5 However when I am using xil_printf() I am getting the summation 2 instead of 2.5. However when I am using the function printf() instead of xil_printf() I am getting the error "microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl' overflowed by 592 bytes".
So what to do?
10-25-2015 02:57 PM
10-25-2015 11:06 PM
yes sir that is true however when I am using only printf() then I am getting the error "microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
Thanks in advance
10-26-2015 03:26 AM
printf() uses quit a bit more memory compared to xil_printf(). You need to increase the amount of BRAM available for your application.