Topic : PID error with ST72F324BJ4

Forum : ST7/STM8

Original Post
Post Information Post
September 22, 2008 - 4:46pm
Guest

Hi
I am getting a PID error when programming the ST72F324BJ4 - the message is

Wrong device detected:
Mismatch of the PID.
PID read: 081
PID expected:815
Please check target device selection, power and connections.

Looking at earlier posts on this forum, it could be a processor problem but the failed device is not a sample (it is from a batch of 5000 for production). I have tried programming a 72F561K9 which we also use and that works fine.

Any suggestions would help.

Thanks

Damon

Replies
Post Information Post
+1
0
-1
September 23, 2008 - 10:41am
Raisonance Support Team

Hi,

Please tell me everything that is written on the chips. (or send a picture of one of them to 'support@raisonance.com' with a reference to this post) That will give me more information about the batch they come from.

Also, please confirm that you have (also) updated the ST7 RIDE kit. (In the other post we speak only about the RIDE7 and ARM kits. but if you use ST7, then you must also update the ST7 kit...)

Best Regards,

Vincent

+1
0
-1
September 23, 2008 - 1:51pm
Guest

Hi Vincent
I have downloaded and installed the latest version of the ST7 kit. The numbers on the chip are:-
ST72F324BJ4T6
2203Y VP
MLT22829

These are new stock purchased a little over a month ago.

Since my last post I have also programmed 72F324J4T6 using the latest software with no problem.

I hope you can throw some light on the problem.

Best regards

Damon

+1
0
-1
September 23, 2008 - 1:53pm
Guest

Hi Vincent

The last post was a little unclear. I had downloaded and installed the latest version of ST7 kit before I tried to program any 72 series devices ( I did learn from my mistake with the ARM software).

Best regards

Damon

+1
0
-1
September 23, 2008 - 3:46pm
Raisonance Support Team

Hi,

Thanks for the information. I will contact ST and ask them to send me a device from the same batch as yours.

In the meantime, please give a try at these files:
ftp://www.raisonance.com/temp/ST/test_fix_ST7_HDFLASH_PID_080923.zip

Copy them in 'c:\program files\Raisonance\Ride\bin\...'
(or wherever you installed RIDE)
You might want to save the old files before that, because I could not test the modification, as my ST7s do not give the same PID as yours...

Please keep me informed of the results of your tests, positive or negative.

Best Regards,

Vincent

+1
0
-1
September 23, 2008 - 4:27pm
Guest

Hi Vincent

Thank you for the software update. I can now program the chip, the PID error is resolved but the program does not work. I have dumped the chip memory and found that the flash is programmed with 0x00 from 0xC080 to 0xc0FF and again at 0xC180 to 0xC1FF. This pattern repeats to the end of flash memory.

Best regards

Damon

+1
0
-1
September 23, 2008 - 5:22pm
Raisonance Support Team

Hi,

Thanks for the testing.

Your new problem looks like a simple mistake on the device's RAM size configuration.

Please give a try at this new set of files:
ftp://www.raisonance.com/temp/ST/test_fix_ST7_HDFLASH_PID_080923_2.zip

If that does not solve it, then I'm out of ideas for now.
We'd have to wait until I receive the chip and run RIDE in debug mode. (not before next week :( )

Still I'm interested in knowing how it goes on your system with these new files.

Best Regards,

Vincent

+1
0
-1
September 23, 2008 - 5:34pm
Guest

Hi Vincent

Looks good. Programmed my test board fine. I will do more testing tomorrow and let you know the results.

Thanks again for your help so far.

Best regards

Damon

+1
0
-1
September 24, 2008 - 11:44am
Guest

Hi Vincent

I have done a little more testing with ST7_pgm.exe and found a problem.
Using the command line arguments:- ST7_pgm 2324BJ4 xxxxxx.hex I get error 203: Wrong device detected. If, however, I use the Flasher program it works fine.
I guess that you have tricked ST7_pgm by passing a different device type.

Best regards

Damon

+1
0
-1
September 29, 2008 - 9:55am
Raisonance Support Team

Hi,

RFlasher does not call ST7_pgm. They share the piece of code that holds the fix in a static library.

So I should have recompiled ST7_pgm.exe and included it in the patch... but I forgot. ;(

Here is the new patch with ST7_pgm.exe:
ftp://www.raisonance.com/temp/ST/fix_ST7_HDFLASH_PID_080923_3.zip

Sorry for the delay.

Best Regards,

Vincent

+1
0
-1
October 1, 2008 - 12:59pm
Guest

Hi Vincent,

I have programmed a 324BJ4 with ST7_pgm and it now works perfectly. Thanks for all of your help and apologies for not responding sooner (I have been busy on other projects).

Best regards

Damon