USBDM failing to program FXTH87XXXX

cancel
Showing results for 
Search instead for 
Did you mean: 

USBDM failing to program FXTH87XXXX

Jump to solution
4,034 Views
Contributor I

Hi,pgo

1    my chip number is  FXTH8709116T1

2    my debug and program tool is USBDM

3    my  development tool is codewarrior 10.5

Now,when I try loading my .s19  file to the FXTH8709116T1, I got this

pastedImage_1.png

But when I create an new empty project, the .s19 file can be load by HCS08 programmer successfully.

pastedImage_2.png

When I use codewarrior 10.5, it can flash my target file successfully, but the target device seem not run successfully, I am very confused

.

Labels (1)
0 Kudos
1 Solution
133 Views
Senior Contributor V

Hi Xia,

I suspect you have erased the top sectors of the device somewhere along the way.  This will result in a secured device.

When you try to read from a secured device you get all zeros.

If this is the case you have little choice but to do a mass erase and reprogram one of the file images provided on the previous link provided (above).

bye

View solution in original post

0 Kudos
15 Replies
133 Views
Senior Contributor V

Dear Xia,

When you created your project in Codewarrior did you change the memory map to avoid re-programming the semi-permanent information in the upper region of the chip? See the previous discussion thread.

Can you post the image file you are programming please?

bye

0 Kudos
133 Views
Contributor I

;

When I try to debug using USBDM, I got this

pastedImage_0.png

the attach file FXTH87xx11_Starter_Project_CW10.abs.s19 can not be programmed by HCS08 progarm;

   

the attach file 20151201.abs.s19 can be programmed by HCS08 progarm, but the progarm can not run.

0 Kudos
133 Views
Senior Contributor V

Hi Xia,

The example files you provided appear to cover the correct memory ranges so I am unsure what is causing your problem.

It is possible that the upper ROM has been erased.

I suggest you program the chip with the file that programs OK and then use the memory dump program to read-back the entire memory image to check that upper region of the Flash has not been erased somewhere along the line.

Refer to this page for some more information:

USBDM: Programming devices while preserving data

0 Kudos
133 Views
Contributor I

the attached file is the image file.It seems all 0. Is there any problem?

0 Kudos
134 Views
Senior Contributor V

Hi Xia,

I suspect you have erased the top sectors of the device somewhere along the way.  This will result in a secured device.

When you try to read from a secured device you get all zeros.

If this is the case you have little choice but to do a mass erase and reprogram one of the file images provided on the previous link provided (above).

bye

View solution in original post

0 Kudos
133 Views
Contributor I

hi

  pgo, I  do a mass erase and reprogram fxth870511_Image.sx, then load the .s19 file in the codewarrior 10.5 ,the chip can run sucessfully.

0 Kudos
133 Views
Contributor I

I download my file using the codewarrior 10.5 flash devices. but I can not download using hcs08 program. I am very happy, my chip can run successfully, thank you very munch!

pastedImage_0.png

pastedImage_1.png

0 Kudos
133 Views
Contributor I

Hi

     pgo,

           I load the image file  FXTH870911_Image.sx  already.

           When I  loaded my .s19 file, I set in codewarrior about " EraseSelective" already  and build my project, creat .s19 file.

           I select EraseSelective on the stand-alone HCS08 Programmer,but I got this,Why?

          

     pastedImage_0.png

0 Kudos
133 Views
Contributor I

I use USBDM 4.12.1.30,

when I click " Program Flash", I got this.

pastedImage_0.png

0 Kudos
133 Views
Contributor I

     看你的中文XP系统,就直接给你打中文的算了,早在半年前我就尝试了CW配合USBDM开发 FXTH87xx11,但是也是一直无法调试这款芯片,不过能够直接下载代码,但是感觉下载进去的程序并没有运行,建议使用好点的仿真器开发。

0 Kudos
133 Views
Contributor I

pastedImage_0.png

0 Kudos
133 Views
Contributor I

谢谢!中文看起来更顺啊!哈哈!本想用中文发表,但是怕中国人少,回复的也少,能讲中文真舒服啊。

现在我可以烧写新建的工程,但是以前的工程烧写不了。

提示烧写区域不在芯片ROM内。

但是烧写进去的程序貌似并没有跑起来。

所以,我也快要放弃了,用这个烧写器搞不好了。

0 Kudos
133 Views
Contributor I

Dear pgo,

          I restart my computer, the target can be connected finally,.

         The flash programmer  can load an empty project,but it can not load my own project. i got this:

pastedImage_0.png

Do I need these files:

  • Image from a FXTH870911, FXTH870911_Image.sx 
  • Updated device file hcs08_devices.xml  This adds three devices FXTH870000, FXTH87xx11-Full-Erase and FXTH87xx11
    • FXTH870000    I do not have the code.
    • FXTH87xx11-Full-Erase    I do not have the code.
    • FXTH87xx11   Now I add it to the file hcs08_devices.xml

how can I get the files above?

0 Kudos
133 Views
Contributor I

Hi, pgo

   the attach file is definition of ROM and RAM address.

0 Kudos
133 Views
Contributor I

Dear pgo,

        1Where can I get the image file?

        2 Do you mean this kind of file?   Such as your FXTH870511_Image.sx

        3I don’t change the memory map when I creat project in codewarrior.

       Now I met an new program, I can not connect the target in any case, I check the hardware , it is no problem, I try two target, the problem is same. Now, I need to solve it firstly.

pastedImage_2.png

0 Kudos