can't create firmware with yotta

Questions and discussion about running MicroPython on a micro:bit board.
Target audience: MicroPython users with a micro:bit.
Post Reply
User avatar
titimoby
Posts: 18
Joined: Thu Sep 29, 2016 6:54 am

can't create firmware with yotta

Post by titimoby » Mon Oct 17, 2016 11:43 am

I tried Mu editor and it looks like it works.
If I use the flash option, in the end, the compiled code run on the Microbit.
But I always have error messages, I can"t use Files or Repl because Mu says there's no Microbit card.

Because I read there was some possible flash before, I followed instructions from the documentation and tried to build the firmware

First command ( yt target bbc-microbit-classic-gcc-nosd ) creates a .yotta.json file containing:

Code: Select all

{
  "build": {
    "target": "bbc-microbit-classic-gcc-nosd,*",
    "targetSetExplicitly": true
  }
}
Second command ( yt up ) does nothing but shows an error:

Code: Select all

error: No module.json file.
error: The current directory does not contain a valid module.
Did I missed something important?
Any clue?

User avatar
titimoby
Posts: 18
Joined: Thu Sep 29, 2016 6:54 am

Re: can't create firmware with yotta

Post by titimoby » Mon Oct 17, 2016 12:02 pm

hummmm, I know it sounds stupid, but as everytime I start something in a new area for me, I follow blindly documentation.
And I understand it was obvious, but you need to clone the github project before.

Code: Select all

$ git clone https://github.com/bbcmicrobit/micropython
$ cd micropython
Edit: and of course I fall into Issue 338
The solution from Xykon worked for me (edit modules.json to use his Dal version)

Post Reply