Some basic questions

zliudr
Posts: 360
Joined: Thu Oct 03, 2019 5:15 am

Some basic questions

Postby zliudr » Fri Oct 11, 2019 5:35 pm

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?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Some basic questions

Postby WiFive » Sat Oct 12, 2019 8:36 pm

Yes, ignored.

Run 'make help'

zliudr
Posts: 360
Joined: Thu Oct 03, 2019 5:15 am

Re: Some basic questions

Postby zliudr » Sun Oct 13, 2019 3:50 am

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.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Some basic questions

Postby WiFive » Sun Oct 13, 2019 4:27 am

Selective erase based on what needs to be written.

permal
Posts: 384
Joined: Sun May 14, 2017 5:36 pm

Re: Some basic questions

Postby permal » 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

zliudr
Posts: 360
Joined: Thu Oct 03, 2019 5:15 am

Re: Some basic questions

Postby zliudr » Mon Oct 21, 2019 2:52 am

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.

Who is online

Users browsing this forum: Bing [Bot] and 154 guests