Sfoglia il codice sorgente

fix: Fix RAM example binary generation command

The esptool.py elf2image command was missing the chip argument leading
to it always generating ESP8266 binaries.
Djordje Nedic 2 anni fa
parent
commit
0c1d01c3f3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      examples/binaries/RAM_APP/source/CMakeLists.txt

+ 1 - 1
examples/binaries/RAM_APP/source/CMakeLists.txt

@@ -11,5 +11,5 @@ project(hello_world)
 # This generates a binary file from the elf, as the RAM build doesn't do that automatically
 add_custom_command(TARGET ${PROJECT_NAME}.elf
     POST_BUILD
-    COMMAND esptool.py elf2image --output app.bin ${PROJECT_NAME}.elf
+    COMMAND esptool.py --chip ${IDF_TARGET} elf2image --output app.bin ${PROJECT_NAME}.elf
 )