/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / How can I use floating-point arithmetics?

Username:     
Password:     
             

Forum

# 1   2009-07-30 06:27:38 How can I use floating-point arithmetics?

z14
New member
Registered: 2009-07-03
Posts: 2

How can I use floating-point arithmetics?

When I use simple sin(x) or log(x), I get "Flash overflow" error message on Ride7 for my PrimerI.

I need logarithm very much (for seeing log(fft) spectrum).

Though I find integer sqrt, I couldn't find integer log...,

When I'm using AVR, I can use FP-math anyway, even having M8 device... Now I have 128 kB of Flash, but cannot use convenient method...

Offline

 

# 2   2009-07-30 06:39:44 How can I use floating-point arithmetics?

repzak
Member
Registered: 2008-03-05
Posts: 170

Re: How can I use floating-point arithmetics?

Hey,

The standard linker file is limited to 8kb if i remember correctly.

You have to edith the linker file in your project folder, search this forum how to do this.
(be carefull not to edit the section in /*  */)

Also be aware the sdt primer only can debug up to 32kb, so if your libraries are to big maybe you can'd debug, since circle os also takes some 20-24kb

Kasper

Offline

 

Board footer