sipeed / MaixPy-v1

MicroPython for K210 RISC-V, let's play with edge AI easier
https://wiki.sipeed.com/maixpy
Other
1.68k stars 439 forks source link

master branch is broken #149

Closed chegewara closed 5 years ago

chegewara commented 5 years ago

Here is what i get after building and flashing master branch:

[MAIXPY]Pll0:freq:832000000
[MAIXPY]Pll1:freq:398666666
[MAIXPY]Pll2:freq:45066666
[MAIXPY]cpu:freq:416000000
[MAIXPY]kpu:freq:398666666
[MAIXPY]Flash:0xc8:0x17
open second core...
gc heap=0x801700e0-0x801f00e0
[MaixPy] init end
Traceback (most recent call last):
  File "_boot.py", line 17, in <module>
NameError: name 'time' isn't defined
MicroPython v0.4.0-39-g083e0cca5-dirty on 2019-08-16; Sipeed_M1 with kendryte-k210
Type "help()" for more information.
>>> 
__class__       __name__        os              sys
devices         i
>>> 

If i build and flash from my repository, which is about 2 week behind, it works. EDIT: this is the reason why its dirty:

root@sipeed-k210_build1:/maixpy/MaixPy3/projects/maixpy_k210# git show
commit 083e0cca56b04b60400a356841db76249101f4dc (HEAD -> master, origin/master, origin/HEAD)
Merge: 79d2e4e09 8394fd73a
Author: Neucrack <8625829+Neutree@users.noreply.github.com>
Date:   Tue Aug 13 15:35:42 2019 +0800

    Merge pull request #147 from MarsTechHAN/master

    Fix SD card stability issues during low battery on M5StickV

root@sipeed-k210_build1:/maixpy/MaixPy3/projects/maixpy_k210# git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)
  (commit or discard the untracked or modified content in submodules)

    modified:   ../../tools/kconfig/Kconfiglib (untracked content)
chegewara commented 5 years ago

Looks like this commit did this: https://github.com/sipeed/MaixPy/commit/8394fd73aa02c251199b9843a00c50aeb45ea163 Reverting _boot.py solved problem.

Neutree commented 5 years ago

fixed: https://github.com/sipeed/MaixPy/commit/95f00f0cabdcddbeac3fd6562dc8af481f7eaf6b

chegewara commented 5 years ago

Thanks @Neutree