MaixPy-v1 icon indicating copy to clipboard operation
MaixPy-v1 copied to clipboard

main.py/boot.py not running on boot

Open JustinOng opened this issue 3 years ago • 0 comments

Describe the bug Latest dev build seems to have broken running of main.py and boot.py on boot

To Reproduce Steps to reproduce the behavior:

  1. Flash
  2. Create main.py and boot.py:
f=open("boot.py", "w");f.write("print('BOOT')");f.close()
f=open("main.py", "w");f.write("print('MAIN')");f.close()
  1. Reset

Expected behavior MAIN and BOOT should have been printed. On maixpy_v0.6.2_75_g973361c0d:

[MAIXPY] Pll0:freq:806000000
[MAIXPY] Pll1:freq:398666666
[MAIXPY] Pll2:freq:45066666
[MAIXPY] cpu:freq:403000000
[MAIXPY] kpu:freq:398666666
[MAIXPY] Flash:0xc8:0x17
[MaixPy] gc heap=0x802ffd80-0x8037fd80(524288)
[MaixPy] init end

 __  __              _____  __   __  _____   __     __
|  \/  |     /\     |_   _| \ \ / / |  __ \  \ \   / /
| \  / |    /  \      | |    \ V /  | |__) |  \ \_/ /
| |\/| |   / /\ \     | |     > <   |  ___/    \   /
| |  | |  / ____ \   _| |_   / . \  | |         | |
|_|  |_| /_/    \_\ |_____| /_/ \_\ |_|         |_|

Official Site : https://www.sipeed.com
Wiki          : https://maixpy.sipeed.com

BOOT
MAIN
MicroPython v0.6.2-75-g973361c0d on 2022-04-16; Sipeed_M1 with kendryte-k210
Type "help()" for more information.
>>>

Actual behaviour

[MAIXPY] Pll0:freq:806000000
[MAIXPY] Pll1:freq:398666666
[MAIXPY] Pll2:freq:45066666
[MAIXPY] cpu:freq:403000000
[MAIXPY] kpu:freq:398666666
[MAIXPY] Flash:0xc8:0x17
[MaixPy] gc heap=0x802ffd80-0x8037fd80(524288)
[MaixPy] init end

 __  __              _____  __   __  _____   __     __
|  \/  |     /\     |_   _| \ \ / / |  __ \  \ \   / /
| \  / |    /  \      | |    \ V /  | |__) |  \ \_/ /
| |\/| |   / /\ \     | |     > <   |  ___/    \   /
| |  | |  / ____ \   _| |_   / . \  | |         | |
|_|  |_| /_/    \_\ |_____| /_/ \_\ |_|         |_|

Official Site : https://www.sipeed.com
Wiki          : https://maixpy.sipeed.com

MicroPython v0.6.2-77-g11806960d on 2022-04-21; Sipeed_M1 with kendryte-k210
Type "help()" for more information.
>>>

Please complete the following information

  • IDE version: NA
  • Firmware version: v0.6.2-77-g11806960d
  • Board: Maix Bit
  • OS: Windows

JustinOng avatar Apr 26 '22 11:04 JustinOng