Closed peterhinch closed 6 years ago
I can't seem to reproduce it. What is the exact invocation of make that you use? And do you have a makefile/GNUmakefile in the stm32 dir?
Also, I noticed this message: make: warning: Clock skew detected. Your build may be incomplete.
This typically means that the timestamps files on your filesystem are somehow in the future (ahead of the current time on your computer). So I'd double check your time and either fix the filesystem timestamps or try a fresh clone.
I always get the Clock skew detected
message whenever I do a build and long ago acquired the habit of ignoring it. My source tree is on a NAS and it's possible its clock may drift fractionally relative to my PC's between timeserver syncs. Would this explain it?
The only Makefile in stm32 is as per the master: git status
shows no modified files and no unaccountable untracked files. The build script first determines the board type and correctly outputs 'Building for PYBV11' for $BOARD
:
echo Building for $BOARD
FROZEN_DIR='/mnt/qnap2/data/Projects/MicroPython/projects/net_analyser/frozen'
if [ $BOARD ]
then
cd $MPDIR/ports/stm32
if [ $# -eq 1 ] && [ $1 = "--clean" ]
then
make BOARD=$BOARD clean
fi
if make -j 8 BOARD=$BOARD FROZEN_MPY_DIR=$FROZEN_DIR && pyb_boot $MPDEVICE
then
sleep 1
make BOARD=$BOARD deploy
cd -
sleep 1
rshell
else
echo Build failure
fi
else
echo Incorrect board type
fi
It deploys and starts rshell
but with the incorrect frozen modules.
The script has worked up to now. Another script which only differs in
FROZEN_DIR='modules'
runs normally.
If you're using a server to host your files, then this often means that the time on the server isn't in sync with the time on your build machine,
I'm doubtless missing something obvious here, but I'm still foxed as to why this has stopped working. Here is my git status:
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
drivers/nrf24l01/issue
ports/esp8266/modules/aremote.py
ports/esp8266/modules/aswitch.py
ports/esp8266/modules/asyn.py
ports/esp8266/modules/collections/
ports/esp8266/modules/do_connect.py
ports/esp8266/modules/errno.py
ports/esp8266/modules/logging.py
ports/esp8266/modules/mqtt_as.py
ports/esp8266/modules/pickle.py
ports/esp8266/modules/syncom.py
ports/esp8266/modules/uasyncio/
ports/esp8266/modules/umqtt/
ports/stm32/modules/Flat_UI.py
ports/stm32/modules/checkbox.py
ports/stm32/modules/collections/
ports/stm32/modules/errno.py
ports/stm32/modules/flash.py
ports/stm32/modules/font10.py
ports/stm32/modules/font14.py
ports/stm32/modules/freeserif.py
ports/stm32/modules/gauge.py
ports/stm32/modules/iconswitch.py
ports/stm32/modules/logging.py
ports/stm32/modules/micropower.py
ports/stm32/modules/plot.py
ports/stm32/modules/radiobutton.py
ports/stm32/modules/ssd1306.py
ports/stm32/modules/tft.py
ports/stm32/modules/threestate.py
ports/stm32/modules/touch_bytecode.py
ports/stm32/modules/traffic.py
ports/stm32/modules/uasyncio/
ports/stm32/modules/ugui.py
ports/stm32/modules/upower.py
ports/stm32/modules/upysh.py
tools/errno
tools/gc
tools/json
tools/os
tools/sys
tools/tarfile
tools/uzlib
nothing added to commit but untracked files present (use "git add" to track)
[adminpete@axolotl]: /mnt/qnap2/data/Projects/MicroPython/micropython
OK, I've got to the bottom of this and I guess it's simple. But the script worked previously and I'm foxed as to why it started to fail. The fix is to do
make BOARD=$BOARD FROZEN_MPY_DIR=$FROZEN_DIR deploy
In its previous form it was causing the rebuild with the frozen modules in the default directory.
This is a recent change. When I build for Pyboard V1.1 it cross-compiles the files in my specified directory and appears to build the dfu file. But then it cross-compiles the files in stm32/modules and creates a new dfu file. So help('modules') shows the standard files rather than those in the chosen directory. This is the relevant output
Up to here everything looks fine, but then it does:
The above cross-compiled files reside in stm32/modules.