c4ev3 / ev3duder

The LEGO® EV3 Downloader/UploaDER.
http://c4ev3.github.io/ev3duder/doc/html/globals_func.html
GNU General Public License v3.0
32 stars 12 forks source link

How to upload an uf2 file #31

Open tarjei opened 3 years ago

tarjei commented 3 years ago

Hi,

With the new uf2 pack(#15) command it is my understanding that you can upload and run an UF2 file from makecode.org directly on an EV3, but I have somehow failed to understand the steps. I try:

  1. Create a file and download it (named lego-untitled.uf2)
  2. ev3duder uf2 pack /home/user/lego-untitled.uf2 Projects test
  3. ...

That is, step 3 does not return anything meaningful - nor do I find the file on my EV3. Any tips on what I'm doing wrong? What is the correct usage of the third argument (test) - what does it do?

Regards, Tarjei

JakubVanek commented 3 years ago

Hi!

I originally planned to implement uploading as well, but so far I only implemented packing & unpacking. pack should create a UF2 archive from a specified set of files, unpack should extract files from a UF2 archive.

Currently there are two ways of uploading a UF2 file:

It should be possible to build uf2 uploading into ev3duder. However, I think some refactoring may be needed to prevent code duplication. I don't currently have much free time, but I'll try to look into that in the coming months.

With regards, Jakub

tarjei commented 3 years ago

@JakubVanek thanks!

At least now I got some pointers to where I should start :)