Hello,
I try to program flash on FXTH870XX sensor, but have failed.
How I understand I have 2 ways, use USBDM (I have like this) in codeWarrior or in HCS08 Programmer.
In first way I don't have any idea what to do, ho to integrate it.
In second way I try to use HCS08 Programmer (I installed USBDM_4_10_6_80_Win). And on the tab (Target) I have to choose my device, but I can't find it (FXTH870XX). When I click Detect chip, target try detect, but then show "no matching device". So for this reason, I can't program flash.
So please help me, what I do wrong, or how to connect my USBDM adapter to the codeWarroir.
I set up a CodeWarrior like here.
And now codeWarrior start to use adapter for debug. But when it try to flash program (power led blinking), it got faild.
I think mb it need special initialisation?
I tried different, but all failed. If somebody have any ideas (mb need to set clock trim, but I don't know what time exactly), please help me
hello sunrme.
Freescale has CodeWarrior MCU 10.5 for Freescale FXTH87 update released. please get it from
click on "CodeWarrior MCU 10.5 for Freescale FXTH87" you will see.
=================================
this answer is for you, if it helps, please click on "correct answer" button. Thanks!
Best Regards.
Zhang Jun
Hello ZhangJennie,
Thank you for your reply. Of course I installed this CodeWarrior and try to flash this project. But have failed (error: "Failed to resume target process. Downloading binary to target.")
Also, I try to flash in USBDM. To add FXTH87xx11 in the Flash Programmer I insert this in the hcs08_devices.xml:
<!ENTITY HCS08-alt-load-flash SYSTEM "HCS08/FXTH87xx11_Starter_Project_CW10.abs.s19">
<flashProgram id="HCS08-alt-load-flash">
&HCS08-alt-load-flash;
</flashProgram>
<device family="HCS08" name="FXTH87xx11">
<memory type="ram">
<memoryRange start="0x000090" end="0x00028F" />
</memory>
<memory registerAddress="0x1820" type="flash" securityAddress="0xFFB0">
<securityEntryRef ref="HCS08-fnored-security"/>
<memoryRange start="0x00C000" end="0x00DFBF" />
</memory>
<sdid value="0x002C" />
<flashProgramRef ref="HCS08-alt-load-flash" />
</device>
I'm not sure thay I use right values especially securityEntryRef section. But now flash Programmer detect my chip. But when I click Program Flash, on EraseMass status pop up error:
I found strange thing. When codewarrior tru to flash program, it show in console:
1) Device "_DEFAULT@", why not FXTX87? Where I can set my chip?
2) RAM (0080...036F), but in datasheet and in FXTH870000.mem file 0x0090 0x028F. Mb this is a reason? But how to correct it? or it's normal.
Also, I attached project and logs from codewarrior