How to load FW with MicroPython into RedBear Duo?


#1

It is not clear to me how to do it… Please let me know some hit…


#2

Hi @profra,

  1. Update the system firmware to v0.2.4 if needed:

    1. download the system images here.
    2. upload them to Duo using dfu-util:
      dfu-util -d 2b04:d058 -a 0 -s 0x8020000 -D duo-system-part1-v0.2.4.bin
      dfu-util -d 2b04:d058 -a 0 -s 0x8040000 -D duo-system-part2-v0.2.4.bin
  2. Download Python interpreter firmware for Duo here.

  3. Upload the interpreter to Duo using dfu-util:
    dfu-util -d 2b04:d058 -a 0 -s 0x80C0000 -D micropython_duo_firmware_v1.0.0.bin

Cheers!


#3

Hi @guohui Success!!! Thanks!!! I will do some tests during next days, I will come back with results.
I noticed that floating point math was not implemented … is it planned for the next release or not at all?


#4

The core MCU is cortext-M3, which is without hardware floating functionality.


#5

I know but some SW math library would be useful… any plans?


#6

I would like to mark this post first and try implementing it in the next or later release as we can.


#7

Hi @guohui,

After FW uploading, how to upload the python script to RedBear Duo
Still I did not upload the FW also because I want to backup the current FW

Thanks