Search found 18 matches

by go4retro
Mon Jan 28, 2019 4:12 am
Forum: ESP-IDF
Topic: Overriding linker location for a single IDF routine?
Replies: 21
Views: 18148

Re: Overriding linker location for a single IDF routine?

FWIW, theoretically at least, there's always the option of connecting the GPIO interrupt to a high-level interrupt and writing the handler in assembly... not sure if that's needed in your case, but it's there. Well, if there's a way to code the entry and exit and the GPIO piece in ASM, and someone ...
by go4retro
Fri Jan 25, 2019 4:15 am
Forum: ESP-IDF
Topic: Overriding linker location for a single IDF routine?
Replies: 21
Views: 18148

Re: Overriding linker location for a single IDF routine?

Initially, the map file did *NOT* have the libdriver.a:gpio.o line. I checked all over my esp-idf dirs looking for a miss, to find none. But, then I found that the build dir in my project had an build/esp32/esp32.common.ld file with the wrong syntax (libdriver.a:gpio_set_level.o). I changed it there...
by go4retro
Thu Jan 24, 2019 7:57 pm
Forum: ESP-IDF
Topic: Overriding linker location for a single IDF routine?
Replies: 21
Views: 18148

Re: Overriding linker location for a single IDF routine?

You can verify that gpio_set_level ended up in IRAM by looking at the .map file output in the build directory, or running "nm PROJECT.elf" and looking for gpio_set_level address. Looks like not: $ nm blink.elf | grep gpio_set_level 400e6a38 T gpio_set_level Can you explain exactly what you're looki...
by go4retro
Thu Jan 24, 2019 7:42 pm
Forum: ESP-IDF
Topic: Overriding linker location for a single IDF routine?
Replies: 21
Views: 18148

Re: Overriding linker location for a single IDF routine?

Also it's probably gpio.o rather than gpio_set_level.o Thanks. I changed it to gpio.o .iram0.text : { /* Code marked as runnning out of IRAM */ _iram_text_start = ABSOLUTE(.); *(.iram1 .iram1.*) *libfreertos.a:(.literal .text .literal.* .text.*) *libheap.a:multi_heap.*(.literal .text .literal.* .te...
by go4retro
Thu Jan 24, 2019 4:48 am
Forum: ESP-IDF
Topic: Overriding linker location for a single IDF routine?
Replies: 21
Views: 18148

Re: Overriding linker location for a single IDF routine?

esp-idf 3.3 (dloaded a few weeks ago) esp32 devkit 1 (https://docs.zerynth.com/latest/official/board.zerynth.doit_esp32/docs/index.html) Jim Hi, Are you sure IDF version 3.3 you have taken as last stable release is 3.1 branch? Please confirm with that as well. I was indeed using v3.3, but I repeate...
by go4retro
Mon Jan 21, 2019 4:54 am
Forum: ESP-IDF
Topic: Overriding linker location for a single IDF routine?
Replies: 21
Views: 18148

Re: Overriding linker location for a single IDF routine?

esp-idf 3.3 (dloaded a few weeks ago)

esp32 devkit 1 (https://docs.zerynth.com/latest/officia ... index.html)

Jim
by go4retro
Sun Jan 20, 2019 8:35 pm
Forum: ESP-IDF
Topic: Overriding linker location for a single IDF routine?
Replies: 21
Views: 18148

Re: Overriding linker location for a single IDF routine?

I think you misunderstand. I don't know how to do it, and I was looking for some more help. I don't seem to have a esp32.common.ld (mine is called esp32.common.ld.in, and mine does not look like yours, so I was afraid to patch it because I can't find anything similar in my copy. But, I took a stab a...
by go4retro
Sat Jan 19, 2019 7:52 pm
Forum: ESP-IDF
Topic: Overriding linker location for a single IDF routine?
Replies: 21
Views: 18148

Re: Overriding linker location for a single IDF routine?

I'm not worried to do it, I'm worried to do it wrong, and so I am asking for the specifics. I tried to "patch" my common ld using your example, but mine does not look anything like yours and so I am lost. For now, I am more than willing to do it. Long term, doing this means I probably will need to h...
by go4retro
Sat Jan 19, 2019 3:54 am
Forum: ESP-IDF
Topic: Overriding linker location for a single IDF routine?
Replies: 21
Views: 18148

Re: Overriding linker location for a single IDF routine?

I hate to impose, but I am scared to make the changes to the common files. I see in the file mentioned this section: .iram0.text : { /* Code marked as runnning out of IRAM */ _iram_text_start = ABSOLUTE(.); mapping[iram0_text] INCLUDE esp32.spiram.rom-functions-iram.ld _iram_text_end = ABSOLUTE(.); ...
by go4retro
Fri Jan 18, 2019 6:19 pm
Forum: ESP-IDF
Topic: Overriding linker location for a single IDF routine?
Replies: 21
Views: 18148

Re: Overriding linker location for a single IDF routine?

I did. All of my developed functions are marked as IRAM_ATTR. But, my functions use the ESP_IDF function gpio_set_level, which I did not write, and it is not marked as IRAM. So, I am trying to use the linker fragment capability to move it out of flash and into IRAM. If I can't do this, my initial pr...