3143 views|0 replies

1w

Posts

25

Resources
The OP
 

Latest K210 firmware (Loboris version) [Copy link]

 This is the version provided by foreign netizen Loboris. Functions such as gc, copy and paste mode, and utime are all normal, and other peripheral functions are being added. Firmware Description: https://loboris.eu/forum/showthread.php?tid=877 Firmware Download: https://github.com/loboris/MicroPython_K210_LoBo/blob/master/firmware/MaixPy.bin
  1. I (188995) w25qxx_init: manuf_id:0xc8, device_id:0x17 __ __ _____ __ __ _____ __ __ | \/ | /\ |_ _| \ \ / / | __ \ \ \ / / | \ / | / \ | | \ V / | |__) | \ \_/ / | |\/| | / /\ \ | | > < | ___/ \ / | | | | / ____ \ _| |_ / . \ | | | |_| |_| /_/ \_\ |_____| /_/ \_\ |_| |_| --------------------------------------------------------- I (228135) [MAIXPY]: Stack: min: 8065 I (232617) [MAIXPY]: Pll0: freq: 780000000 I (237391) [MAIXPY]: Pll1: freq: 159714285 I (242165) [MAIXPY]: Cpu: freq: 390000000 I (246938) [MAIXPY]: Flash: ID: [0xc8:0x17] I (535090) [VFS_SPIFFS]: Flash VFS registered. MaixPy-FreeRTOS by LoBo v1.0.1 ------------------------------- MicroPython 76eeec7-dirty on 2019-01-24; Sipeed_board with Kendryte-K210 Type "help()" for more information. >>> >>> >>> help('modules') __main__ gc ucollections urandom _thread machine ucryptolib ure array math uctypes ustruct binascii micropython uerrno utime board os uhashlib utimeq builtins pye uheapq uzlib cmath re uio websocket collections sys ujson ymodem display ubinascii uos Plus any modules on the filesystem >>> >>> import machine, uos, utime, _thread >>> def test(): ... cnt = 0 ... machine.initleds() ... while 1: ... machine.setled(machine.LEDR, False) ... machine.setled(machine.LEDB, False) ... if (cnt % 2): ... machine.setled(machine.LEDR, True) ... else: ... machine.setled(machine.LEDB, True) ... cnt += 1 ... utime.sleep_ms(500) ... >>> >>> th = _thread.start_new_thread("TestLED", test, ()) >>> _thread.list() Total system run time: 880.221 s, Tasks run time: 880.221 s, numTasks=5 MicroPython threads: ------------------------------------------------------------------------------------------------ ID(handle) Proc Name State Stack MaxUsed PyStack Type Priority Run time (s) (%) ---------------------------------------------------------------------------------------------------------------- 2148287848 0 TestLED running 16016 1232 2048 PYTHON 8 0.354 0.04
  2. 2148402616    0       MainThread   running  31600    1256    4096    MAIN        8        4.000  0.45
  3. FreeRTOS tasks running:
  4. -------------------------------------------------------------------------------
  5. ID(handle) Proc             Name     State MinStack Priority Run time (s)   (%)
  6. -------------------------------------------------------------------------------
  7. 2148402616    0          mp_task   Running    30344       15        4.000  0.45
  8. 2148287848    0          TestLED     Ready    14784        8        0.354  0.04
  9. 2148355008    0             IDLE     Ready     7320        0      875.613 99.48
  10. 2148357096    1             IDLE     Ready     7416        0      880.183100.00
  11. 2148367744    1    hal_tick_task   Blocked     7432        0        0.008  0.00
  12. >>>
  13. >>>
  14. >>>
  15. >>> sd = uos.VfsSDCard()
  16. >>> uos.mount(sd, '/sd')
  17. >>> uos.listdir('/sd')
  18. ['test1.avi', 'test.txt', 'test1.txt', 'Picture', 'Video', 'Audio', 'VideoCall', 'Money.wav', 'Wall1.raw', 'TEST_F~1.TXT', 'test_syscalls.tx
  19. t', 'test_filesystem.txt']
  20. >>>
  21. >>> uos.statvfs('/sd')
  22. (4096, 4096, 1936436, 1925131, 1925131, 0, 0, 0, 0, 255)
  23. >>>
  24. >>> import display
  25. >>> tft = display.TFT()
  26. >>> tft.init(0)
  27. >>> tft.circle(160,120,80,tft.RED,tft.BLUE)
  28. >>> tft.image(0,0,'/flash/test1.jpg')
  29. >>>
  30. >>> import micropython, gc
  31. >>> gc.collect()
  32. >>> micropython.mem_info()
  33. mem: total=37414, current=5122, peak=6688
  34. stack: 1004
  35. GC: total: 3121280, used: 1504, free: 3119776
  36. No. of 1-blocks: 25, 2-blocks: 4, max blk sz: 6, max free sz: 97351
  37. >>>
复制代码
1925131, 1925131, 0, 0, 0, 0, 255)
>>>
>>> import display
>>> tft = display.TFT()
>>> tft.init(0)
>>> tft.circle(160,120,80,tft.RED,tft.BLUE)
>>> tft.image(0,0,'/flash/test1.jpg')
>>>
>>> import micropython, gc
>>> gc.collect()
>>> micropython.mem_info()
mem: total=37414, current=5122, peak=6688
stack: 1004
GC: total: 3121280, used: 1504, free: 3119776
No. of 1-blocks: 25, 2-blocks: 4, max blk sz: 6, max free sz: 97351
>>>
[/code]1925131, 1925131, 0, 0, 0, 0, 255)
>>>
>>> import display
>>> tft = display.TFT()
>>> tft.init(0)
>>> tft.circle(160,120,80,tft.RED,tft.BLUE)
>>> tft.image(0,0,'/flash/test1.jpg')
>>>
>>> import micropython, gc
>>> gc.collect()
>>> micropython.mem_info()
mem: total=37414, current=5122, peak=6688
stack: 1004
GC: total: 3121280, used: 1504, free: 3119776
No. of 1-blocks: 25, 2-blocks: 4, max blk sz: 6, max free sz: 97351
>>>
[/code]



 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list