传说中让ST中高端单片机寸草不生的NXP RT1052/RT105x:
资料下载链接随时可能失效,请加Q群 544762792下载
1. 买野火的板子: 野火秉火 RT1052核心板 开发板学习板 IO全部引出 M7内核600M频率
核心板原理图: 野火i.MX RT1052-Mini核心板原理图_180308.pdf
机械尺寸1: i.MXRT1052顶层标注.pdf
机械尺寸2: i.MXRT1052底层标注.pdf
下载野火开发板资料: https://pan.baidu.com/s/1qZVR7oo
2. 购买DAP或者JLINK V9仿真器, 我用的是JLINK V9仿真器, 购买前先问清楚是不是能自动升级的!.
jlink连接方式:
jlink ---- 野火
4 ----------3
7-----------4
9-----------2
15----------1
3. 加入Q群544762792下载NXP官方SDK SDK_2.3.0_EVK-MIMXRT1050.zip, 解压缩.
4. 下载 MDK5.24A 或者 mdk524a.exe
5. 用keil 5.24 打开SDK里面其中一个项目 rt105x_sdk_2.3.0\boards\evkmimxrt1050\driver_examples\pxp\scale
设置调试为JLINK:
/* Back light. */
#define LCD_BL_GPIO GPIO2
#define LCD_BL_GPIO_PIN 30
调试器为JLINK,
修改为
/* Back light. */
#define LCD_BL_GPIO GPIO1
#define LCD_BL_GPIO_PIN 15
适配野火RT1052开发板的LCD背光控制IO口。
官方开发板和SDK屏幕为4.3寸的480*272分辨率, 野火开发板是5寸的800*480分辨率,
如果不想看到官方SDK在野火开发板上显示奇奇怪怪的话,可以换上480*272的液晶屏:
5. 占位
离线
*** Using Compiler 'V5.06 update 5 (build 528)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'sdram_debug'
assembling startup_MIMXRT1052.s...
compiling system_MIMXRT1052.c...
compiling fsl_clock.c...
compiling fsl_common.c...
compiling fsl_lpuart.c...
compiling fsl_gpio.c...
compiling fsl_semc.c...
compiling fsl_elcdif.c...
compiling fsl_pxp.c...
compiling fsl_io.c...
compiling fsl_log.c...
compiling fsl_str.c...
compiling fsl_debug_console.c...
compiling fsl_assert.c...
compiling board.c...
compiling clock_config.c...
..\..\User\BSP\clock_config.c(54): warning: #177-D: function "BOARD_BootClockGate" was declared but never referenced
static void BOARD_BootClockGate(void)
..\..\User\BSP\clock_config.c: 1 warning, 0 errors
compiling pin_mux.c...
compiling main.c...
..\..\User\main.c(62): warning: #550-D: variable "err_in_test" was set but never used
int32_t err_in_test = 0;
..\..\User\main.c: 1 warning, 0 errors
compiling sdram.c...
compiling lcd.c...
compiling bsp_led.c...
linking...
..\..\Output\test.axf: Error: L6220E: Execution region RW_m_ncache size (3302400 bytes) exceeds limit (2097152 bytes). Region contains 0 bytes of padding and 0 bytes of veneers (total 0 bytes of linker generated content).
Finished: 0 information, 0 warning and 1 error messages.
"..\..\Output\test.axf" - 1 Error(s), 2 Warning(s).
Target not created.
Build Time Elapsed: 00:00:14
链接出错...
查找问题中
离线
***********************************************************
CPU: 600000000 Hz
AHB: 600000000 Hz
SEMC: 163862064 Hz
SYSPLL: 528000000 Hz
SYSPLLPFD0: 0 Hz
SYSPLLPFD1: 0 Hz
SYSPLLPFD2: 327724128 Hz
SYSPLLPFD3: 0 Hz+---------------------------------------------+
+ Doing SDRAM Tests +
+---------------------------------------------+========== Doing SDRAM RW Tests ===========
==>> Writing seed data to SDRAM
==>> Verifying seed data on SDRAM
========== SDRAM Tests Done Successfully ===========触摸屏测试.
<<-GTP-INFO->> test[0]=0x80 test[1]=0x47
<<-GTP-INFO->> IC2 Version: 9157_1040
<<-GTP-INFO->> X_MAX = 800, Y_MAX = 480, TRIGGER = 0x00
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [293]ID:0, X:7, Y:11, W:7
<<-GTP-DEBUG->> [337]Touch id[ 0] release!
电容触摸屏demo全速跑正常,
上面的sdram demo是我修改了m_ncache_size导致???
离线