Problem: can't erase flash on GT16A

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Problem: can't erase flash on GT16A

3,136 次查看
admin
Specialist II
Hi folks,

 I built a board with an MC9S08GT8ACFDE and we are

 1. Power supply is 3.3 Volt (measured with a scope)
 2. VDD and GND are present
 3. The capacitors suggested by the datasheet are present
 3. RESET and IRQ are pulled up by a 10k resistor
 4. I'm using the USB Multilink by PEMICRO
 5. The programming algorithm is correct (16GTA)

All commands (RESET, REGISTER READ, etc) that I issue to the micro, by the programmer are executed correctly, therefore the microcontrollor answers to the programmer (the BDM interface works).

The only command that doesn't work is "Flash Erase". The programmer waits forever...

This is the first time in my life that I use a Motorola/Freescale microcontroller, therefore I might be missing something...

Thanks in advance for any help,
 Enrico
标签 (1)
0 项奖励
12 回复数

714 次查看
peg
Senior Contributor IV
Hi Enrico,
 
Don't really know what could be the problem here.
What software are you using on the PC? Codewarrior? In Expert Programmer mode?
Have you ever been able to erase or programme it?
Do you have only one MPU?
 
That will do to get started.
 
0 项奖励

714 次查看
admin
Specialist II
Hi Peg,

thanks to the italian Freescale FAE, I solved the problem.

I had to update my CodeWarrior 5.1, in order to include a patch for the GT16A.

To update CodeWarrior is simple. I clicked the "Web Updater" link, present in the installation directory, and then selected the patch to download and install.

Now all is working :smileyhappy:

Enrico
0 项奖励

714 次查看
jbulysse1994
Contributor I
Hello,
 
I've the same problem than freenrico.
But i've updated CodeWarrior 5.1 with the patch for the 9S08GT16A, and it's still not working...
Endeed, i'm unable to erase the flash (pb of the infinite loop which does nothing...).
 
I've used the Device Initialization.
I've 2 CPU (two 9S08GT16A) on my board but, they have both their own quartz, and their own connection for the BDM.
 
I've never been able to flash my memory. It was my first test with my home board.
 
What Can i do?
 
Thanks
Regards,
Gaël


Message Edited by jbulysse1994 on 2007-07-06 07:42 PM
0 项奖励

714 次查看
peg
Senior Contributor IV
Hi Gael,
 
Does the software connect to the target at all?
Can you go into "Expert programmer mode" and tell us what happens when you try to use the commands from within there?
 
0 项奖励

714 次查看
jbulysse1994
Contributor I
Hello
 
I've just found the expert programmer mode and i'm running it
 
But without the expert programmer mode i had :
 
The two LED on my BDM are lighted.
So the BLUE one implies my bdm interface is powering and running, and the yellow that target power has been detected.
 
But when i click on debug, it opens the window "true time simulator & real time debugger" and a window entitled "ICD Connection Manager".
 
When i try to click on Connect on the window "ICD...", a new window "Erase and Program Flash" is displayed.
 
If i click on connect, the window "CPROGHCS08 programmer" is displayed, and the problem is that it runs forever after the command "EM"...


Message Edited by jbulysse1994 on 2007-07-09 09:22 AM
0 项奖励

714 次查看
peg
Senior Contributor IV
OK,
 
What do you get if you do a blank check or something else whilst in Expert mode.
 
0 项奖励

714 次查看
jbulysse1994
Contributor I
if i do a blanck check, it runs forever (Executing command...)
0 项奖励

714 次查看
peg
Senior Contributor IV
OK,
So the connection manager comes up and all is OK?
Then you select the programming algoritm, then it shows you the bus freq and the recomended trin values?
Is this what happens?
Perhaps you can post a screen shot!
 
0 项奖励

714 次查看
jbulysse1994
Contributor I
You can find below the screen shot, is there something wrong? :
 
 
Thanks,
Regards,
Gael
0 项奖励

714 次查看
jbulysse1994
Contributor I
And a screen shot of the window command, after the success of the launching of the command manager(without erasing of the flash) :
 
 
Thanks,
Regards,
Gael
0 项奖励

714 次查看
peg
Senior Contributor IV
Hi,
 
Good news! I have found your problem.
 
You say you have GT16A yet you are using the algorithm for the older GT16.
I just tried the 16 algo on an A and got exactly your problem.
Select the algorithm for the GT16A and you will be fine.
 


Message Edited by peg on 2007-07-09 08:40 PM
0 项奖励

714 次查看
jbulysse1994
Contributor I
Ok Fine!
You are right.
 
All is ok now!
The erasing has just succeed. So I'll test my soft.
 
Thanks a lot!!
 
Best regards
gael
0 项奖励