mpc555 internal flash programming

View: New views
12 Messages — Rating Filter:   Alert me  

mpc555 internal flash programming

by Prathamesh Patki :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I am working with mpc555 with Greenhills C compiler. On my board i
have pulled /RSTCONF to high, i.e hard reset configuration word is
being read as default 0x00000000.
I need to write into internal flash of mpc555. For that bit 20 of hard
reset configuration word should be 1 ie. FLEN should be set.

How can i achieve this with this configuration?

Or the only option in this case is making /RSTCONF as low and read the
hard reset configuration word from the data lines. Here i will need to
pull down all the data lines except D20 which i will need to pull up.




RE: mpc555 internal flash programming

by Dees Randy-rsaf30 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Actually, all you have to do is set the FLEN in the IMMR (SPR 638) to
enable the access to the flash from the debugger. This is easier than
setting the the external hardware config word. But if you want to force
the external reset config word, pull RSTCFG low and put a pull up on
D20. the internal pull downs on the data bus will take care of the other
bits of the reset config word. Note the internal pull downs may not pull
low fast enough in all situations (short application of reset over
temperature), but will work for development.
 
be sure to program HC bit in the flash reset config word to a zero (0b0)
to enable the flash in normal boot mode.

________________________________

From: MPC500@... [mailto:MPC500@...] On Behalf
Of Prathamesh
Sent: Monday, September 24, 2007 11:13 AM
To: MPC500@...
Subject: [MPC500] mpc555 internal flash programming



Hi,
I am working with mpc555 with Greenhills C compiler. On my board i
have pulled /RSTCONF to high, i.e hard reset configuration word is
being read as default 0x00000000.
I need to write into internal flash of mpc555. For that bit 20 of hard
reset configuration word should be 1 ie. FLEN should be set.

How can i achieve this with this configuration?

Or the only option in this case is making /RSTCONF as low and read the
hard reset configuration word from the data lines. Here i will need to
pull down all the data lines except D20 which i will need to pull up.

.
 
<http://geo.yahoo.com/serv?s=97359714/grpId=6276387/grpspId=1706554205/m
sgId=3892/stime=1190650415/nc1=3848607/nc2=4507179/nc3=4025338>
 


[Non-text portions of this message have been removed]


RE: mpc555 internal flash programming

by Dobbin Allan-r11834 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You may write to IMMR[FLEN] (SPR 638) bit using the debugger to enable
flash.  If you want flash enabled from reset, yoy have to program the
CMFCFIG word at location 0x00 in shadow flash.
 
- Allan

________________________________

From: MPC500@... [mailto:MPC500@...] On Behalf
Of Prathamesh
Sent: Monday, September 24, 2007 11:13 AM
To: MPC500@...
Subject: [MPC500] mpc555 internal flash programming



Hi,
I am working with mpc555 with Greenhills C compiler. On my board i
have pulled /RSTCONF to high, i.e hard reset configuration word is
being read as default 0x00000000.
I need to write into internal flash of mpc555. For that bit 20 of hard
reset configuration word should be 1 ie. FLEN should be set.

How can i achieve this with this configuration?

Or the only option in this case is making /RSTCONF as low and read the
hard reset configuration word from the data lines. Here i will need to
pull down all the data lines except D20 which i will need to pull up.



 


[Non-text portions of this message have been removed]


RE: mpc555 internal flash programming

by Prathamesh Patki :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Dees,
  Thanks a lot.
  Pulling D20 to high and /RSTCONF to low worked. I could write into internal flash.
  But now a new problem i am getting that is if i remove the debug probe, And then power on the target, The code doesnot start to execute.
  If through debuger i give run command it executes.
   
  In my program, I have given a jump to main at location 0x100 which is the reset location of mpc555.
  This same code i have tested on phycore mpc555 evaluation board it works over there. So is there anything specific we need to do in the hardware to start executing from internal flash.
   
  - Prathamesh

Dees Randy-rsaf30 <randy.dees@...> wrote:
          Actually, all you have to do is set the FLEN in the IMMR (SPR 638) to
