kendryte / kendryte-standalone-demo

Demo of kendryte k210 standalone SDK
https://github.com/kendryte/kendryte-standalone-sdk
229 stars 97 forks source link

A problem with dvp_ov #5

Closed JYChenNK closed 5 years ago

JYChenNK commented 6 years ago

Hello, I want to transplant tihs demo on Sipeed M1, but meet some problems. By changing the pin number I successfully transplant the lcd demo . But when I try the dvp_ov demo, it failed at the function ov5640_init( ), which print the device ID is 0xFFFF. where else should I modify? The pin number I change is fpioa_set_function(42, FUNC_CMOS_RST); fpioa_set_function(44, FUNC_CMOS_PWDN); fpioa_set_function(46, FUNC_CMOS_XCLK); fpioa_set_function(43, FUNC_CMOS_VSYNC); fpioa_set_function(45, FUNC_CMOS_HREF); fpioa_set_function(47, FUNC_CMOS_PCLK); fpioa_set_function(41, FUNC_SCCB_SCLK); fpioa_set_function(40, FUNC_SCCB_SDA); fpioa_set_function(38, FUNC_GPIOHS0 + DCX_GPIONUM); fpioa_set_function(36, FUNC_SPI0_SS3); fpioa_set_function(39, FUNC_SPI0_SCLK);

vowstar commented 6 years ago

Are you using OV5640 camera?

zzxcanaan commented 6 years ago

Do you use the green board? please set sysctl_set_power_mode(SYSCTL_POWER_BANK6, SYSCTL_POWER_V18); sysctl_set_power_mode(SYSCTL_POWER_BANK7, SYSCTL_POWER_V18);

JYChenNK commented 5 years ago

Sorry, I want to build this for Spieed M1, because I want to use KPU demo for YOLO. I try some modification, the lcd demo is ok, but the dvp_ov demo didn't work(I try the ov2640.c and ov2640.h).It return error meaaage like this:

core dump: unhandled interrupt
Cause 0x800000000000000b, EPC 0x000000008000d8ce
reg[00](zero ) = 0x0000000080010888, reg[01](ra   ) = 0x00000000800079cc
reg[02](sp   ) = 0x000000008007c9d0, reg[03](gp   ) = 0x0000000080011bb0
reg[04](tp   ) = 0x000000008005cd80, reg[05](t0   ) = 0x0000000000000000
reg[06](t1   ) = 0x000e000900000000, reg[07](t2   ) = 0x000000008000f80c
reg[08](s0/fp) = 0x00000000800102a0, reg[09](s1   ) = 0x00000000800102a0
reg[10](a0   ) = 0x0000000000000006, reg[11](a1   ) = 0x000000008009cd90
reg[12](a2   ) = 0x0000000000000006, reg[13](a3   ) = 0x0000000000000000
reg[14](a4   ) = 0x0000000000000000, reg[15](a5   ) = 0x0000000000000000
reg[16](a6   ) = 0x0000000000000008, reg[17](a7   ) = 0x0000000000000040
reg[18](s2   ) = 0x0000000000000006, reg[19](s3   ) = 0x000000008009cd90
reg[20](s4   ) = 0x000000008007ccb8, reg[21](s5   ) = 0x0000000000000000
reg[22](s6   ) = 0x0000000000000001, reg[23](s7   ) = 0x000000008000f680
reg[24](s8   ) = 0x0000000000000001, reg[25](s9   ) = 0x0000000000000000
reg[26](s10  ) = 0x0000000000000000, reg[27](s11  ) = 0x0000000000000000
reg[28](t3   ) = 0x0000000000000011, reg[29](t4   ) = 0x0000000050000000
reg[30](t5   ) = 0x0000000000000000, reg[31](t6   ) = 0x0000000000000000
freg[00](ft0 ) = 0x0000000000000000(), freg[00]() = 0x000000008000ec80()
freg[02](ft2 ) = 0x0000000000000000(), freg[00]() = 0x000000008000ec90()
freg[04](ft4 ) = 0x0000000000000000(), freg[00]() = 0x000000008000eca0()
freg[06](ft6 ) = 0x0000000000000000(), freg[00]() = 0x000000008000ecb0()
freg[08](fs0 ) = 0x0000000000000000(), freg[00]() = 0x000000008000ecd8()
freg[10](fa0 ) = 0x4024000000000000(), freg[00]() = 0x000000008000ed08()
freg[12](fa2 ) = 0x41d0a8d4e0000000(), freg[1073741824]() = 0x000000008000ed30()
freg[14](fa4 ) = 0x41d1d260c0000000(), freg[-1610612736]() = 0x000000008000ed40()
freg[16](fa6 ) = 0x0000000000000000(), freg[00]() = 0x000000008000ed50()
freg[18](fs2 ) = 0x0000000000000000(), freg[00]() = 0x000000008000ed78()
freg[20](fs4 ) = 0x0000000000000000(), freg[00]() = 0x000000008000ed88()
freg[22](fs6 ) = 0x0000000000000000(), freg[00]() = 0x000000008000ed98()
freg[24](fs8 ) = 0x0000000000000000(), freg[00]() = 0x000000008000eda8()
freg[26](fs10) = 0x0000000000000000(), freg[00]() = 0x000000008000edb8()
freg[28](ft8 ) = 0x0000000000000000(), freg[00]() = 0x000000008000ede0()
freg[30](ft10) = 0x0000000000000000(), freg[00]() = 0x000000008000edf0()
W (238004118) SYSCALL: sys_exit called by core 0 with 0x539


And it seems didn't go into the inturrupt, what may be worry?

JYChenNK commented 5 years ago

Thanks a lot, I have made it.

noahzhy commented 4 years ago

Thanks a lot, I have made it.

How did you deal with that SYSCALL: sys_exit called by core 0 with 0x539 ?