页次: 1
i2c 有 i2c-utils
电压3V3正常,新的STM8L芯片默认用内部晶振, 应该没有写保护。
交换RST, SWIM引脚之后的错误是这样:
Tue Jun 19, 2018 20:51:12: Failed to set configuration with MCU name STM8L152K4: SWIM error [30006]: Comm init error: chip does not answer
不交换是这样:
Tue Jun 19, 2018 20:51:28: Errors while setting configuration with MCU name STM8L152K4: gdi-error [40409]: No answer from the SWIM: check chip connections and power supply; try a power on reset
看起来和电路有关系。
公司新做的 STM8L151C8T6 板子, IAR调试出现这个问题:
Tue Jun 12, 2018 15:09:57: C-SPY Processor Descriptor V2.10.5.161 for STM8
Tue Jun 12, 2018 15:09:57: C-SPY Debugger Driver, ST-LINK V2.10.5.161 for STM8
Tue Jun 12, 2018 15:09:57: Errors while setting configuration with MCU name STM8L152K4: gdi-error [40409]: No answer from the SWIM: check chip connections and power supply; try a power on reset
stlink是正常的,可以连上开发板。
http://www.skylab.com.cn/productview-88-gpsmokuai_skg08a.html
也有网友推荐这个 SKG08A
但是淘宝习惯性一搜,毛都没一条。
uint8_t buffer = 0xFF;
fpRAM = fopen("x.bin", "w+");
fseek(fpRAM, 0, SEEK_SET);
fwrite(&buffer, 1024, 10240, fpRAM);
> ucrtbased.dll!write_text_ansi_nolock(const int fh, const char * const buffer, const unsigned int buffer_size) 行 310 C++
ucrtbased.dll!_write_nolock(int fh, const void * buffer, unsigned int buffer_size) 行 576 C++
ucrtbased.dll!_write(int fh, const void * buffer, unsigned int size) 行 63 C++
ucrtbased.dll!_fwrite_nolock(const void * buffer, unsigned __int64 element_size, unsigned __int64 element_count, _iobuf * public_stream) 行 117 C++
ucrtbased.dll!fwrite::__l9::<lambda>() 行 39 C++
ucrtbased.dll!__crt_seh_guarded_call<unsigned __int64>::operator()<void <lambda>(void),unsigned __int64 <lambda>(void) & __ptr64,void <lambda>(void) >(__acrt_lock_stream_and_call::__l3::void <lambda>(void) && setup, fwrite::__l9::unsigned __int64 <lambda>(void) & action, __acrt_lock_stream_and_call::__l4::void <lambda>(void) && cleanup) 行 199 C++
ucrtbased.dll!__acrt_lock_stream_and_call<unsigned __int64 <lambda>(void) >(_iobuf * const stream, fwrite::__l9::unsigned __int64 <lambda>(void) && action) 行 256 C++
ucrtbased.dll!fwrite(const void * buffer, unsigned __int64 size, unsigned __int64 count, _iobuf * stream) 行 41 C++
littlefs.exe!init(...) 行 27 C
littlefs.exe!main() 行 32 C
[外部代码]
一行简单的fwrite代码在VC2015下面出错,请问是怎么回事
[ 12.816000] SQUASHFS error: Unable to read page, block 19a7b2, size 11398
[ 12.832000] SQUASHFS error: Unable to read fragment cache entry [19a7b2]
[ 12.848000] SQUASHFS error: Unable to read page, block 19a7b2, size 11398
[ 12.940000] SQUASHFS error: Unable to read fragment cache entry [19a7b2]
启动这些错误,大家碰到过么?
AXP203手册下载: Allwinner_AXP203_Datasheet_V1_0.pdf
1. git clone https://github.com/widora/openwrt_widora.git
$ cd openwrt_widora
$ ./scripts/feeds update -a
$ ./scripts/feeds install -a
2. 更新Ubuntu软件包
sudo apt-get install libncurses-dev
sudo apt-get install libz-dev
sudo apt-get install libssl-dev
sudo apt-get install subversion
3. 配置
$ make menuconfig select the target:
Target System(Ralink RT288x/RT3xxx) --->
Subtarget(MT7688 based board) --->
Target Profile(Widora) --->
4.编译
$ make -j4
5. image烧录文件
the binary image name like this in bin/ramips/: openwrt-ramips-mt7688-Widora-squashfs-sysupgrade.bin
我把动作拆解了一下:
下面这句从spi flash load数据要9.2秒, 其中设置spi频率12,24,96Mhz根本没有什么作用:
sf probe 0 12000000; sf read 0x41800000 0x100000 0x10000; sf read 0x41000000 0x110000 0x600000;
下面这个bootz需要 8.2秒:
bootz 0x41000000 - 0x41800000
bootz 0x41000000 - 0x41800000
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42dfa000, end 42dffd0c ... OKStarting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
1. 域名重定向, http://www.whycan.cn/ 定向到 https://whycan.cn/
2. 首页显示所有帖子,虽然还有bug, 但是基本能用了。
辛苦了我的晕哥
页次: 1