enable the access to the flash from the debugger. This is easier than
setting the the external hardware config word. But if you want to force
the external reset config word, pull RSTCFG low and put a pull up on
D20. the internal pull downs on the data bus will take care of the other
bits of the reset config word. Note the internal pull downs may not pull
low fast enough in all situations (short application of reset over
temperature), but will work for development.

be sure to program HC bit in the flash reset config word to a zero (0b0)
to enable the flash in normal boot mode.

________________________________

From: MPC500@... [mailto:MPC500@...] On Behalf
Of Prathamesh
Sent: Monday, September 24, 2007 11:13 AM
To: MPC500@...
Subject: [MPC500] mpc555 internal flash programming

Hi,
I am working with mpc555 with Greenhills C compiler. On my board i
have pulled /RSTCONF to high, i.e hard reset configuration word is
being read as default 0x00000000.
I need to write into internal flash of mpc555. For that bit 20 of hard
reset configuration word should be 1 ie. FLEN should be set.

How can i achieve this with this configuration?

Or the only option in this case is making /RSTCONF as low and read the
hard reset configuration word from the data lines. Here i will need to
pull down all the data lines except D20 which i will need to pull up.

.

<http://geo.yahoo.com/serv?s=97359714/grpId=6276387/grpspId=1706554205/m
sgId=3892/stime=1190650415/nc1=3848607/nc2=4507179/nc3=4025338>


[Non-text portions of this message have been removed]



                         

       
---------------------------------
Luggage? GPS? Comic books?
Check out fitting  gifts for grads at Yahoo! Search.

[Non-text portions of this message have been removed]


RE: mpc555 internal flash programming

by Dees Randy-rsaf30 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

see the end of my email and also see Allen Dobbin's email.
 
program 0x0 into location 0x0 of the shadow block of the device. this
will enable the internal flash and cause execution to start at address
0x100.

________________________________

From: MPC500@... [mailto:MPC500@...] On Behalf
Of prathamesh patki
Sent: Monday, September 24, 2007 1:29 PM
To: MPC500@...
Subject: RE: [MPC500] mpc555 internal flash programming



Hi Dees,
Thanks a lot.
Pulling D20 to high and /RSTCONF to low worked. I could write into
internal flash.
But now a new problem i am getting that is if i remove the debug probe,
And then power on the target, The code doesnot start to execute.
If through debuger i give run command it executes.

In my program, I have given a jump to main at location 0x100 which is
the reset location of mpc555.
This same code i have tested on phycore mpc555 evaluation board it works
over there. So is there anything specific we need to do in the hardware
to start executing from internal flash.

- Prathamesh

Dees Randy-rsaf30 <randy.dees@...
<mailto:randy.dees%40freescale.com> > wrote:

be sure to program HC bit in the flash reset config word to a zero (0b0)
to enable the flash in normal boot mode.

________________________________



.
 
<http://geo.yahoo.com/serv?s=97359714/grpId=6276387/grpspId=1706554205/m
sgId=3895/stime=1190658530/nc1=3848621/nc2=4507179/nc3=4725796>
 


[Non-text portions of this message have been removed]


RE: mpc555 internal flash programming

by Farkas, Les :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What is the latest on getting the library functions (algorithm?) at this
point to burn Internal Flash on the MPC555?

 

-Les

This message contains PRIVILEGED AND PROPRIETARY INFORMATION intended
solely for the use of the addressee(s) named above. Any disclosure,
distribution, copying or use of the information by others is strictly
prohibited. If you have received this message in error, please advise
the sender by immediate reply and delete the original message. Thank
you.

________________________________

From: MPC500@... [mailto:MPC500@...] On Behalf
Of Prathamesh
Sent: Monday, September 24, 2007 12:13 PM
To: MPC500@...
Subject: [MPC500] mpc555 internal flash programming

 

Hi,
I am working with mpc555 with Greenhills C compiler. On my board i
have pulled /RSTCONF to high, i.e hard reset configuration word is
being read as default 0x00000000.
I need to write into internal flash of mpc555. For that bit 20 of hard
reset configuration word should be 1 ie. FLEN should be set.

How can i achieve this with this configuration?

