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!
解決済! 解決策の投稿を見る。
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
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)"
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
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.