Open zouzhe1 opened 3 years ago
找到问题了,在libraries - touchgfx_lib - TouchGFX - target - STM32TouchController.cpp
把x = 800 - read_data[0].x_coordinate; y = 480 - read_data[0].y_coordinate;
修改位
x = read_data[0].x_coordinate; y = read_data[0].y_coordinate;
即可正常用keil下载。
但是我又遇到了rtt stdio下载还是一样的问题没解决。
@Aladdin-Wang 我是用RTT STDIO,按照你的教程bsp是1.1.0,都是用最新的包。使用的LED的模板 屏幕用的是原子800*480同配置的,触摸芯片也是9147. 显示可以显示图,但是不能动,不能数模,图里面没有曲线。
如附录文件所示;
终端显示出错的问题如下: `[D/drv.sdram] sdram init success, mapped at 0xC0000000, size is 33554432 bytes, data width is 16 [I/I2C] I2C bus [i2c1] registered
\ | /
id = 9 1 4 7 range_x = 801 range_y = 481 point_num = 10 msh />psr: 0x00000000 r00: 0x0000000a r01: 0x00000080 r02: 0x000000ff r03: 0x0000000a r04: 0x9000d3e5 r05: 0x240055d0 r06: 0x00000001 r07: 0x00000000 r08: 0xdeadbeef r09: 0xdeadbeef r10: 0xdeadbeef r11: 0xdeadbeef r12: 0x00000000 lr: 0x900019d7 pc: 0x00000000 hard fault on thread: TouchGFX
thread pri status sp stack size max used left tick error
TouchGFX 15 running 0x000000d0 0x00002000 21% 0x0000000f 000 tshell 20 suspend 0x00000188 0x00001000 09% 0x00000009 000 tidle0 31 ready 0x00000060 0x00000100 53% 0x0000000d 000 timer 4 suspend 0x0000007c 0x00000200 24% 0x00000009 000 main 10 suspend 0x000000c0 0x00000800 25% 0x0000000c 000 usage fault: SCB_CFSR_UFSR:0x02 INVSTATE`