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:
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