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
Posts: 12
Joined: Thu Jul 07, 2016 8:45 pm 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/
Traceback (most recent call last):
File "modules/", line 1
SyntaxError: invalid syntax
../../py/ 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 ... 6a44d44918.

I then am running from the STM32 directory


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


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

Re: 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