Hi, is there any way that i can add device for MK22F in USBDM arm devices?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Hi, is there any way that i can add device for MK22F in USBDM arm devices?

跳至解决方案
1,472 次查看
abdulaziz
Contributor I

I tried to program on MK22FN1 using USBDM but failed, when i take a look on it, it appear that it doesn't have device for MK22F series..

is there any way that I can add that device?

I tried to add the device by myself but failed.

1 解答
1,159 次查看
pgo
Senior Contributor V

Hi Abdul,

you can try adding the following entry to the arm_devices.xml file (before the MK30 entries):

<!-- MK22-M12-->

      <device name="MK22FX512M12" family="CortexM4F" subfamily="MK22D12">

         <memoryRef ref="kinetis128K_Ram" />

         <memoryRef ref="FTFE_PFlash0_SEC_256K_4KS" />

         <memoryRef ref="FTFE_PFlash1_256K_4KS" />

         <memoryRef ref="FTFE_DFlash0_512K_4KS" />

         <memoryRef ref="kinetisIO_MK" />

         <sdid value="0x00000310" />

         <flashProgramRef ref="Kinetis-FTFE-flash-program" />

         <gnuInfoListRef  ref="gnuSettings.cortex.m4" />

         <registerDescriptionRef ref="CortexM4F-register-description" />

         <fileListRef ref="Kinetis-MK-file-list" />

      </device>

      <device name="MK22FN1M0M12" family="CortexM4F" subfamily="MK22D12">

         <memoryRef ref="kinetis128K_Ram" />

         <memoryRef ref="FTFE_PFlash0_SEC_256K_4KS" />

         <memoryRef ref="FTFE_PFlash1_256K_4KS" />

         <memoryRef ref="FTFE_PFlash2_256K_4KS" />

         <memoryRef ref="FTFE_PFlash3_256K_4KS" />

         <memoryRef ref="kinetisIO_MK" />

         <sdid value="0x00000310" />

         <flashProgramRef ref="Kinetis-FTFE-flash-program" />

         <gnuInfoListRef  ref="gnuSettings.cortex.m4" />

         <registerDescriptionRef ref="CortexM4F-register-description" />

         <fileListRef ref="Kinetis-MK-F-file-list" />

      </device>

You may need to adjust the SDID value to that reported by the programmer.

Please let me know if this works (along with the reported SDID).

thanks

在原帖中查看解决方案

2 回复数
1,160 次查看
pgo
Senior Contributor V

Hi Abdul,

you can try adding the following entry to the arm_devices.xml file (before the MK30 entries):

<!-- MK22-M12-->

      <device name="MK22FX512M12" family="CortexM4F" subfamily="MK22D12">

         <memoryRef ref="kinetis128K_Ram" />

         <memoryRef ref="FTFE_PFlash0_SEC_256K_4KS" />

         <memoryRef ref="FTFE_PFlash1_256K_4KS" />

         <memoryRef ref="FTFE_DFlash0_512K_4KS" />

         <memoryRef ref="kinetisIO_MK" />

         <sdid value="0x00000310" />

         <flashProgramRef ref="Kinetis-FTFE-flash-program" />

         <gnuInfoListRef  ref="gnuSettings.cortex.m4" />

         <registerDescriptionRef ref="CortexM4F-register-description" />

         <fileListRef ref="Kinetis-MK-file-list" />

      </device>

      <device name="MK22FN1M0M12" family="CortexM4F" subfamily="MK22D12">

         <memoryRef ref="kinetis128K_Ram" />

         <memoryRef ref="FTFE_PFlash0_SEC_256K_4KS" />

         <memoryRef ref="FTFE_PFlash1_256K_4KS" />

         <memoryRef ref="FTFE_PFlash2_256K_4KS" />

         <memoryRef ref="FTFE_PFlash3_256K_4KS" />

         <memoryRef ref="kinetisIO_MK" />

         <sdid value="0x00000310" />

         <flashProgramRef ref="Kinetis-FTFE-flash-program" />

         <gnuInfoListRef  ref="gnuSettings.cortex.m4" />

         <registerDescriptionRef ref="CortexM4F-register-description" />

         <fileListRef ref="Kinetis-MK-F-file-list" />

      </device>

You may need to adjust the SDID value to that reported by the programmer.

Please let me know if this works (along with the reported SDID).

thanks

1,159 次查看
abdulaziz
Contributor I

the ID is (1315)
and below is the screenshot.. thanks a lot..:smileyhappy:

Capture.PNG.png

0 项奖励
回复