Installing and setting up of ESP32 toolchain

For general Flowcode discussion that does not belong in the other sections.
jandidden
Posts: 113
http://meble-kuchenne.info.pl
Joined: Mon Feb 13, 2023 7:56 pm
Has thanked: 28 times
Been thanked: 12 times

Re: Installing and setting up of ESP32 toolchain

Post by jandidden »

I just decided to give it one more shot, starting from screatch, with a fresh download.
Surprisingly, the link in the Wiki now points back to the Matrix toolchain page and downloads version 2.3 again.
Let's see what that does now. 4.2.

Jan

jandidden
Posts: 113
Joined: Mon Feb 13, 2023 7:56 pm
Has thanked: 28 times
Been thanked: 12 times

Re: Installing and setting up of ESP32 toolchain

Post by jandidden »

Ahhh! The old 'Error: No such option: --no-hints Did you mean --no-warnings?'- That no-hints was added to prevent the 'async not supported'.
Where was that again??

Jan

medelec35
Matrix Staff
Posts: 1999
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 630 times
Been thanked: 669 times

Re: Installing and setting up of ESP32 toolchain

Post by medelec35 »

Hi Jan.
I replied to your PM about this at 7.46 this morning, and the message is still showing in the outbox.
PM Jan.png
PM Jan.png (104.39 KiB) Viewed 10984 times
As you have not read it, can you check that you can see the PM?
Many thanks for the spot.
That has now been corrected as the toolchain should only be downloaded from our website here
Martin

jandidden
Posts: 113
Joined: Mon Feb 13, 2023 7:56 pm
Has thanked: 28 times
Been thanked: 12 times

Re: Installing and setting up of ESP32 toolchain

Post by jandidden »

Fixing that, hoping that the 'async not supported' doesn't come back.

Sit back, tense -

Code: Select all

Build completed successfully 
I will be drunk the rest of the day, also declare the PC off limits.
I should probably have gone to church more as a kid.

@Martin/medelec35 - sorry I hadn't seen your PM.
Thanks for all -

Jan

medelec35
Matrix Staff
Posts: 1999
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 630 times
Been thanked: 669 times

Re: Installing and setting up of ESP32 toolchain

Post by medelec35 »

Thanks, Jan.
Now I have corrected the Wiki instruction it looks like you are up and running, which is great!
Martin

jandidden
Posts: 113
Joined: Mon Feb 13, 2023 7:56 pm
Has thanked: 28 times
Been thanked: 12 times

Re: Installing and setting up of ESP32 toolchain

Post by jandidden »

Addendum: it's not just the toolchain that cannot handle spaces in filenames for it's own stuff, also the target project file cannot be in a directory with spaces in the path. But you probably already knew that.

Jan

medelec35
Matrix Staff
Posts: 1999
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 630 times
Been thanked: 669 times

Re: Installing and setting up of ESP32 toolchain

Post by medelec35 »

Hi, Jan it might just be the folder has not got the required permission.
I have just compiled this successfully.

Code: Select all

Source name:   D:\App Developer RTC Prog V1.1 Working\XLoader\Test the new istallaion of esp32\BME280 Altitude v1a TTGO.fcfx

I just placed the project file into a random folder with spaces.
Also, you can see the project name has spaces.

The last part of the results, compiling to hex:

Code: Select all

[4/6] Generating ld/esp32.project.ld
[5/6] Linking CXX executable esp-project.elf
[6/6] Generating binary image from built executable
esptool.py v3.1-dev
Merged 2 ELF sections
Generated D:/App_Developer_RTC_Prog_V1.1_Working/XLoader/Test_the_new_istallaion_of_esp32/BME280_Altitude_v1a_TTGO/build/esp-project.bin
Executing action: all (aliases: build)
Running ninja in directory d:\app_developer_rtc_prog_v1.1_working\xloader\test_the_new_istallaion_of_esp32\bme280_altitude_v1a_ttgo\build
Executing "ninja all"...

Project build complete. To flash, run this command:
C:\esp-idf-tools\python_env\idf4.2_py3.7_env\Scripts\python.exe C:\esp-idf\components\esptool_py\esptool\esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32  write_flash --flash_mode dio --flash_size detect --flash_freq 26m 0x1000 build\bootloader\bootloader.bin 0x8000 build\partition_table\partition-table.bin 0x10000 build\esp-project.bin
or run 'idf.py -p (PORT) flash'

Build completed successfully 

Using FCD settings for linker
Launching the linker/assembler...
D:\Flowcode v10.0.3.28\tools\DoNothing\DoNothing.exe  
Martin

jandidden
Posts: 113
Joined: Mon Feb 13, 2023 7:56 pm
Has thanked: 28 times
Been thanked: 12 times

Re: Installing and setting up of ESP32 toolchain

Post by jandidden »

Interesting. I also thought that it worked beginning of the year before the meltdown. But now it definitely has issues on my system with spaces. The 'with spaces' folder is a OneDrive folder, but that was also in the beginning, no change.

I just got another Gotcha - if you put an ampersand '&' in the filename it also fails, with pieces of file paths inserted in some places that are completely wrong.

Edit: it may be the difference between a OneDrive file on the local PC or in the cloud. Normally that doesn't make a difference - the system just downloads any file it needs to the local PC if needed.
Maybe FC doesn't? Although I would think it is a file system function, not FC.

Jan

jandidden
Posts: 113
Joined: Mon Feb 13, 2023 7:56 pm
Has thanked: 28 times
Been thanked: 12 times

Re: Installing and setting up of ESP32 toolchain

Post by jandidden »

I'll be d*mmed. Took one of the charts that compiled successfully. Saved it in the OneDrive folder with spaces.
Still compiles successfully.

Edit: after I set that particular folder to 'keep local copy on this machine'.

Put an & in the filename: build failed
Replaced the & by aaa: build successfully.

Jan

artan
Posts: 13
Joined: Mon Oct 11, 2021 5:27 pm

rtc

Post by artan »

Hello, I have a question: in my project I configured ds1307 as I had no other solutions while in my built circuit I placed a PCf8563 rtc because I don't have a ds1307. Can this work in the circle?

Post Reply