Or the only option in this case is making /RSTCONF as low and read the
hard reset configuration word from the data lines. Here i will need to
pull down all the data lines except D20 which i will need to pull up.

 



[Non-text portions of this message have been removed]


RE: mpc555 internal flash programming

by Dobbin Allan-r11834 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It may be possible your debugger configuration/initialisation script is
doing some set-up that you haven't included in your start-up code.
Reduce this script to a minimum to determine if there are any key
register writes that are making a difference.
 
- Allan

________________________________

From: MPC500@... [mailto:MPC500@...] On Behalf
Of Dees Randy-rsaf30
Sent: Monday, September 24, 2007 1:33 PM
To: MPC500@...
Subject: RE: [MPC500] mpc555 internal flash programming



see the end of my email and also see Allen Dobbin's email.

program 0x0 into location 0x0 of the shadow block of the device. this
will enable the internal flash and cause execution to start at address
0x100.

________________________________

From: MPC500@... <mailto:MPC500%40yahoogroups.com>
[mailto:MPC500@... <mailto:MPC500%40yahoogroups.com> ] On
Behalf
Of prathamesh patki
Sent: Monday, September 24, 2007 1:29 PM
To: MPC500@... <mailto:MPC500%40yahoogroups.com>
Subject: RE: [MPC500] mpc555 internal flash programming

Hi Dees,
Thanks a lot.
Pulling D20 to high and /RSTCONF to low worked. I could write into
internal flash.
But now a new problem i am getting that is if i remove the debug probe,
And then power on the target, The code doesnot start to execute.
If through debuger i give run command it executes.

In my program, I have given a jump to main at location 0x100 which is
the reset location of mpc555.
This same code i have tested on phycore mpc555 evaluation board it works
over there. So is there anything specific we need to do in the hardware
to start executing from internal flash.

- Prathamesh

Dees Randy-rsaf30 <randy.dees@...
<mailto:randy.dees%40freescale.com>
<mailto:randy.dees%40freescale.com> > wrote:

be sure to program HC bit in the flash reset config word to a zero (0b0)
to enable the flash in normal boot mode.

________________________________

.

<http://geo.yahoo.com/serv?s=97359714/grpId=6276387/grpspId=1706554205/m
<http://geo.yahoo.com/serv?s=97359714/grpId=6276387/grpspId=1706554205/m
>
sgId=3895/stime=1190658530/nc1=3848621/nc2=4507179/nc3=4725796>


[Non-text portions of this message have been removed]



 


[Non-text portions of this message have been removed]


RE: mpc555 internal flash programming

by Prathamesh Patki :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

how do i program the CMFCFIG word location with 0x0?

Dobbin Allan-r11834 <Allan.Dobbin@...> wrote:          You may write to IMMR[FLEN] (SPR 638) bit using the debugger to enable
flash. If you want flash enabled from reset, yoy have to program the
CMFCFIG word at location 0x00 in shadow flash.

- Allan

________________________________

From: MPC500@... [mailto:MPC500@...] On Behalf
Of Prathamesh
Sent: Monday, September 24, 2007 11:13 AM
To: MPC500@...
Subject: [MPC500] mpc555 internal flash programming

Hi,
I am working with mpc555 with Greenhills C compiler. On my board i
have pulled /RSTCONF to high, i.e hard reset configuration word is
being read as default 0x00000000.
I need to write into internal flash of mpc555. For that bit 20 of hard
reset configuration word should be 1 ie. FLEN should be set.

How can i achieve this with this configuration?

Or the only option in this case is making /RSTCONF as low and read the
hard reset configuration word from the data lines. Here i will need to
pull down all the data lines except D20 which i will need to pull up.

[Non-text portions of this message have been removed]



                         

       
---------------------------------
Need a vacation? Get great deals to amazing places on Yahoo! Travel.

[Non-text portions of this message have been removed]


RE: mpc555 internal flash programming

by Dees Randy-rsaf30 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

use a flash programmer. the CMFCFG is in the shadow row of the internal
flash. different flash programmers handle the shadow block differently.
some allow you to select it directly to program it, some require a
different configuration file be selected, some allow the user to just
set the shadow enable bit in the CMF registers (CMFMCR[SIE]) and call
the standard programming routines.

________________________________

From: MPC500@... [mailto:MPC500@...] On Behalf
Of prathamesh patki
Sent: Monday, September 24, 2007 3:03 PM
To: MPC500@...
Subject: RE: [MPC500] mpc555 internal flash programming



how do i program the CMFCFIG word location with 0x0?

.
 
<http://geo.yahoo.com/serv?s=97359714/grpId=6276387/grpspId=1706554205/m
sgId=3899/stime=1190664191/nc1=3848618/nc2=4507179/nc3=4776373>
 


[Non-text portions of this message have been removed]


RE: mpc555 internal flash programming

by Dees Randy-rsaf30 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Freescale has a flash programming driver package available on the
Freescale web site.
 
http://www.frescale.com/powerpc search for MPC555_CMF_NVM_GMD
https://www.freescale.com/webapp/Download?colCode=MPC555_CMF_NVM_GMD&app
Type=license&location=null&fpsp=1

________________________________

From: MPC500@... [mailto:MPC500@...] On Behalf
Of Farkas, Les
Sent: Monday, September 24, 2007 1:46 PM
To: MPC500@...
Subject: RE: [MPC500] mpc555 internal flash programming



What is the latest on getting the library functions (algorithm?) at this
point to burn Internal Flash on the MPC555?

-Les

.
 
<http://geo.yahoo.com/serv?s=97359714/grpId=6276387/grpspId=1706554205/m
sgId=3897/stime=1190659569/nc1=3848607/nc2=4507179/nc3=4617365>
 


[Non-text portions of this message have been removed]


RE: mpc555 internal flash programming

by Prathamesh Patki :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Randy,
  The flash utility that i am using is provided by greenhills. It seems it doesnot support writing into shadow memory as of now. Is there any other way of doing it through software i.e by setup script or something or it can only be done using GMD?
   
  The flash utility code is of greenhills and i only have the executable of the utility.
Thanks.
  - Prathamesh
 
Dees Randy-rsaf30 <randy.dees@...> wrote:
          use a flash programmer. the CMFCFG is in the shadow row of the internal
flash. different flash programmers handle the shadow block differently.
some allow you to select it directly to program it, some require a
different configuration file be selected, some allow the user to just
set the shadow enable bit in the CMF registers (CMFMCR[SIE]) and call
the standard programming routines.

________________________________

From: MPC500@... [mailto:MPC500@...] On Behalf
Of prathamesh patki
Sent: Monday, September 24, 2007 3:03 PM
To: MPC500@...
Subject: RE: [MPC500] mpc555 internal flash programming

how do i program the CMFCFIG word location with 0x0?

.

<http://geo.yahoo.com/serv?s=97359714/grpId=6276387/grpspId=1706554205/m
sgId=3899/stime=1190664191/nc1=3848618/nc2=4507179/nc3=4776373>


[Non-text portions of this message have been removed]



                         

       
---------------------------------
Don't let your dream ride pass you by.    Make it a reality with Yahoo! Autos.

[Non-text portions of this message have been removed]


RE: mpc555 internal flash programming

by Dees Randy-rsaf30 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

you should contact your tool provider to learn how to use the tool.
 
you could use the drivers yourself and develop code that sets the Shadow
Enable bit (SIE)  and call the flash programming driver to program the
CMFCFG.

________________________________

From: MPC500@... [mailto:MPC500@...] On Behalf
Of prathamesh patki
Sent: Monday, September 24, 2007 5:52 PM
To: MPC500@...
Subject: RE: [MPC500] mpc555 internal flash programming



Hi Randy,
The flash utility that i am using is provided by greenhills. It seems it
doesnot support writing into shadow memory as of now. Is there any other
way of doing it through software i.e by setup script or something or it
can only be done using GMD?

The flash utility code is of greenhills and i only have the executable
of the utility.
Thanks.
- Prathamesh



.
 
<http://geo.yahoo.com/serv?s=97359714/grpId=6276387/grpspId=1706554205/m
sgId=3902/stime=1190674371/nc1=3848607/nc2=4507179/nc3=4706132>
 


[Non-text portions of this message have been removed]