ESP8266 Developer Zone The Official ESP8266 Forum 2017-07-13T20:12:44+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=769 2017-07-13T20:12:44+08:00 2017-07-13T20:12:44+08:00 https://bbs.espressif.com:443/viewtopic.php?t=769&p=14562#p14562 <![CDATA[Re: math functions]]>

.irom0.text : ALIGN(4)
{
_irom0_text_start = ABSOLUTE(.);

*libm.a:(.literal .text .literal.* .text.*)
....

works for me.

Statistics: Posted by Nikolay — Thu Jul 13, 2017 8:12 pm


]]>
2015-07-20T23:42:09+08:00 2015-07-20T23:42:09+08:00 https://bbs.espressif.com:443/viewtopic.php?t=769&p=2758#p2758 <![CDATA[Re: math functions]]>
I tried changing linker but nothing worked. I moved irom0.text to before .text section and added following:

Code:

 .irom0.text : ALIGN(4)
  {
    _irom0_text_start = ABSOLUTE(.);
    *(.irom0.literal .irom.literal .irom.text.literal .irom0.text .irom.text)
    *(libm.a)
    *(libc.a)
    *(libgcc.a)
    _irom0_text_end = ABSOLUTE(.);
  } >irom0_0_seg :irom0_0_phdr

This does work and move all the symbols from .text to irom0 but application does not work at all.

I then tried:

Code:

 .irom0.text : ALIGN(4)
  {
    _irom0_text_start = ABSOLUTE(.);
    *(.irom0.literal .irom.literal .irom.text.literal .irom0.text .irom.text)
    libm.a: *(.literal .text)
    _irom0_text_end = ABSOLUTE(.);
  } >irom0_0_seg :irom0_0_phdr


this did not work either.. so any suggestion to move libm to rom section??? anyone from Espressif team?

Regards,
Ajay

Statistics: Posted by ajay.bhargav — Mon Jul 20, 2015 11:42 pm


]]>
2015-07-20T17:27:20+08:00 2015-07-20T17:27:20+08:00 https://bbs.espressif.com:443/viewtopic.php?t=769&p=2753#p2753 <![CDATA[Re: math functions]]>

Could this help ? http://bbs.espressif.com/viewtopic.php?f=7&t=642&p=2403&hilit=math#p2409

Compile error :http://bbs.espressif.com/viewtopic.php?f=10&t=166

Statistics: Posted by Her Mary — Mon Jul 20, 2015 5:27 pm


]]>
2015-07-18T05:23:53+08:00 2015-07-18T05:23:53+08:00 https://bbs.espressif.com:443/viewtopic.php?t=769&p=2728#p2728 <![CDATA[math functions]]> https://github.com/jcmvbkbc/crosstool-NG I checked out branch lx106-g++. Toolchain compiled successfully. I can compile with libm now but... the linker reports error coz .text size has now increased > 0x8000

Code:

/opt/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .output/eagle/debug/image/eagle.app.v6.out section `.text' will not fit in region `iram1_0_seg'


I would like to know how can I use math functions? Are they available for ESP or not?

Statistics: Posted by ajay.bhargav — Sat Jul 18, 2015 5:23 am


]]>