NEW ESP-IDF VERSION BUG ? -> Assembly File cannot be compiled

opcode_x64
Posts: 47
Joined: Sun Jan 13, 2019 5:39 pm

NEW ESP-IDF VERSION BUG ? -> Assembly File cannot be compiled

Postby opcode_x64 » Fri Aug 28, 2020 3:31 pm

Hello everybody,

I am trying to implement a high level interrupt in the new esp-idf version. To make sure, that error messages are not coming from my code, I used the example template in esp32 dcouments:

Code: Select all

    .section .iram1,"ax"
    .global     xt_highint5
    .type       xt_highint5,@function
    .align      4
xt_highint5:
  
  
    rsr     a0, EXCSAVE_5
    rfi     5
    
         .global ld_include_my_isr_file
ld_include_my_isr_file:
The compiler give's me the error:
xtensa-esp32-elf-as: unrecognized option `-unction-sections'
Compiling .pio/build/esp32dev/esp-idf/src/main.c.o
Generating LD script .pio/build/esp32dev/esp32_out.ld
Generating partitions .pio/build/esp32dev/partitions.bin
Compiling .pio/build/esp32dev/esp-idf/spi_flash/partition.c.o
Compiling .pio/build/esp32dev/esp-idf/spi_flash/spi_flash_rom_patch.c.o
Compiling .pio/build/esp32dev/esp-idf/spi_flash/spi_flash_chip_drivers.c.o
Compiling .pio/build/esp32dev/esp-idf/spi_flash/spi_flash_chip_generic.c.o
Compiling .pio/build/esp32dev/esp-idf/spi_flash/spi_flash_chip_issi.c.o
Compiling .pio/build/esp32dev/esp-idf/spi_flash/spi_flash_chip_gd.c.o
Compiling .pio/build/esp32dev/esp-idf/spi_flash/memspi_host_driver.c.o
*** [.pio/build/esp32dev/esp-idf/src/hint.s.o] Error 1
Compiling .pio/build/esp32dev/esp-idf/spi_flash/cache_utils.c.o

In previous esp-idf version there were no errors for the same code...

I am not sure, but the compiler says: xtensa-esp32-elf-as: unrecognized option `-unction-sections' Maybe here is a missing f or double ff for "-ffunction-sections". If so, in what file this has to be corrected ?

Thank you !

Best regards,
opcode_x64

opcode_x64
Posts: 47
Joined: Sun Jan 13, 2019 5:39 pm

Re: NEW ESP-IDF VERSION BUG ? -> Assembly File cannot be compiled

Postby opcode_x64 » Tue Sep 01, 2020 8:15 pm

No idea ?

Who is online

Users browsing this forum: No registered users and 266 guests