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

Problem flashing esp32/moddable_zero #101

Closed
AnthonyKNorman opened this issue Nov 4, 2018 · 2 comments
Closed

Problem flashing esp32/moddable_zero #101

AnthonyKNorman opened this issue Nov 4, 2018 · 2 comments

Comments

@AnthonyKNorman
Copy link

AnthonyKNorman commented Nov 4, 2018

If I use

cd %MODDABLE%\examples\helloworld
mcconfig -d -m -p esp32

Then the ESP32 is flashed on COM3 and the example runs

If I use

cd %MODDABLE%\examples\piu\balls
mcconfig -d -m -p esp32/moddable_zero

then the MinGW window shows

Building xs_esp32.elf...
CC /c/Users/antho/moddable/build/tmp/esp32/moddable_zero/debug/idf/main/main.o
AR /c/Users/antho/moddable/build/tmp/esp32/moddable_zero/debug/idf/main/libmain.a
LD C:/Users/antho/moddable/build/tmp/esp32/moddable_zero/debug/idf/xs_esp32.elf
esptool.py v2.6-beta1
Flashing binaries to serial port COM8 (app at offset 0x10000 )...
esptool.py v2.6-beta1
Serial port COM8

Running SET in "Developer Command Prompt for VS 2017"
gives

UniversalCRTSdkDir=C:\Program Files (x86)\Windows Kits\10\
UPLOAD_PORT=COM3
USERDOMAIN=DESKTOP-G6SVJA3

Where is it getting COM8 from?
C:\Users\antho\moddable\build\tmp\esp32\moddable_zero\debug\idf\include\sdkconfig.h has

#define CONFIG_NEWLIB_STDOUT_LINE_ENDING_CRLF 1
#define CONFIG_ESPTOOLPY_PORT "COM8"
#define CONFIG_SPI_FLASH_WRITING_DANGEROUS_REGIONS_ABORTS 1
#define CONFIG_CONSOLE_UART_NONE 1

so I guess this got generated somehow?

@mkellner
Copy link
Collaborator

mkellner commented Nov 4, 2018

My guess is that at some point when you first built this app, you had the UPLOAD_PORT set to COM8? Then the sdkconfig.h file would be generated.

Try building clean (ie. remove $MODDABLE/build/bin/esp32 and $MODDABLE/build/tmp/esp32 ), or maybe just touch $MODDABLE/build/devices/esp32/xsProj/sdkconfig.defaults then rebuild. The sdkconfig.h file should then get rebuilt, taking into account UPLOAD_PORT.

@AnthonyKNorman
Copy link
Author

Thanks for that. By accident I found that building an application without debug achieved the same thing. Anyway, I am up and running now. 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

2 participants