查看ASR650x的源代码
←
ASR650x
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
== OpenOCD == * https://github.com/cypresssemiconductorco/openocd * [https://www.cypress.com/file/495061/download Cypress OpenOCD CLI User Guide] '''STLink-V2:''' <source lang=bash> comcat@AI-Workstation MINGW32 ~/work/nodetao/toolchain/openocd-cypress (master) $ ./bin/openocd.exe -s ./scripts -f interface/stlink.cfg -c "source [find target/psoc4.cfg]; targets; shutdown" Open On-Chip Debugger 0.10.0+dev-3.0.0.665 (2020-03-20-10:13) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'. adapter speed: 2000 kHz ** Test Mode acquire not supported by selected adapter Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD TargetName Type Endian TapName State -- ------------------ ---------- ------ ------------------ ------------ 0* psoc4.cpu hla_target little psoc4.cpu unknown shutdown command invoked $ ./bin/openocd.exe -s ./scripts -f interface/stlink.cfg -c "program d:/BlinkyLED.hex verify reset; exit" </source> '''J-Link:''' [[文件:JLink Interface Pinout SWD.jpg]] 使用 5 根线: VTref, GND, SWIO, SWCLK, RESET <source lang=bash> $ ./bin/openocd.exe -s ./scripts -f interface/jlink.cfg -c "transport select swd; source [find target/psoc4.cfg];" </source> '''KitProg3:''' <source lang=bash> $ ./bin/openocd.exe -s ./scripts -f interface/kitprog3.cfg -c "transport select swd; source [find target/psoc4.cfg]; program ChipID.ino.hex verify reset; exit" Open On-Chip Debugger 0.10.0+dev-3.0.0.665 (2020-03-20-10:13) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html adapter speed: 2000 kHz ** Auto-acquire enabled, use "set PSOC4_USE_ACQUIRE 0" to disable cortex_m reset_config sysresetreq Info : CMSIS-DAP: SWD Supported Info : CMSIS-DAP: FW Version = 2.0.0 Info : CMSIS-DAP: Interface Initialised (SWD) Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1 Info : CMSIS-DAP: Interface ready Info : KitProg3: FW version: 1.21.707 Info : KitProg3: Pipelined transfers enabled Info : VTarget = 4.969 V Info : kitprog3: acquiring PSoC device... Info : clock speed 2000 kHz Info : SWD DPIDR 0x0bc11477 Info : psoc4.cpu: hardware has 4 breakpoints, 2 watchpoints Info : psoc4.cpu: external reset detected ***************************************** ** Silicon: 0x256A, Family: 0xB5, Rev.: 0x12 (A1) ** Detected Device: CY8C4147AZI-S445 ** Detected Family: PSoC 4100S Plus ** Detected Main Flash size, kb: 128 ** Chip Protection: protection OPEN ***************************************** Info : Listening on port 3333 for gdb connections Error: DP initialisation failed Info : kitprog3: acquiring PSoC device... Info : SWD DPIDR 0x0bc11477 target halted due to debug-request, current mode: Thread xPSR: 0xa1000000 pc: 0x10000040 msp: 0x20003fe8 ** Device acquired successfully ** Programming Started ** auto erase enabled Info : ignoring flash probed value, using configured bank size Info : Flash write discontinued at 0x000090a0, next section at 0x0001ffc0 Info : Padding image section 0 at 0x000090a0 with 96 bytes (bank write end alignment) Warn : Only mass erase available, erase skipped! (psoc4 mass_erase <bank_id>) [100%] [################################] [ Programming ] Info : Section start address 0x0001ffc0 breaks the required alignment of flash bank psoc4.mflash Info : Padding 192 bytes from 0x0001ff00 Warn : Only mass erase available, erase skipped! (psoc4 mass_erase <bank_id>) [100%] [################################] [ Programming ] Warn : no flash bank found for address 0x90500000 Warn : no flash bank found for address 0x90600000 Warn : no flash bank found for address 0xf0000000 wrote 37440 bytes from file ChipID.ino.hex in 3.366695s (10.860 KiB/s) ** Programming Finished ** ** Verify Started ** verified 37152 bytes in 0.109350s (331.790 KiB/s) ** Verified OK ** ** Resetting Target ** Error: DP initialisation failed Polling target psoc4.cpu failed, trying to reexamine Error: Could not find MEM-AP to control the core Examination failed, GDB will be halted. Polling again in 100ms $ ./bin/openocd.exe -s ./scripts -f interface/kitprog3.cfg -c "transport select swd; source [find target/psoc4.cfg]; init; reset init; psoc4 mass_erase 0; program ChipID.ino.hex verify reset exit" </source> <br><br>
返回到
ASR650x
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面