First - You are my hero :) it's working :)
Secondly, for others: the correct template
(Unfortunately, the engine of this website breaks the code when you upload it as text, you have to upload it as an image, Dennis's template was correct before being uploaded as text)
Last edit: Igor Maliszewski 2026-02-09
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I Need to read and write flash and data to MM9Z1-638 by USBDMLT
what is the source code
Did you get it to work?
Hi DennisUnfortunately it still unsolved .Do you have any solution
Nedal
Yahoo Mail: Search, organise, conquer
On Mon, 20 Jan 2025 at 12:49 pm, Dennis Heynleincl2k@users.sourceforge.net wrote:
Did you get it to work?
MM9Z1-638
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/usbdm/discussion/1237993/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Read/Write Flash works.
add this to
C:\Program Files\pgo\USBDM 4.12.1.340\DeviceData\s12z_devices.xml
<device family="S12Z" name="MM9Z1J638">
<clock type="External">
<memoryref ref="s12z8K_Ram">
<memoryref ref="FTMRZ_EEPROM_4K_4bS">
<memoryref ref="FTMRZ_PFlash0_SEC_128K_512bS">
<copctladdress value="0x06CC">
<sdidaddress value="0x0000">
<sdidmask value="0xFFFFFF00">
<sdid value="0x02070207">
<flashscripts>
<tclscriptref ref="S12Z-FTMRZ-flash-scripts">
</tclscriptref></flashscripts>
<flashprogramref ref="S12Z-FTMRZ-flash-program">
</flashprogramref></sdid></sdidmask></sdidaddress></copctladdress></memoryref></memoryref></memoryref></clock></device>
If you have a MM9Z1I638 please share the sdid :)
(Detect Chip and the sdid is in the round brackets as hex)

my is the same

The flash loader does not appear to support EEPROM write operations.
Here a Sample with
USBDM TCL Interpreter
Everything EEPROM Sector has a size of 32 Bit
Last edit: Dennis Heynlein 2026-02-08
First - You are my hero :) it's working :)

Secondly, for others: the correct template
(Unfortunately, the engine of this website breaks the code when you upload it as text, you have to upload it as an image, Dennis's template was correct before being uploaded as text)
Last edit: Igor Maliszewski 2026-02-09
modification of s12z_devices.xml is sufficient
I have also placed a 470nF between GND and Reset.
The flashloader is not optimal, but it works at first glance.
I am currently trying to adapt the template to the S12Z of MM9Z1J638.
Look at the link on the main page USBDM Web Site