-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
make -j flash broken on esp* (will always flash the previous binary) #13492
Comments
Hm, strange and not really clear why. I used |
It seems that it starts RIOT/cpu/esp_common/Makefile.include Lines 96 to 106 in 2d1d13d
This part is executed by the RIOT/cpu/esp_common/Makefile.include Line 110 in 2d1d13d
So it seems to be a missing dependency of the Line 702 in 2d1d13d
There are two options to solve the problem. Either we move the code for the preparation of the flash binary to the
|
The fix in PR #14041 had to be reverted for the moment. |
I can reproduce the same problem on the current master. |
Description
I'm a habitual user of
make -j
. It looks like the build system has developed a very reliable race condition where amake -j flash
will always flash the previous binary on esp*.Steps to reproduce the issue
examples/hello-world
runmake BOARD=esp32-wroom-32 -j flash term
.main.c
, better yet print it in awhile(1)
loopmake BOARD=esp32-wroom-32 -j flash term
againExpected results
Actual results
make BOARD=esp32-wroom-32 -j flash term
againWorkaround
make BOARD=esp32-wroom-32 -j && make BOARD=esp32-wroom-32 flash term
Versions
xtensa-esp32-elf-gcc (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a5) 5.2.0
GNU Make 4.2.1
The text was updated successfully, but these errors were encountered: