前面好多人都在问极海AMP32F107是否可以用RT-Thread Studio创建工程。下面给大家介绍如何用RT-Thread Studio创建工程1、打开RT-Thread Studio,先更新SDK,下载APM32F107的SDK包。
2、选择新建工程-创建新建RT-Thread工程:
3、编译工程:
07:22:37 **** Incremental Build of configuration Debug for project AMP32F107_DEMO ****
make -j12 all
linking...
arm-none-eabi-objcopy -O binary "rtthread.elf" "rtthread.bin"
arm-none-eabi-size --format=berkeley "rtthread.elf"
text data bss dec hex filename
50744 1580 3140 55464 d8a8 rtthread.elf
Used Size(B) Used Size(KB)
Flash: 52324 B 51.10 KB
RAM: 4720 B 4.61 KB
07:22:38 Build Finished. 0 errors, 0 warnings. (took 991ms)
下载到开发板:
ROMTbl[0] [url=home.php?mod=space&uid=72445]@[/url] E00FF000
ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB000 SCS
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
ROMTbl[0][4]: E0040000, CID: B105900D, PID: 003BB923 TPIU-Lite
ROMTbl[0][5]: E0041000, CID: B105900D, PID: 003BB924 ETM-M3
Cortex-M3 identified.
Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
PC = 08000354, CycleCnt = 00000000
R0 = 000018B6, R1 = 000018CF, R2 = 0000004F, R3 = 00000001
R4 = 0001193F, R5 = 00000047, R6 = 00000019, R7 = 000F4240
R8 = 20000368, R9 = 20001CB8, R10= 00000000, R11= 20000348
R12= 0800B91D
SP(R13)= 200014B0, MSP= 200014B0, PSP= 20001C44, R14(LR) = FFFFFFFF
XPSR = 01000000: APSR = nzcvq, EPSR = 01000000, IPSR = 000 (NoException)
CFBP = 00000000, CONTROL = 00, FAULTMASK = 00, BASEPRI = 00, PRIMASK = 00
FPU regs: FPU not enabled / not implemented on connected CPU.
Downloading file [D:\RT-ThreadStudio\workspace\AMP32F107_DEMO\Debug\rtthread.bin]...
J-Link: Flash download: Bank 0 @ 0x08000000: 1 range affected (53248 bytes)
J-Link: Flash download: Total: 2.247s (Prepare: 0.243s, Compare: 0.037s, Erase: 0.197s, Program & Verify: 1.653s, Restore: 0.114s)
J-Link: Flash download: Program & Verify speed: 31 KiB/s
O.K.
Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Script processing completed.
执行完毕, 耗时:27497ms.
打开串口终端,看到运行OK了:
总之,用RT-Thread studio创建工程、配置工程,非常方便。
|