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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,457 Views
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 Solution
1,144 Views
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

View solution in original post

2 Replies
1,145 Views
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,144 Views
abdulaziz
Contributor I

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

Capture.PNG.png

0 Kudos
Reply