Page 1 of 1
.bin failed-genhdr-mpversion-ERROR
Posted: Sat Dec 28, 2019 9:23 am
by vikram20
Hi
Can anyone help me for CC3200LAUNCHXL Micropython porting?
I followed Ti/WiKi page guidelines for porting.
1. Successfully generated bootloader file.
2. Started mcumg.bin generation but failed in between and stuck up at the pins.h build then build it with python code.
3. Again error generated for mpversion.h build then build it with python but after making application it shows the same mpversion.h error and could not proceed after it. Struggling on it for last 3days tried many thing like uninstall/install micropython/Cygwin also.
Iam using - micropython-1.12/micropython-master
windows 64
cygwin
below is the screen code for same.
Code: Select all
Lenovo@DESKTOP-0GNP05U ~
$ cd e:/micropython
Create bootmgr/build/LAUNCHXL/release/bootloader.bin
Relocator found...
Boot Manager found... Generating bootloader...
Lenovo@DESKTOP-0GNP05U /cygdrive/e/micropython-master/ports/cc3200
$ make BTARGET=application BTYPE=release BOARD=LAUNCHXL
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Create build/LAUNCHXL/release/genhdr/pins.h
bash: python3: command not found
application.mk:236: recipe for target 'build/LAUNCHXL/release/genhdr/pins.h' failed
make: *** [build/LAUNCHXL/release/genhdr/pins.h] Error 127
Lenovo@DESKTOP-0GNP05U /cygdrive/e/micropython-master/ports/cc3200
$
Re: .bin failed-genhdr-mpversion-ERROR
Posted: Sat Dec 28, 2019 11:15 am
by stijn
vikram20 wrote: ↑Sat Dec 28, 2019 9:23 am
bash: python3: command not found
That's the first thing to solve. Invoke with 'make PYTHON=/full/path/to/python3' or set PATH environment variable so that the python3 executable is in your path.
Re: .bin failed-genhdr-mpversion-ERROR
Posted: Sat Dec 28, 2019 3:36 pm
by vikram20
Hi stjin
Thanks for your support.
Python is on the path as I started with it initially.
I attached the code and it shoes error on the 'mpversion.h' file.
Code: Select all
Lenovo@DESKTOP-0GNP05U ~
$ cd E:/micropython-1.12/ports/cc3200
Lenovo@DESKTOP-0GNP05U /cygdrive/e/micropython-1.12/ports/cc3200
$ make BTARGET=bootloader BTYPE=release BOARD=LAUNCHXL
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
mkdir -p bootmgr/build/LAUNCHXL/release/genhdr
touch bootmgr/build/LAUNCHXL/release/genhdr/qstrdefs.generated.h
touch bootmgr/build/LAUNCHXL/release/genhdr/mpversion.h
mkdir -p bootmgr/build/LAUNCHXL/release/bootmgr/
mkdir -p bootmgr/build/LAUNCHXL/release/drivers/cc3100/src/
mkdir -p bootmgr/build/LAUNCHXL/release/hal/
mkdir -p bootmgr/build/LAUNCHXL/release/lib/libc/
mkdir -p bootmgr/build/LAUNCHXL/release/lib/utils/
mkdir -p bootmgr/build/LAUNCHXL/release/misc/
mkdir -p bootmgr/build/LAUNCHXL/release/py/
mkdir -p bootmgr/build/LAUNCHXL/release/simplelink/
mkdir -p bootmgr/build/LAUNCHXL/release/util/
CC hal/cpu.c
CC hal/interrupt.c
CC hal/gpio.c
CC hal/pin.c
CC hal/prcm.c
CC hal/shamd5.c
CC hal/spi.c
CC hal/startup_gcc.c
CC hal/systick.c
CC hal/utils.c
CC simplelink/cc_pal.c
CC ../../drivers/cc3100/src/device.c
CC ../../drivers/cc3100/src/driver.c
CC ../../drivers/cc3100/src/flowcont.c
CC ../../drivers/cc3100/src/fs.c
CC ../../drivers/cc3100/src/netapp.c
CC ../../drivers/cc3100/src/netcfg.c
CC ../../drivers/cc3100/src/nonos.c
CC ../../drivers/cc3100/src/socket.c
CC ../../drivers/cc3100/src/spawn.c
CC ../../drivers/cc3100/src/wlan.c
CC util/cryptohash.c
CC misc/antenna.c
CC misc/mperror.c
CC bootmgr/main.c
AS bootmgr/runapp.s
CC ../../py/mpprint.c
CC ../../lib/libc/string0.c
CC ../../lib/utils/printf.c
LINK bootmgr/build/LAUNCHXL/release/bootmgr.axf
text data bss dec hex filename
11496 0 1997 13493 34b5 bootmgr/build/LAUNCHXL/release/bootmgr.a
xf
Create bootmgr/build/LAUNCHXL/release/bootmgr.bin
Create bootmgr/build/LAUNCHXL/release/bootloader.bin
Relocator found...
Boot Manager found...
Generating bootloader...
Lenovo@DESKTOP-0GNP05U /cygdrive/e/micropython-1.12/ports/cc3200
$ make BTARGET=application BTYPE=release BOARD=LAUNCHXL
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
mkdir -p build/LAUNCHXL/release/genhdr
Create build/LAUNCHXL/release/genhdr/pins.h
bash: python3: command not found
application.mk:236: recipe for target 'build/LAUNCHXL/release/genhdr/pins.h' failed
make: *** [build/LAUNCHXL/release/genhdr/pins.h] Error 127
Lenovo@DESKTOP-0GNP05U /cygdrive/e/micropython-1.12/ports/cc3200
$ python boards/make-pins.py --board boards/LAUNCHXL/pins.csv --af boards/cc3200_af.csv --prefix boards/cc3200_prefix.c --hdr build/LAUNCHXL/release/genhdr/pins.h --qstr build/LAUNCHXL/release/pins_qstr.h>build/LAUNCHXL/release/pins.c
Lenovo@DESKTOP-0GNP05U /cygdrive/e/micropython-1.12/ports/cc3200
$ make BTARGET=application BTYPE=release BOARD=LAUNCHXL
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
bash: python3: command not found
../../py/py.mk:232: recipe for target 'build/LAUNCHXL/release/genhdr/mpversion.h' failed
make: *** [build/LAUNCHXL/release/genhdr/mpversion.h] Error 127
Lenovo@DESKTOP-0GNP05U /cygdrive/e/micropython-1.12/ports/cc3200
$ python ../../py/makeversionhdr.py build/LAUNCHXL/release/genhdr/mpversion.h
GEN build/LAUNCHXL/release/genhdr/mpversion.h
Lenovo@DESKTOP-0GNP05U /cygdrive/e/micropython-1.12/ports/cc3200
$ make BTARGET=application BTYPE=release BOARD=LAUNCHXL
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
bash: python3: command not found
../../py/py.mk:232: recipe for target 'build/LAUNCHXL/release/genhdr/mpversion.h' failed
make: *** [build/LAUNCHXL/release/genhdr/mpversion.h] Error 127
Lenovo@DESKTOP-0GNP05U /cygdrive/e/micropython-1.12/ports/cc3200
$
Re: .bin failed-genhdr-mpversion-ERROR
Posted: Mon Dec 30, 2019 7:55 am
by vikram20
Hi
Does anyone has a solution for above problem?
Re: .bin failed-genhdr-mpversion-ERROR
Posted: Mon Dec 30, 2019 8:03 am
by Roberthh
As states several time, the reason is shown by the line:
bash: python3: command not found
python3 is missing. So if python3 is not in the path, you have to specify it in tghe make command with
make PYTHON=<path of a python3 executable> ...all other options....
e.g., if you can call python3 from the command line:
make BTARGET=application BTYPE=release BOARD=LAUNCHXL PYTHON=python3
Re: .bin failed-genhdr-mpversion-ERROR
Posted: Mon Dec 30, 2019 8:16 am
by stijn
vikram20 wrote: ↑Sat Dec 28, 2019 3:36 pm
Python is on the path as I started with it initially.
Just to be clear: the error is about
python3 so it doesn't matter whether
python is in your path.
Re: .bin failed-genhdr-mpversion-ERROR
Posted: Mon Dec 30, 2019 1:29 pm
by vikram20
Thanks for solution.