I tried to use USBDM to program the FXTH87xx . But in the list of chips in Flash Programmer this MCU is absent. So, I insert this in the hcs08_devices.xml:
<!ENTITY HCS08-alt-load-flash SYSTEM "HCS08/FXTH87xx11_Starter_Project_CW10.abs.s19">
<device family="HCS08" name="FXTH87xx11">
<memoryRange start="0x000090" end="0x00028F" />
<memory registerAddress="0x1820" type="flash" securityAddress="0xFFB0">
<memoryRange start="0x00C000" end="0x00DFBF" />
<sdid value="0x002C" />
<flashProgramRef ref="HCS08-alt-load-flash" />
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:
Hope someone can help me.
Solved! Go to Solution.
Could you change the end address in the XML file to 0xDFFF as it appears that there is a pseudo-vector table to be programmed as well. Also remove the references to security - in other words use the following:
<device family="HCS08" name="FXTH87xx11-Partial-Erase"> <memory type="ram"> <memoryRange start="0x000090" end="0x28F" /> </memory> <memory registerAddress="0x1820" type="flash"> <memoryRange start="0x00C000" end="0xDFFF" /> </memory> <sdid value="0x002C" /> <flashProgramRef ref="HCS08-alt-load-flash-program" /> <note>Untested</note> </device>
Make sure you select EraseSelective when programming.
I have ordered a chip and if (big IF) I can mount it properly I will experiment with programming it.
It should be possible to debug as well with a bit of work - It may be necessary to add and image for the internal flash routines.
I will look at this in a while :smileyhappy:
OK my sample arrived and with access to this I am able to do a proper job.
The first thing I did was create an image of the chip contents. This allows the chip to be returned to a "factory fresh" state if the firmware is accidentally erased.
Any way I have attached the following:
To restore an accidentally erase device
To program a user program (restricted to user flash area)
To use with Codewarrior
PS. Want to see the prototype? I can't really see it lasting long inside a tyre!
Hi, pgo ,
I read all your solution about USBDM failing to program FXTH87XX11，I want to know how can i get the information about FXTH870000, FXTH87xx11-Full-Erase, FXTH87xx11 .
I only have the data about FXTH87xx11 ,as follows
|<device family="HCS08" name="FXTH87xx11-Partial-Erase">|
|<memoryRange start="0x000090" end="0x28F" />|
|<memory registerAddress="0x1820" type="flash">|
|<memoryRange start="0x00C000" end="0xDFFF" />|
|<sdid value="0x002C" />|
|<flashProgramRef ref="HCS08-alt-load-flash-program" />|
now I can not debug with usbdm，also I can not program my device with USBDM.
when I program my project, I got this. please can you help me? I will be very grateful. thank you.
Could you post your request to an entirely NEW thread - this one is a mess and it is very hard to follow (at least I find it so).
Please provide the following:
Your answers are very helpful,But I still have some questions:
When I program my FXTH87,I Select the EraseMass by mistake,so I refer to your method that To restore an accidentally erase device.Now I want to know where did you get the image FXTH870511_Image.sx.
I need the FXTH870911_Image.sx because I am using the FXTH870911DT1.I can't find it on the www.freescale.com,so i can't return to a "factory fresh" state(FXTH870911DT1).
Where can i get the FXTH870911_Image.sx?
Looking forward to your reply.
Hi All together,
i'm also facing same kind of issue, with Debugger Mode .Firstly i'm working with FXTH870911 434Mhz TPMS Sensor.I have facing the problems like I not able to debug the Sample Code and no sample code executing int he EVB.
#1.I have downloaded Startup Code from free scale there i faced issue with Firmware JUMP Location (0XE003). This i have got clear SW not able to access the address location.
#2. Then i have downloaded the Sample code "FXTH87XXXX PERIODIC RF TRANSMISSION CW10" and flashed with EVB, I have selected FLASH_434_2_AXIS Vehicle Type .s19 file. Please note very first time FR DATA have been transmitted i have used Spectrum Analyzer to test the FR Signals. Then i have modified the transmitted Data size and flashed this time code not working no RF Data Transmission, then i have revert back to original code and flashed this time also no RF Data Transmission.
#3. Next i tried to debug the flashed code i got Debugger connection loss error as well the Firmware Jump location error when i suspend the Debugging Progress.From this time onward no longer working with any of the sample code.
#4. If i try to reset the Target this will jump to the Firmware address 0xFFFF address instead to the vector address.
#5 . I hope i have accidentally erased the builtin Firmware data,but i don't have any idea how to restore my IC to normal working conditions.Please any can help me for the steps to resolve this issues.
#6. I have using CW10.6 with TPMS supported component installed. Please node this are the thing im using for my development (FXTH870911 and P&E Micro Cyclone Pro) Debugger.
Please this will be very great-full if any one help me out.
I'm sorry I can't help with the image you need. I obtained the FXTH870511 image by reading it from the chip before I tried programming :smileyhappy:.
Thank you anyway!
I think I can only replace the bad chip with a new one.
I still want to know why don't freescale provide the image or method? Many users else have made the same mistake.
Do you by any chance have a working code for this chip? I am trying to use the example code provided by freescale but when I run it in debug mode it suddenly jumps into weird parts of memory and I get an error like this.
If the starter code from Freescale does not work for you, my guess is that you have a problem in your setup. I've been using the starter code for a couple of months now, on both FXTH87xxx11 and FXTH87xxx02 devices and it works great.
Recheck your hardware. Make sure you have external pullups on both the BKGD and RST pins.
Do you have the FXTH87 update package installed?
I also want to work on the FXTH87, so I want to get a EVB for reference. You build the hardware circuit yourself or get it from Freescale? Look forward to your reply!
Yes,I am Chinese student from Suzhou. I am designing the PCB these days. But ,with less experience ,very hard to do it,too much things unkown. May I contact with you in the following days?
Re: Fail to program FXTH87xx11 using USBDM
reply from Jiangbo Li in OSBDM and TBDML - View the full discussion
Hi Yaping Wang,
I design the PCB of FXTH87 by myself,and it works normally.But I think the RF antenna is not perfect.
By the way,Are you Chinese?
Did your question get answered? If so, say thanks by clicking Correct Answer in the community thread!
Reply to this message by replying to this email, or go to the message on Freescale Community
Start a new discussion in OSBDM and TBDML by email or at Freescale Community
Following Re: Fail to program FXTH87xx11 using USBDM in these streams: Inbox