Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).
DP256 - DP512 Transition - Jonathan Masters - Apr 20 4:04:46 2009
Hello All.
I have recently started to upgrade an old board that uses DP256B's with
DP512. I managed to program the board a couple of days ago with no issues.
Today, I ran into a problem with my application code - it couldn't write
to paged flash when downloading data from my PC app. This was quickly
identified as a problem with the bank select in my flash loading routine.
However no matter how hard I try today, I cannot get a P&E Multilink to
load my original binary back into the chip. Most of the time I get "ELF
Loader Error - Unable to program 00C000-00C200". Sometimes this is
different - its all a bit flaky. I have tried two different pods, two
different boards with the same results. An original board with a DP256
works fine.
I have tried using DP512 as the drivative in ICD12 as well as DP256 -
neither makes any differences.
Finally, I find that communications is frequently lost with the board
after the programming failure. Thinking it could be a hardware problem I
have changed crystals and reset chips to no avail.
I think I have had all these problems before and they just seem to go
away. Naturally they come back when under most pressure ;). My previous
questions to the group on similar topic related to Quad Core machines.
Has anyone got any suggestions where I can start looking?
Jonathan Masters
------------------------------------

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )
RE: DP256 - DP512 Transition - jpdi - Apr 20 5:45:59 2009
Hi, Jonathan,
Is it DP512 or XDP512=A0?
XDP512 vs DP256 has=20
- a different scheme for quartz than DP256. Maybe it's why you have speed
problem with your BDM, as the CPU run with it security clock, not quartz.
It's the first problem I had when moving from DP256 to XDP512.
- different page addresses (for me, with DP256, my pages begin at 0x30,
XDP512 at 0xE0), so I had to rewrite some code.
- some register addresses are different, so I had to rebuild my projects
with the "good" include file.
I use ICC12 V7 and NoIce debugger.
ICC12V7 options are to generate "Linear S2 file", and NoIce load option is
"S2 have linear addresses".
Hope this help.
Best regards.
Joel
-----Message d'origine-----
De=A0: 6...@yahoogroups.com [mailto:6...@yahoogroups.com] De la part de
Jonathan Masters
Envoy=E9=A0: lundi 20 avril 2009 10:06
=C0=A0: 6...@yahoogroups.com
Objet=A0: [68HC12] DP256 - DP512 Transition
Hello All.
I have recently started to upgrade an old board that uses DP256B's with=20
DP512. I managed to program the board a couple of days ago with no issues.
Today, I ran into a problem with my application code - it couldn't write=20
to paged flash when downloading data from my PC app. This was quickly=20
identified as a problem with the bank select in my flash loading routine.
However no matter how hard I try today, I cannot get a P&E Multilink to=20
load my original binary back into the chip. Most of the time I get "ELF=20
Loader Error - Unable to program 00C000-00C200". Sometimes this is=20
different - its all a bit flaky. I have tried two different pods, two=20
different boards with the same results. An original board with a DP256=20
works fine.
I have tried using DP512 as the drivative in ICD12 as well as DP256 -=20
neither makes any differences.
Finally, I find that communications is frequently lost with the board=20
after the programming failure. Thinking it could be a hardware problem I=20
have changed crystals and reset chips to no avail.
I think I have had all these problems before and they just seem to go=20
away. Naturally they come back when under most pressure ;). My previous=20
questions to the group on similar topic related to Quad Core machines.
Has anyone got any suggestions where I can start looking?
Jonathan Masters
------------------------------------

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )
Re: DP256 - DP512 Transition - Jonathan Masters - Apr 20 6:46:58 2009
jpdi wrote:
> Hi, Jonathan,
>
> Is it DP512 or XDP512 ?
> XDP512 vs DP256 has
> - a different scheme for quartz than DP256. Maybe it's why you have speed
> problem with your BDM, as the CPU run with it security clock, not quartz.
> It's the first problem I had when moving from DP256 to XDP512.
> - different page addresses (for me, with DP256, my pages begin at 0x30,
> XDP512 at 0xE0), so I had to rewrite some code.
> - some register addresses are different, so I had to rebuild my projects
> with the "good" include file.
>
> I use ICC12 V7 and NoIce debugger.
> ICC12V7 options are to generate "Linear S2 file", and NoIce load option is
> "S2 have linear addresses".
>
> Hope this help.
> Best regards.
> Joel
>
> -----Message d'origine-----
> De : 6...@yahoogroups.com
> [mailto:6...@yahoogroups.com ] De
> la part de
> Jonathan Masters
> Envoyé : lundi 20 avril 2009 10:06
> À : 6...@yahoogroups.com
> Objet : [68HC12] DP256 - DP512 Transition
>
> Hello All.
>
> I have recently started to upgrade an old board that uses DP256B's with
> DP512. I managed to program the board a couple of days ago with no issues.
>
> Today, I ran into a problem with my application code - it couldn't write
> to paged flash when downloading data from my PC app. This was quickly
> identified as a problem with the bank select in my flash loading routine.
>
> However no matter how hard I try today, I cannot get a P&E Multilink to
> load my original binary back into the chip. Most of the time I get "ELF
> Loader Error - Unable to program 00C000-00C200". Sometimes this is
> different - its all a bit flaky. I have tried two different pods, two
> different boards with the same results. An original board with a DP256
> works fine.
>
> I have tried using DP512 as the drivative in ICD12 as well as DP256 -
> neither makes any differences.
>
> Finally, I find that communications is frequently lost with the board
> after the programming failure. Thinking it could be a hardware problem I
> have changed crystals and reset chips to no avail.
>
> I think I have had all these problems before and they just seem to go
> away. Naturally they come back when under most pressure ;). My previous
> questions to the group on similar topic related to Quad Core machines.
>
> Has anyone got any suggestions where I can start looking?
>
> Jonathan Masters
>
> ------------------------------------

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )Re: DP256 - DP512 Transition - linktek - Apr 20 15:05:26 2009
Hi,
DP512 does not have EEPROM or is it XDP512??
I found this type of issues when my memory map was messed up and were writ=
ing errounious data to te flash secure registers locking up the debugger.
So in order to reverse this, you need a generic clock/osc inserted or to be=
able to run the free P&E unsecure program in order to unlock the flash loc=
kout.
To prevent this from happening again carefull analysis needs to be done in=
order to make sure that the memory mapping was implemented correctly when =
moved from the DP256 to the DP512.
Hope this helps
Fred
----- Original Message -----=20
From: Jonathan Masters=20
To: 6...@yahoogroups.com=20
Sent: Monday, April 20, 2009 3:46 AM
Subject: Re: [68HC12] DP256 - DP512 Transition
jpdi wrote:
>
>
> Hi, Jonathan,
>
> Is it DP512 or XDP512 ?
> XDP512 vs DP256 has
> - a different scheme for quartz than DP256. Maybe it's why you have spe=
ed
> problem with your BDM, as the CPU run with it security clock, not quart=
z.
> It's the first problem I had when moving from DP256 to XDP512.
> - different page addresses (for me, with DP256, my pages begin at 0x30,
> XDP512 at 0xE0), so I had to rewrite some code.
> - some register addresses are different, so I had to rebuild my project=
s
> with the "good" include file.
>
> I use ICC12 V7 and NoIce debugger.
> ICC12V7 options are to generate "Linear S2 file", and NoIce load option=
is
> "S2 have linear addresses".
>
> Hope this help.
> Best regards.
> Joel
>
> -----Message d'origine-----
> De : 6...@yahoogroups.com
=20
> [mailto:6...@yahoogroups.com ] De=20
> la part de
> Jonathan Masters
> Envoy=E9 : lundi 20 avril 2009 10:06
> =C0 : 6...@yahoogroups.com
> Objet : [68HC12] DP256 - DP512 Transition
>
> Hello All.
>
> I have recently started to upgrade an old board that uses DP256B's with
> DP512. I managed to program the board a couple of days ago with no issu=
es.
>
> Today, I ran into a problem with my application code - it couldn't writ=
e
> to paged flash when downloading data from my PC app. This was quickly
> identified as a problem with the bank select in my flash loading routin=
e.
>
> However no matter how hard I try today, I cannot get a P&E Multilink to
> load my original binary back into the chip. Most of the time I get "ELF
> Loader Error - Unable to program 00C000-00C200". Sometimes this is
> different - its all a bit flaky. I have tried two different pods, two
> different boards with the same results. An original board with a DP256
> works fine.
>
> I have tried using DP512 as the drivative in ICD12 as well as DP256 -
> neither makes any differences.
>
> Finally, I find that communications is frequently lost with the board
> after the programming failure. Thinking it could be a hardware problem =
I
> have changed crystals and reset chips to no avail.
>
> I think I have had all these problems before and they just seem to go
> away. Naturally they come back when under most pressure ;). My previous
> questions to the group on similar topic related to Quad Core machines.
>
> Has anyone got any suggestions where I can start looking?
>
> Jonathan Masters
>
> ------------------------------------
>
>

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )Re: DP256 - DP512 Transition - Edward Karpicz - Apr 21 3:51:16 2009
Jonathan,
Are you using CW debugger? Any chance you enabled Multilink->"At startup CPU
is running (hotplug)" option? This option helps to debug in normal (in not
special) mode of operation, but I believe it should be not compatible with
flash burning. However I could be wrong because I rarely use CW.
Edward
----- Original Message -----
From: "Jonathan Masters"
To: <6...@yahoogroups.com>
Sent: Tuesday, April 21, 2009 09:29
Subject: [68HC12] DP256 - DP512 Transition
> Hello,
>
> Further to my woes from yesterday, I have now discovered that all three
> of my pods on three different types of boards using S12DP256, S12DP512
> and S12DG128 fail in some way or another.
>
> I have restored the target computer to (much) earlier dates expecting
> that perhaps an update had damaged something - no change.
>
> I have uninstalled and re-installed the P&E Drivers and Codewarrior - no
> change.
>
> It looks like I have a problem with getting the right .FPP file and the
> correct settings in P&E_ICD.INI. What I cannot understand is why I am
> working at this level, and how this changed (except that I started
> fiddling with the MCU ID for a DP512).
>
> Can anyone give me clues as to the correct settings in the ini file and
> the right FPP file.
>
> Can anyone tell me i'm an idiot for trying to do all this with CW12 V3.1
> and that all my problems would disappear if I upgraded the software? Can
> anyone even tell me that I still have to pay full $$ for a new license
> when I already have the software?
>
> Jonathan Masters
>
> ------------------------------------

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )