前言:目前baidu这个垃圾玩意,很难找到这篇制作 JLink-OB-072 版本的文章。Jlink OB 072可以给EFM32解锁。相信这么简单的电路,大家都希望自己飞个线,而不是买某些成品,浪费钱在快递上。LZ特别简单的翻译此文章,有兴趣的同学自己制作,LZ是被某些人不开源不共享的精神恶心到了,没兴趣继续玩了。
How to make JLink-OB-072 debug adapter.
如何制作一个 JLink-OB-072 调试器 Easy and correct way - buy from SEGGER and be happy.
Also right way - build it yourself but with some limitation. You can'tuse firmware update from JLink.exe only via STM DFU utility.
偷懒又轻松的办法:找论坛某些人买板子,加群乞讨固件。另一个好办法:自己google找方法和固件,DIY制作一个。但是有些限制,就是没法使用官方的软件升级。 Now need prepare first step. Buy correct beer (Krusovice) and open it.
1. Extract binary part from JLinkARM.dll (from JLink_V512)
For example from offset 7153340 (0x6D26BC) and size 41192 (0x0A0E8).
Use any binary extraction tool as you prefer.
After this you have file with 41192 bytes such as
this现在我们开始第一步。下载个正确的Jlink安装包,一路下一步。
1,从 JLinkARM.dll这个文件提取固件。例如我们使用 JLink 5.12这个版本,使用像WinHEX这样的软件,打开JLinkARM.dll, 从开始地址7153340 (0x6D26BC),提取长度为41192 (0x0A0E8)的数据,另存为。bin文件。Now move to step 2
You need STM32F072C8 chip with simple connection:
Power (see datasheet for STM32F072C8) and USB (PA12, PA11). No more.
Now connect debugger or use BOOT selection and write
this file from 0x8000000 addrerss and file from step 1 to 0x8004800 address.
现在开始第二步,给STM32F072C8搭建一个最小系统,拿我们常见的STLINK,或者BOOT选择(串口ISP,USBDFU),烧录这个文件到0x8000000,烧录刚才的文件到0x8004800。 If JLink say about firware update - you need prepare DFU image from 2files above and use STM DFU utility to update (after agree to upgrade -device start in STM DFU mode or use BOOT pin).
如果JLINK软件提示固件需要升级,你就必须自己制作DFU文件通过USB DFU来升级了(没玩过了) 补上电路连接:
工作指示灯
PA0 ----- 1K欧 -----|<|---+ 3.3V
PA1 ----- 100欧 ----RESET
PA2 ----- 100欧 ---- SWCLK
PA3 -------------------- SWO
PA4 ----- 100欧 ---- SWDIOPA9 ----- 100欧 ---- 虚拟串口 TX
PA10 --- 100欧 ---- 虚拟串口 RX
原文: http://akb77.com/g/stm32/jlink-ob/文中两个文件,如果链接失效,请下载附件: