MCF5485 different .lcf file for RAM and Flash

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MCF5485 different .lcf file for RAM and Flash

3,246件の閲覧回数
Poornima
Contributor I
I am using MCF5485 on coldfire, which has the lcf file. I am using freescale codewarrior with a bdm to download the code to the board. It downloads the code into the RAM by default. What are the settings that I need to change in the lcf file to make it download to the flash? In prm files, we have the option to define a range of addresses as a segment and place the code in a particular segment. Is there any option like this in lcf file?
 
Alban split and changed subject to appropriate.

Message Edited by Alban on 2007-02-12 08:02 PM

ラベル(1)
タグ(1)
0 件の賞賛
返信
4 返答(返信)

1,558件の閲覧回数
CrasyCat
Specialist III
Hello
In order to store code in flash for Coldfire application just modify the MEMORY block in the .lcf file
to get code into flash.
 
If you have created a project from a stationery, every thing should be ready.
Just change following statements in the SECTIONS block 
 .vector_ram :
 {
  vectors.s(.text)
  .= ALIGN(0x8);
 } > vector_ram 
 
 .sdram :
 {
  *(.text)
  *(.rodata)
  .     = ALIGN(0x10);
  
 } > sdram
into  
.boot_flash :
 {
  vectors.s (.text)
  *(.text)
  *(.rodata)
  .= ALIGN(0x8);
 } > boot_flash
Note that if you have created your project using a V6.3 Stationery, you just have to switch the build target from M5485 Console Debug to M5485 ROM.
This should build an image with code & constant allocated in flash.
 
Additional note:
After you build a ROM version of the application you need to use the Flash programmer (from the Tools menu) to program the application into Flash.
 
Debug will only load symbol information in the debugger. It will not program the flash.
CrasyCat
0 件の賞賛
返信

1,558件の閲覧回数
Poornima
Contributor I
Hi,

My Codewarrior IDE's version is 5.7.1844.Is that what you meant by version? However, I have the flash programmer option in this version. I could not succeed in writing to flash using it.Hence I thought that I could be missing with something the lcf file. Otherwise, I built my application in ROM and used the flash programmer. The erase option says erased successfully but when I perform the blank check operation, it returns a failure.The details for the failure show no error, which is confusing. I tried to proceed with programming even then, but it also fails.
So, you mean that I need not change anything in the lcf file to write into ROM.Is that right?
I even tried the Hardware diagnostics option provided under the flash programmer in the menu. Even that did not work. I am stuck here and would appreciate any help in this regard.
0 件の賞賛
返信

1,558件の閲覧回数
CrasyCat
Specialist III
Hello
 
If you are not even able to run the hardware diagnostic on the board, that means you have a connection problem.
That not something I can debug on the forum.
You need to submit a service request  for that.
 
To log the issue please go to following URL:
    http://www.freescale.com/webapp/sps/site/homepage.jsp?nodeId=054670&tid=FSH
and click on "Submit a service request"
 
  To retrieve the version of CodeWarrior you are using:
  - Start CodeWarrior
    - Select Help -> About Freescale CodeWarrior
    - Click on "Install Products"
    - CodeWarrior version used is displayed on top in the Installed Products dialog.
CrasyCat
0 件の賞賛
返信

1,558件の閲覧回数
trytohelp
NXP Employee
NXP Employee
Humm. Don't know if this problem will be answered on the Forum.
Can I suggest you to log it in the Freescale CRM data base via the web access:
Click on Submit a Service Request.
 
Pascal

Message Edited by Alban on 2007-02-13 03:19 PM

0 件の賞賛
返信