lcd160cr.py Recipe for target failed

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Jacob_Beningo
Posts: 12
Joined: Thu Jul 07, 2016 8:45 pm

lcd160cr.py Recipe for target failed

Post by Jacob_Beningo » Mon Jan 29, 2018 4:30 pm

I'm moving to the latest kernel build 1.9.3 but seem to be unable to successfully build for an STM32 board. I am getting the following error:

MPY modules/lcd160cr.py
Traceback (most recent call last):
File "modules/lcd160cr.py", line 1
SyntaxError: invalid syntax
../../py/mkrules.mk:115: recipe for target 'build-PYBV3/frozen_mpy/lcd160cr.mpy' failed
make: *** [build-PYBV3/frozen_mpy/lcd160cr.mpy] Error 1

I'm following the directions to make mpy-cross first using:

make mpy-cross

from the root repository directory as described at https://github.com/micropython/micropyt ... 6a44d44918.

I then am running from the STM32 directory

make BOARD=PYBV3

Is there something obvious that I am overlooking to compile the latest kernel?

Thanks!

User avatar
Roberthh
Posts: 1649
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: lcd160cr.py Recipe for target failed

Post by Roberthh » Mon Jan 29, 2018 5:55 pm

Are you sure you have an Pyboard Version 0.3?
And no, you do not have to call mpy-cross manually. That's done by the Makefile. All sources to be included in flash have to be in the modules subdirectory of STM32

Post Reply