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

Possible bug lcd.draw_string #73

Closed thepian closed 4 years ago

thepian commented 5 years ago

I see some odd effects when trying to draw to LCD

>>> status.show_hello()
>>> import lcd
>>> lcd.draw_string(50,120, "Hello, my name is Talki!", lcd.WHITE, lcd.RED)
>>> lcd.draw_string(50,120, "Hello, my...name is Talki!", lcd.WHITE, lcd.RED)
>>> lcd.draw_string(50,120, "Hello, my...name is Talki!", lcd.WHITE, lcd.GREEN)
core dump: misaligned load
Cause 0x0000000000000004, EPC 0x00000000800952ac
reg[00](zero ) = 0x0000000000000000, reg[01](ra   ) = 0x00000000800951ee
reg[02](sp   ) = 0x000000008022fbf0, reg[03](gp   ) = 0x0000000080113c88
reg[04](tp   ) = 0x0000000000000000, reg[05](t0   ) = 0x0000000080230808
reg[06](t1   ) = 0x0000000000000000, reg[07](t2   ) = 0x0000000000000001
reg[08](s0/fp) = 0x00000000000000b0, reg[09](s1   ) = 0x0000000080112258
reg[10](a0   ) = 0x0000000000000000, reg[11](a1   ) = 0x000000008022ad68
reg[12](a2   ) = 0xffffffffffffffff, reg[13](a3   ) = 0x00000000000000a0
reg[14](a4   ) = 0xe007e007e007e007, reg[15](a5   ) = 0x0000000080228558
reg[16](a6   ) = 0x0000000000000000, reg[17](a7   ) = 0xffffffffe007ffff
reg[18](s2   ) = 0x0000000000000000, reg[19](s3   ) = 0x00000000802284b8
reg[20](s4   ) = 0x0000000000000004, reg[21](s5   ) = 0x0000000000000000
reg[22](s6   ) = 0x00000000802284b8, reg[23](s7   ) = 0x0000000000000b9a
reg[24](s8   ) = 0x00000000801122b8, reg[25](s9   ) = 0x0000000000000028
reg[26](s10  ) = 0x000000008010c7c8, reg[27](s11  ) = 0x000000008010c6c8
reg[28](t3   ) = 0x000000008022ba68, reg[29](t4   ) = 0x0000000000000003
reg[30](t5   ) = 0x0000000080109da8, reg[31](t6   ) = 0x0000000000000002
freg[00](ft0 ) = 0x0000000000000000(), freg[00]() = 0x000000008010ce28()
freg[02](ft2 ) = 0x0000000000000000(), freg[00]() = 0x000000008010ce38()
freg[04](ft4 ) = 0x0000000000000000(), freg[00]() = 0x000000008010ce48()
freg[06](ft6 ) = 0x0000000000000000(), freg[00]() = 0x000000008010ce58()
freg[08](fs0 ) = 0x0000000000000000(), freg[00]() = 0x000000008010ce80()
freg[10](fa0 ) = 0x0000000000000000(), freg[00]() = 0x000000008010ceb0()
freg[12](fa2 ) = 0x0000000000000000(), freg[00]() = 0x000000008010ced8()
freg[14](fa4 ) = 0x0000000000000000(), freg[00]() = 0x000000008010cee8()
freg[16](fa6 ) = 0x0000000000000000(), freg[00]() = 0x000000008010cef8()
freg[18](fs2 ) = 0xffffffff00000000(), freg[00]() = 0x000000008010cf20()
freg[20](fs4 ) = 0x0000100000000000(), freg[00]() = 0x000000008010cf30()
freg[22](fs6 ) = 0x0000000000000000(), freg[00]() = 0x000000008010cf40()
freg[24](fs8 ) = 0x0000000000000000(), freg[00]() = 0x000000008010cf50()
freg[26](fs10) = 0x0000000000000000(), freg[00]() = 0x000000008010cf60()
freg[28](ft8 ) = 0x0000000000000000(), freg[00]() = 0x000000008010cf88()
freg[30](ft10) = 0x0000000000000000(), freg[00]() = 0x000000008010cf98()
W (174602593988) SYSCALL: sys_exit called by core 0 with 0x539
Neutree commented 4 years ago

may fixed in latest master branch, but we can keep on pay attention to this bug, close this issue, if bug remains exists, reopen or create new one