JFlash添加自定义MCU型号

时间:2024-11-19 10:48:57

1.打开安装路径

2.在Devices里创建你想添加的MCU的文件夹并把FLM文件放入

3.Jlink目录里找到JLinkDevices.xml文件

4.修改

 <!--    -->
  <!-- G32 -->
  <!--    -->
  <!--         -->
  <!-- G32F103 -->
  <!--         -->
  <Device>
   <ChipInfo Vendor="G32" Name="G32F103" Core="JLINK_CORE_CORTEX_M3" WorkRAMAddr="0x20000000" WorkRAMSize="0x5000" />
   <FlashBankInfo Name="Internal Flash" BaseAddr="0x00000000" MaxSize="0x00020000" Loader="Devices/G32/G32F103xB.FLM" LoaderType="FLASH_ALGO_TYPE_OPEN" />
  </Device>
  <!--         -->
  <!-- G32F03X -->
  <!--         -->
  <Device>
   <ChipInfo Vendor="G32" Name="G32F03X" Core="JLINK_CORE_CORTEX_M0" WorkRAMAddr="0x10000000" WorkRAMSize="0x1000" />
   <FlashBankInfo Name="Internal Flash" BaseAddr="0x00000000" MaxSize="0x00008000" Loader="Devices/G32/G32F03xx6.FLM" LoaderType="FLASH_ALGO_TYPE_OPEN" />
  </Device>

地址可以寻找官方demo设置或者查询手册

就完成了