Recent

Author Topic: ESP8266 Compiling with xtensa-freertos  (Read 13500 times)

af0815

  • Hero Member
  • *****
  • Posts: 1022
Re: ESP8266 Compiling with xtensa-freertos
« Reply #30 on: January 09, 2022, 03:45:29 pm »
Now i have copied the needed bin files and flash
Code: Text  [Select][+][-]
  1. @echo on
  2. set IDF_PATH=D:\data\msys32\home\andi\esp\ESP8266_RTOS_SDK
  3. cd D:\data\lazdev\xtensa\projects\blink
  4. python.exe D:\data\msys32\home\andi\esp\ESP8266_RTOS_SDK/components/esptool_py/esptool/esptool.py --chip esp8266 --port "COM3" --baud 921600 --before "default_reset" --after "hard_reset" write_flash -z --flash_mode "dio" --flash_freq "40m" --flash_size "2MB"   0x0 bootloader.bin 0x10000 blink.bin 0x8000 partitions_singleapp.bin
  5.  
Quote
esptool.py v2.4.0
Connecting........__
Chip is ESP8266EX
Features: WiFi
MAC: 4c:75:25:10:c4:08
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Compressed 10432 bytes to 7020...
Wrote 10432 bytes (7020 compressed) at 0x00000000 in 0.1 seconds (effective 867.8 kbit/s)...
Hash of data verified.
Compressed 157136 bytes to 100991...
Wrote 157136 bytes (100991 compressed) at 0x00010000 in 1.4 seconds (effective 883.2 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 83...
Wrote 3072 bytes (83 compressed) at 0x00008000 in 0.0 seconds (effective 1520.3 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...


After a reset my esp8266 is blinking :-)

Many thanks go to ccrause and his help. And to DonAlfredo for his fpcupdeluxe.

So my question is - what can i do for you ?
« Last Edit: January 09, 2022, 03:58:49 pm by af0815 »
regards
Andreas

ccrause

  • Hero Member
  • *****
  • Posts: 627
Re: ESP8266 Compiling with xtensa-freertos
« Reply #31 on: January 09, 2022, 05:50:59 pm »
After a reset my esp8266 is blinking :-)

Many thanks go to ccrause and his help. And to DonAlfredo for his fpcupdeluxe.

Well done! I know it is frustrating when something should just work, but does not.

Quote
So my question is - what can i do for you ?

Perhaps update the wiki?  In particular getting the SDK toolchain to work on Windows - I struggled a lot to get to the point where I could compile an example on Windows.

af0815

  • Hero Member
  • *****
  • Posts: 1022
Re: ESP8266 Compiling with xtensa-freertos
« Reply #32 on: January 09, 2022, 07:48:20 pm »
I have a working fpcupdeluxe, but nothing for other people.

One goal is, stm32 and esp8266 cannot actual work at the same time in fpc out of the box. If you create one, you overwrite the other, without manual work.

The correct crossbin and libs should exists for fpcupdeluxe. The target 4.x is comming  :-X

And i have to test all with your samples in Lazarus.
« Last Edit: January 09, 2022, 07:50:21 pm by af0815 »
regards
Andreas

 

TinyPortal © 2005-2018