Adding a Kinetis Device to the USBDM list of supported devices.

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

Adding a Kinetis Device to the USBDM list of supported devices.

Jump to solution
1,928 Views
juanpablovega
Contributor I

Hi,

I recently started to work with USBDM 4.10.6. I plan to use a FRDM board to program a custom board.

I've been able to program a custom K20 board as a test. But the target MCU is the MK22FN256VLH12, and... it is not on the list of supported devices.

I could use the MK22FN1M0VLH12 but the power consumption is almost 50% higher. Not good.

I think it is possible to add a device to this list (USBDM - Version 4.10.6 (RS08/HCS08/HCS12/CFV1/Kinetis BDM)) but I would not know how to do it. Is there a template, or a manual, maybe a tutorial?

Thanks!

Tags (2)
0 Kudos
1 Solution
1,115 Views
pgo
Senior Contributor V

Hi Juan,

The current version 4.10.6.180 has support for MK22FN256M12.

Not tested for that device but works OK on a MK22FN512VLH12 on a FRDM-K22 board and they are similar.

Let me know how it goes.

bye

View solution in original post

0 Kudos
3 Replies
1,114 Views
juanpablovega
Contributor I

I also found this ( Hi, is there any way that i can add device for MK22F in USBDM arm devices?) and I tried to come up with things like this:

<device name="MK22FN512M12" family="CortexM4F" subfamily="MK22F12">

         <memoryRef ref="kinetis128K_Ram" />

         <memoryRef ref="FTFE_PFlash0_SEC_512K_4KS" />

         <memoryRef ref="kinetisIO_MK" />

         <sdid value="0x22001E95" />

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

         <projectActionListRef  ref="Options-file-list-MKxxM12" />

         <projectActionListRef  ref="Kinetis-MK-F-ProjectActions" />

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

      </device>

or this

<device name="MK22FN512M12" family="CortexM4F" subfamily="MK22F12">

         <memoryRef ref="kinetis128K_Ram" />

         <memoryRef ref="FTFE_PFlash0_SEC_256K_4KS" />

         <memoryRef ref="FTFE_PFlash1_256K_4KS" />

         <memoryRef ref="kinetisIO_MK" />

         <sdid value="0x22001E95" />

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

         <projectActionListRef  ref="Options-file-list-MKxxM12" />

         <projectActionListRef  ref="Kinetis-MK-F-ProjectActions" />

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

      </device>

but only got the attached error saying: "Programming of the target flash failed! Reason: Flash command failed (Verify, Erase, Blank check or Program)"

0 Kudos
1,116 Views
pgo
Senior Contributor V

Hi Juan,

The current version 4.10.6.180 has support for MK22FN256M12.

Not tested for that device but works OK on a MK22FN512VLH12 on a FRDM-K22 board and they are similar.

Let me know how it goes.

bye

0 Kudos
1,114 Views
juanpablovega
Contributor I

Hi PGO,

We're currently using the MK22FN512VLH12. That's why the .xml code snippets I wrote include the header -device name="MK22FN512M12"-.

Now, I tried the last version of the driver and it worked perfectly on the first shot. Thank you a lot!

PD: We will be developping on this MCU and see if we are able to downgrade the specs to theMK22FN256M12 in the end, to reduce cost and consumption.

0 Kudos