chalei / mask-detector

an AI based mask detection using Sipeed Maix bit and maixhub platform
2 stars 1 forks source link

core dump: misaligned load #1

Open siliconbase opened 4 years ago

siliconbase commented 4 years ago

Hi,

we're using the code on Maix Go but we could not run it. The screen is stuck on model loading and when we connect to terminal we see:

`[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=0x80132c60-0x801b2c60(524288)
[MaixPy] init end

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

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

init i2c2

[MAIXPY]: find ov2640
encrypted model
core dump: misaligned load
Cause 0x0000000000000004, EPC 0x0000000080065406
reg[00](zero ) = 0x00000000803e3370, reg[01](ra   ) = 0x0000000080061446
reg[02](sp   ) = 0x0000000080118620, reg[03](gp   ) = 0x00000000800f66e8
reg[04](tp   ) = 0x0000000080111040, reg[05](t0   ) = 0x0000000000000003
reg[06](t1   ) = 0x0000000080064e24, reg[07](t2   ) = 0x000000000000001d
reg[08](s0/fp) = 0xb597ffafddf9ffbb, reg[09](s1   ) = 0x0000000080402ad0
reg[10](a0   ) = 0x0000000080402ad0, reg[11](a1   ) = 0x00000000800f9fe8
reg[12](a2   ) = 0x0000000000000400, reg[13](a3   ) = 0x00000000800fb1e0
reg[14](a4   ) = 0xffffffffffffffff, reg[15](a5   ) = 0x00000000023e9100
reg[16](a6   ) = 0x0000000000000000, reg[17](a7   ) = 0x00000000000000e6
reg[18](s2   ) = 0x000000008010ec68, reg[19](s3   ) = 0x00000000802374d0
reg[20](s4   ) = 0x0000000000000000, reg[21](s5   ) = 0x0000000080137b88
reg[22](s6   ) = 0x0000000080237500, reg[23](s7   ) = 0x0000000000000001
reg[24](s8   ) = 0x0000000000002713, reg[25](s9   ) = 0x0000000000000000
reg[26](s10  ) = 0x0000000000000000, reg[27](s11  ) = 0x0000000000000000
reg[28](t3   ) = 0x00000000800f4b38, reg[29](t4   ) = 0x00000000800f48f0
reg[30](t5   ) = 0x00000000800f49b8, reg[31](t6   ) = 0x00000000800611c6
freg[00](ft0 ) = 0x0000000000000000(), freg[00]() = 0x00000000800b1c10()
freg[02](ft2 ) = 0x0000000000000000(), freg[00]() = 0x00000000800b1c20()
freg[04](ft4 ) = 0x0000000000000000(), freg[00]() = 0x00000000800b1c30()
freg[06](ft6 ) = 0x0000000000000000(), freg[00]() = 0x00000000800b1c40()
freg[08](fs0 ) = 0x0000000000000000(), freg[00]() = 0x00000000800b1c68()
freg[10](fa0 ) = 0x40000000408aaaab(), freg[00]() = 0x00000000800b1c98()
freg[12](fa2 ) = 0x0000000000000000(), freg[00]() = 0x00000000800b1cc0()
freg[14](fa4 ) = 0x000000004bb71b00(), freg[-1073741824]() = 0x00000000800b1cd0()
freg[16](fa6 ) = 0x0000000000000000(), freg[00]() = 0x00000000800b1ce0()
freg[18](fs2 ) = 0x0000000000000000(), freg[00]() = 0x00000000800b1d08()
freg[20](fs4 ) = 0x0000000000000000(), freg[00]() = 0x00000000800b1d18()
freg[22](fs6 ) = 0x0000000000000000(), freg[00]() = 0x00000000800b1d28()
freg[24](fs8 ) = 0x0000000000000000(), freg[00]() = 0x00000000800b1d38()
freg[26](fs10) = 0x001cb4d000000000(), freg[00]() = 0x00000000800b1d48()
freg[28](ft8 ) = 0x0000000000000000(), freg[00]() = 0x00000000800b1d70()
freg[30](ft10) = 0x0000000000000000(), freg[00]() = 0x00000000800b1d80()
W (2223838313) SYSCALL: sys_exit called by core 0 with 0x539`

help appreciated Bora

Steve246 commented 3 years ago

Hi I managed to bypass the issue by gaining the dataset via flash so change this line task = kpu.load('/sd/29b214e0414404fec7c703d750db4c7f_292e7639e125b81b8e0051e549f165f8.smodel') into this task = kpu.load(0x300000)