Page 1 of 1

Some basic questions

Posted: Fri Oct 11, 2019 5:35 pm
by zliudr
I'm just learning the toolchain. In all examples I encountered online the sample projects are built with make command. There also seems to be files for Cmake. So these Cmake related files can be left alone when all I'm using is make, correct?

Continuing on make, if I run "make flash" or "make app-flash", what is the difference? The documentation didn't explain what ELSE is there besides app and what app includes. For example, the various libraries and subsystems that are compiled for the first time, are they all belonging to the ELSE? Is the app only within say the example code folder?

To change partitions, I have to erase flash first and then set partition table in menuconfig, then make flash, correct?

Make alone doesn't erase existing partitions such as spiffs, right?

Re: Some basic questions

Posted: Sat Oct 12, 2019 8:36 pm
by WiFive
Yes, ignored.

Run 'make help'

Re: Some basic questions

Posted: Sun Oct 13, 2019 3:50 am
by zliudr
Very short response, like last time. Well, the help wasn't very helpful. If make flash uploads the partition table, does it also erase the partitions? My suspicion is it doesn't erase the spiffs. This forum seems to have some visitors but not many are helping. You got great hardware and the firmware is extensive. But without the people to support, it's not going to achieve its full potential.

Re: Some basic questions

Posted: Sun Oct 13, 2019 4:27 am
by WiFive
Selective erase based on what needs to be written.

Re: Some basic questions

Posted: Sun Oct 13, 2019 8:44 am
by permal
flash = partition table, bootloader and the app
app-flash = flashes only the application, nothing else.

https://docs.espressif.com/projects/esp ... ystem.html

HTH

Re: Some basic questions

Posted: Mon Oct 21, 2019 2:52 am
by zliudr
permal wrote:
Sun Oct 13, 2019 8:44 am
flash = partition table, bootloader and the app
app-flash = flashes only the application, nothing else.

https://docs.espressif.com/projects/esp ... ystem.html

HTH
Thanks! That was clear.