Fullscreen
Loading...
 

System Workbench for STM32 Help

Forums » System Workbench for STM32» Problem with floating point

Problem with floating point

Hi,
I'm using openSTM32 on ubuntu with the standard library. with the 1.13 ac6 version. I am writing code for STM32f407 discovery board, I enable the floating point unit but every operation that involves float numbers send the code to the default handler. I'm trying now with the following very simple code:

int main(void)
{

float x;
int u;

u = 1;
x = (float)u;

for(;;);
}

If I use double instead of float it works...do you have any suggestion to solve this problem?

Matteo


Show posts:
 

Newest Forum Posts

  1. Error in final launch sequence by judoka_acl, 12:18
  2. STM32469I mipi read funtion by jimmylee0407, 11:38
  3. multiple definition of g_pfnVectors by mike796, 2017-07-20 15:27
  4. PROGMEM equivalent by bugmenot, 2017-07-20 11:31
  5. multiple definition of g_pfnVectors by judoka_acl, 2017-07-19 10:20
  6. PROGMEM equivalent by straubm, 2017-07-18 18:55
  7. Breakpoint at the wrong line by Andrei from The Great White North, 2017-07-18 18:01
  8. Breakpoint at the wrong line by judoka_acl, 2017-07-18 09:14
  9. Breakpoint at the wrong line by judoka_acl, 2017-07-18 09:01
  10. Breakpoint at the wrong line by tang, 2017-07-17 17:22

Last-Modified Blogs