Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having trouble compiling gateway #47

Open
Ing-Med opened this issue Aug 10, 2022 · 1 comment
Open

Having trouble compiling gateway #47

Ing-Med opened this issue Aug 10, 2022 · 1 comment

Comments

@Ing-Med
Copy link

Ing-Med commented Aug 10, 2022

Hi gmag11,

i unfortunately am not able to compile the gateway example of this project.
Platform IO Core 6.1.3, Home 3.4.3
Windows 10
Git installed, python installed for what its worth. Other projects compile just fine.

i downloaded the whole github project folder and used "open project" in platformIO. Selected env:esp32-MQTTGateway-NoSSL down at the bottom. Left everything else as is. Compiling of the source code does not seem to make any problems besides a few warnings. However when linking, it spews errors (?) typed in yellow, followed by an error without further definiton.
i cannot help myself with any of these errors as there are too deeply rooted into the programm code. Also it references to the SmartSwitchController example file which is kinda off?

Log is over here on pastebin.

Thanks for your help in advance !

edit: also tried building the whole project. Every example fails when it comes to linking.

@Ing-Med
Copy link
Author

Ing-Med commented Aug 11, 2022

huh, so i finally managed to get it to compile. i reinstalled my whole vscode, but in the end i think it was a basic beginners mistake. renaming EnigmaIOTGatewayMQTT from .ino to .cpp.

Unfortunately, my troubles do not end here.

Building didn't work out either with the provided .ini file. it threw errors:

Open On-Chip Debugger v0.11.0-esp32-20220706 (2022-07-06-15:48)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 1

adapter speed: 20000 kHz

WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release.
DEPRECATED! use 'adapter speed' not 'adapter_khz'
adapter speed: 5000 kHz

Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6010, description '', serial '' at bus location ''
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6014, description '
', serial '' at bus location ''
** OpenOCD init failed **
shutdown command invoked

*** [upload] Error 1

So i was able to change the upload protocol to esptool. Which built and uploaded just fine thankfully.

However, the board does crash right on reboot.

16:08:50.716 >
16:08:50.716 >
16:08:50.716 >
16:08:50.716 >
16:08:50.716 > ELF file SHA256: 0000000000000000
16:08:50.716 >
16:08:50.716 > Rebooting...
16:08:50.742 > ets Jun 8 2016 00:22:57
16:08:50.743 >
16:08:50.743 > rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
16:08:50.743 > configsip: 0, SPIWP:0xee
16:08:50.743 > clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
16:08:50.743 > mode:DOUT, clock div:2
16:08:50.743 > load:0x3fff0030,len:1184
16:08:50.743 > load:0x40078000,len:13132
16:08:50.743 > load:0x40080400,len:3036
16:08:50.743 > entry 0x400805e4
16:08:51.294 >
16:08:51.295 > assert failed: do_core_init startup.c:298 (flash_ret == ESP_OK)
16:08:51.295 >
16:08:51.295 >
16:08:51.295 > Backtrace:0x4008379d:0x3ffe3aa00x4008cd39:0x3ffe3ac0 0x400929e5:0x3ffe3ae0 0x401039ae:0x3ffe3c10 0x40082e9e:0x3ffe3c40 0x400792ba:0x3ffe3c90 |<-CORRUPTED
16:08:51.295 >
16:08:51.295 >
16:08:51.295 >
16:08:51.295 >
16:08:51.295 > ELF file SHA256: 0000000000000000
16:08:51.295 >
16:08:51.295 > Rebooting...

i am only a hobbyist usually developing my own small sketches, so this is unfortunately above me. Do you have any clues whats wrong here? Or is this due to changing the upload protocol? I just cant get it to work with esp-prog...
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant