打印
[活动专区]

【杰发科技AC7802x测评】-2- 开发环境搭建

[复制链接]
712|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
本帖最后由 南来之风 于 2023-5-29 11:26 编辑

本次开发环境使用的是基于Keil 礦Version V5.36.0,根据官方建议,MDK5 开发环境安装,建议使用 5.23 版本(除 5.30)及以上版本。MDK5 安装包可以从
keil 官网下载:https://www2.keil.com/mdk5/install


在开始新建基于固件库的 MDK5 工程之前,首先要安装好AutoChips AC7802x的板级支持包,http://www.autochips.com/jk/MCU1/info_225.aspx?pid=530&typeid=225




之后打开一个基于Keil的工程,配置下载工具:



在下载的过程中遇到了一个错误:



后来排查后发现是下载方法有误,Port那里应该设置为SW,之前的错误是由于设置成JTAG引起的。



正常烧录后,打开串口:JLink info:
------------
DLL: V7.22b, compiled Jun 17 2021 17:22:49
Firmware: J-Link V9 compiled May  7 2021 16:26:12
Hardware: V9.20
Feature(s) : GDB, RDI, FlashBP, FlashDL, JFlash

* JLink Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
* JLink Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
Error: Flash Download failed  -  Target DLL has been cancelled
Flash Load finished at 10:06:42
Load "M:\\AUTOCHIP\\AC7802x_Demo_V1.0.0_Study\\GPIO\\SampleCode\\01_GPIO_Basic\\Objects\\Demo.axf"
* JLink Info: Device "CORTEX-M0+" selected.
Set JLink Project File to "M:\AUTOCHIP\AC7802x_Demo_V1.0.0_Study\GPIO\SampleCode\01_GPIO_Basic\JLinkSettings.ini"
* JLink Info: Device "CORTEX-M0+" selected.

JLink info:
------------
DLL: V7.22b, compiled Jun 17 2021 17:22:49
Firmware: J-Link V9 compiled May  7 2021 16:26:12
Hardware: V9.20
Feature(s) : GDB, RDI, FlashBP, FlashDL, JFlash

* JLink Info: Found SW-DP with ID 0x0BC11477
* JLink Info: DPIDR: 0x0BC11477
* JLink Info: Scanning AP map to find all available APs
* JLink Info: AP[1]: Stopped AP scan as end of AP map has been reached
* JLink Info: AP[0]: AHB-AP (IDR: 0x04770031)
* JLink Info: Iterating through AP map to find AHB-AP to use
* JLink Info: AP[0]: Core found
* JLink Info: AP[0]: AHB-AP ROM base: 0xE00FF000
* JLink Info: CPUID register: 0x410CC601. Implementer code: 0x41 (ARM)
* JLink Info: Found Cortex-M0 r0p1, Little endian.
* JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots
* JLink Info: CoreSight components:
* JLink Info: ROMTbl[0] @ E00FF000
* JLink Info: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
* JLink Info: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
* JLink Info: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
ROMTableAddr = 0xE00FF000
* JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
* JLink Info: Reset: Reset device via AIRCR.SYSRESETREQ.

Target info:
------------
Device: AC78022MBQA
VTarget = 3.301V
State of Pins:
TCK: 0, TDI: 0, TDO: 0, TMS: 1, TRES: 1, TRST: 0
Hardware-Breakpoints: 4
Software-Breakpoints: 8192
Watchpoints:          2
JTAG speed: 4000 kHz

Erase Done.
Programming Done.
Verify OK.
Flash Load finished at 10:07:58
串口助手的输出:









使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

48

主题

250

帖子

2

粉丝