esp8266: how to force library functions info ROM?

Sysprogs forums Forums VisualGDB esp8266: how to force library functions info ROM?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9279

    I’m evaluating VisualGDB and need to control the placement of code into ROM vs. RAM. For code that I write, I see how to force a function into ROM by specifying  __attribute__((section(“.irom.text”)))  in the function declaration.

    Looking at the map file, it seems that many library functions are put into RAM.

    How do I force library functions into ROM (e.g. __addsf3 and all other floating point functions)? I want to have finer control of what I can easily debug.

    Thanks…Keith Rhodes

    #9280
    support
    Keymaster

    Hi,

    You can try it at your own risk by following the instructions in this thread: https://sysprogs.com/w/forums/topic/esp8266-iram1_0_seg-too-large/

    Please note that the ESP8266 SDK is largely undocumented and unreliable and doing this may trigger strange bugs.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.