sqrt function

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
deda_294911
Level 4
Level 4
Welcome!

i have done Project ->  Build Settings -> Linker -> General and adding the letter "m" into Additional Libraries.

   

i got error rodata will not fit in region rom. rom overflowed by 1104 bytes.

   

my statement is 

   

read_out1 = (10*sqrt(read_out1*10));

   

pl. help

0 Likes
2 Replies
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

This error means your program is now too large to fit in memory.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Try to set optimization level for the parts of your project that are tested (no more debugging needed). This will reduce code space.

   

More to save: set Build setting to "Release" and enable optimization "none" for the files still under test.

   

 

   

Bob

0 Likes