TI E2E Community (Beta)
Welcome to the TI E2E (Engineer-to-Engineer) Community! We invite you to freely and openly interact with your peer Engineers, TI Engineers, and other experts in order to ask questions, share knowledge, explore ideas, and help solve problems.
More Search Options

Burning Flash using CCS

rated by 0 users
Not Answered This post has 0 verified answers | 35 Replies | 3 Followers

Top 200 Contributor
39 Posts
Community Member
patki.onkar posted on 11 Jun 2009 8:58 AM

I am using CCS3.3. In this version of CCS, Flash Burn Utility is not available.

In my my system I am having DM6467 and a nor flash.

I do not have OS running on this board so I guess I will not be able to burn the flash via UART.

 

What is the way to burn the flash in this case ?

 

Regards,

Onkar

All Replies

Top 10 Contributor
2,559 Posts
Texas Instruments Employee

few things worth noting.

1) If you want to burn u-boot back into flash, you need to use Serial Flashing Utility (as opposed to Serial Loader Utility); it appears you have tried both, but Serial Flashing is the correct one.

2) Even if flashing is successful, if your hardware is in UART boot mode, you will see BOOTME messages.

3) Assuming your NOR flash is connected to CS2 memory space 0x42000000 is the correct address for NOR Flash (see data-sheet for more details)

If after successful flash you see some activity but you do not see any UART output whe booting system in NOR boot then we have to question is flashing was indeed successful.  You see, booting system in NOR boot mode will generate activity as RBL tries to look for valid u-bbot image in NOR flash; if it cannot  find it, it should default to UART boot mode; if it did find it but u-boot was somehow corrupt or not written properly despite 'sucessful' message, you may not see any output.  Have you made the proper modifications to Serial Flashing Utility to support your NOR flash device?  What commands are you using to flash at DOS prompr?

Top 200 Contributor
39 Posts
Community Member

Hi,

As you said we have tried both utilities.

1. Initially we tried serial flasher to burn flash with uImage.

2. As this did not give expected results, just to make sure the tool flow, command sequence  are correct  we used serial loader to load uImage into DDR.

Here the commands were

 

Normal 0 false false false MicrosoftInternetExplorer4

1.slh_dm646x.exe  -load2DDR UBL_DM646x_NOR.bin

2. slh_dm646x.exe  -load2DDR -startADDR 0x80200000  u-boot.bin

3. slh_dm646x.exe  -load2DDR -startADDR 0x81000000  uImage



---------------- in this whole process my jumper settings are 1000- UART MODE

Still we did not get the expected results.

 

In previous post you have said about ""modifications in Serial Utility". By this you mean modifications in uboot (#define CFG_ENV_IS_IN_FLASH   1) or modification in utility itself ?

 

Regards,

Onkar

Top 10 Contributor
2,559 Posts
Texas Instruments Employee

Onkar,

I would like to see the commands you used for serial flash utility (as opposed to serial load utility); serial load utility will load things into IRAM or DDR which will be lost as soon as power is removed.  You need to use serial flash utility.

by modifications, I meant to serial flash utility at first, with potential modifications also required at u-boot and Linux kernel level.  You need to ensure that the NOR flash command codes used by the utility apply to your NOR flash part.

Top 200 Contributor
39 Posts
Community Member

Hi Juan,

For Serial FLash Utility I am using the following commands,

sfh_DM646x.exe -norerase

sfh_DM646x.exe -norflash -v ubl_Dm646x_nor.bin u-boot.bin

After that, I get the message Operation Completed successfully, and BOOTME messages in UART mode. But after that, when I shift to NOR Boot mode, I dont get any message on Hyper Terminal.

I have noticed a point that in this utility, the MAGIC NUMBER for NOR flash burn in sfh utility is is different from MAgic number for the same in ubl.h file. One ends with 11 and in the other file, the same number ends with 99. Does this affect the burning of NOR flash? Also, isnt it supposed to give an error as BAD MAGIC NUMBER?

Is there any other point I am missing?

Thanks,

Onkar

Top 200 Contributor
39 Posts
Community Member

Hi,

In the serial flasher utility, there are two definitions,

In sft.h and ubl.h,

UBL_NOR_BURN = 0xA1ACED11

UBL_NOR_ERASE = 0xA1ACED22

In sfh.cs and sft.h

UBL_MAGIC_NOR_FLASH = 0xA1ACED99

UBL_MAGIC_NOR_ERASE = 0xA1ACEDAA

Can someone tell me the difference between the two? Could they be responsible for corrupting the data written in NOR Flash?

Thanks,

Onkar

Top 200 Contributor
39 Posts
Community Member

Hi,

Can anyone help me out there?

Regards,

Onkar

Page 3 of 3 (36 items) < Previous 1 2 3 |

ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". TI AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY TI. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.