Hi

I have a new configuration for an Olimex-ESP32-PoE board. I can compile and build the nuttx flash without problems.

I did a

make export

and putted the generated nuttx-export folder into another project (pysimCoder). The Makefile of the project, which correctly works with my STM32 boards, fails the compilation of the image for esp32 with this strange message:

....
xtensa-esp32-elf-ld -nostdlib --gc-sections --cref -Map=/home/bucher/sviluppo/NUTTX/nuttx/nuttx.map -L /home/bucher/CACSD/pysimCoder/CodeGen/nuttx/nuttx-export/libs --entry=__start  -T /home/bucher/CACSD/pysimCoder/CodeGen/nuttx/nuttx-export/scripts/esp32_rom.ld -T /home/bucher/CACSD/pysimCoder/CodeGen/nuttx/nuttx-export/scripts/flat_memory.ld -T /home/bucher/CACSD/pysimCoder/CodeGen/nuttx/nuttx-export/scripts/legacy_sections.ld \
  -o ../test  \
  nuttx_main.o test.o  nuttx_main-builtintab.o /home/bucher/CACSD/pysimCoder/CodeGen/nuttx/lib/libpyblk.a --start-group -lsched -ldrivers -lboards -lc -lmm -larch -lxx -lapps -lnet -lfs -lbinfmt -lwireless -lboard -lboard /home/bucher/sviluppo/GITHUB/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/11.2.0/libgcc.a --end-group *xtensa-esp32-elf-ld:/home/bucher/CACSD/pysimCoder/CodeGen/nuttx/nuttx-export/scripts/flat_memory.ld:32: ignoring invalid character `#' in expression** **xtensa-esp32-elf-ld:/home/bucher/CACSD/pysimCoder/CodeGen/nuttx/nuttx-export/scripts/flat_memory.ld:32: syntax error**
**make: *** [Makefile:133: ../test] Error 1**
*....

The line 32 of the script "flat_memory.ld" contains simply the line

#include <nuttx/config.h>

Hints are welcomed!

Thanks in advance

Roberto

Reply via email to