Topic : Floating point support

Forum : ST7/STM8

Original Post
Post Information Post
September 7, 2007 - 10:48am
Guest

Dear Raisonance team,

I'm started to use the raisonance c compiler under ride (version build 746).

I have done a formula with some floating point calculation.
It works perfectly in the sim st7 simulator,but If I try to debug it on the target micro (8bit st7325j6 32k),
when i'm on the formula line I get from the ide the following message and I can't go on the next program line.

Can you help me ?

It seems that floating point calculation is not working. I need to enable some option in the ride ?

thanks

Enrico

Replies
Post Information Post
+1
0
-1
September 7, 2007 - 10:49am
Guest

the following message is "Step is not over yet.Go on ?" related to my precedent post

+1
0
-1
September 7, 2007 - 1:49pm
Guest

Could you send us (support@raisonance.com) a small project to reproduce the issue.
Thanks.
Francis

+1
0
-1
September 7, 2007 - 5:33pm
Raisonance Support Team

Hi Enrico,

Thanks for your submission. I received your project files and reproduced your problem in the Raisonance labs.

The root cause is that the compiler generates highly optimized functions for an efficient manipulation of floats. The debugger is not (yet) smart enough to understand the optimizations of the compiler, hence is not able to determine where to place its breakpoints, so it places several of them. As the device you use has a limited number of hardware breakpoints, once the simulator runs out of them it generates the "Step is not over yet. Go on?" message you reported.

This issue will be fixed in the next Ride release. We do not have a fixed schedule yet, but this should occur in the upcoming months.

A workaround to this issue is to avoid stepping in you program, but rather place a breakpoint and perform a "Go" in the debugger. You can use the _nop_() intrinsic function to have "clean" places where to set your breakpoints in case your C statements are too complex to follow.

I hope this helps,
Bruno Richard, PhD.
RAISONANCE - 17, avenue Jean Kuntzmann - F-38330 Montbonnot St Martin - FRANCE
http://www.raisonance.com Tel: +33 4 76 61 02 31