2008-10-12 21:23:41     Bf537 Ez-kit - Erase flash fails

Document created by Aaronwu Employee on Sep 18, 2013
Version 1Show Document
  • View in full screen mode

2008-10-12 21:23:41     Bf537 Ez-kit - Erase flash fails

Josh Skills (UNITED STATES)

Message: 63491   

 

Ok. I am using the BF537 EZ-KIT Lite evaluation board from Analog devices. I have gotten to the point where I am trying to write the u-boot to flash, but I can't erase the flash. Can someone help?

 

I think I downloaded u-boot-cm-bf537e-uart-2008r1.5.ldr, assuming this is the correct file to start with. I found it difficult to decide which was the correct u-boot to try.

 

Here is some basic information:

 

+       U-Boot 1.1.6-svn1273 (ADI-2008R1.5) (Jul 21 2008 - 00:37:36) 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.3)

Board: Bluetechnix CM-BF537E board      

Support: http://blackfin.uclinux.org/

Clock: VCO: 525 MHz,

Core: 525 MHz,

System: 131 MHz

RAM:   32 MB

Flash: Device ID of the Flash is ffff

Flash Memory Start 0x20000000

Memory Map for the Flash  0x20000000 - 0x203FFFFF

Single Flash Chip (4MB)

Using PF4 as a 2M bank switch

Please type command flinfo for information on Sectors    4 MB

*** Warning - bad CRC, using default environment  

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   C6:D9:D1:ED:EF:DC

bfin>

 

bfin> version

 

U-Boot 1.1.6-svn1273 (ADI-2008R1.5) (Jul 21 2008 - 00:37:36)

bfin> flinfo

 

Bank # 1: missing or unknown FLASH type

bfin> erase 0x20000000 0x203fffff

Error: start and/or end address not on sector boundary

bfin>

 

I tried the protect off all command, but that had no affect.

 

Any insight or pointers would be greatly appreciated.

 

My end goal is just to try to get uclinux up and running on the eval board. Nothing more at this point.

 

Thanks,

 

AJ

 

 

QuoteReplyEditDelete

 

 

2008-10-12 21:30:12     Re: Bf537 Ez-kit - Erase flash fails

Mike Frysinger (UNITED STATES)

Message: 63492   

 

are you sure you're using a BF537-EZKIT ?  or are you actually using a CM-BF537E tinyboard ?

QuoteReplyEditDelete

 

 

2008-10-12 21:37:07     Re: Bf537 Ez-kit - Erase flash fails

Josh Skills (UNITED STATES)

Message: 63493   

 

A fair question since the info says differently...

 

" Board: Bluetechnix CM-BF537E board   "

 

I am looking at the Analog Devices ADSP-BF537 EZ-KIT Lite 2.2 board, so something must not be configured correctly.

 

 

 

I used ldrviewer to load the .ldr file mentioned above.

 

As a side note I have visual DSP++ 5.0 and a ADZS-HPUSB-ICE, but I have not used them to get to this point.

 

The information I printed out prior - where does it come from...the ldr file or the board config registers?

 

Thanks,

 

AJ

QuoteReplyEditDelete

 

 

2008-10-12 21:43:38     Re: Bf537 Ez-kit - Erase flash fails

Mike Frysinger (UNITED STATES)

Message: 63494   

 

you didnt pick the right file.  please read the release notes:

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:release-notes:2008r1.5

QuoteReplyEditDelete

 

 

2008-10-12 22:12:08     Re: Bf537 Ez-kit - Erase flash fails

Josh Skills (UNITED STATES)

Message: 63497   

 

Thanks. As you suggested I looked into why I picked the one I did, and I mistakenly thought the CM meant something else. So you are correct, I picked the wrong on. Here is what I am doing and maybe you can guide me through the forest.

 

1) using ldrviewer to download the u-boot-bf537-stamp-uart-2008r1.5.ldr   ( remember I am on the bf537 ez-kit lite board, not the stamp. I think they are similar enough for my initial purposes)

 

2) connect a terminal - getting to the bfin> prompt.

 

3) attemp to use loadb to load some .bin file into flash. This is the part I am upto. I must admit I have not compiled my own version of the u-boot or anything like that. I was hoping to use what I could to get this up and running to see if it all worked.

 

Any thoughts? I have the LDR file from the blackfin site, but no .bin. How do I get the file into flash? I am sure I am just missing something.

 

 

 

Thanks for your help,

 

AJ

QuoteReplyEditDelete

 

 

2008-10-12 22:17:19     Re: Bf537 Ez-kit - Erase flash fails

Josh Skills (UNITED STATES)

Message: 63498   

 

Also Mike - can you explain to me a few things:

u-boot-bf537-stamp-bypass-2008R1.5.bin     bf537-stamp executing directly from parallel flash

u-boot-bf537-stamp-para-2008R1.5.ldr     bf537-stamp booting LDR out of parallel flash

    

      

 

1) Is the parallel flash referred to above, the 4Meg flash that is on the eval board or is this some other external flash?

 

2) Should I select the bypass one instead of the UART one I am trying to get working?

 

Thanks,

 

AJ

 

 

QuoteReplyEditDelete

 

 

2008-10-12 22:29:48     Re: Bf537 Ez-kit - Erase flash fails

Mike Frysinger (UNITED STATES)

Message: 63499   

 

the BF537-STAMP and EZKIT are the same hardware.  the EZKIT has a few additional audio codecs, but otherwise it's exactly the same.

 

if you want information about working with parallel flash, review that part of the U-Boot documentation:

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:parallel-flash

QuoteReplyEditDelete

 

 

2008-10-12 22:31:43     Re: Bf537 Ez-kit - Erase flash fails

Mike Frysinger (UNITED STATES)

Message: 63500   

 

if you look at how the Blackfin boots, then you'll see that it can only boot from flash hooked up to the first async memory bank:

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:booting_methods

 

you select whatever file for however you boot.  each boot mode has a different file.

QuoteReplyEditDelete

 

 

2008-10-12 22:41:53     Re: Bf537 Ez-kit - Erase flash fails

Josh Skills (UNITED STATES)

Message: 63501   

 

Mike,

 

Thanks for responding. I must admit I am feeling my toward the solution here. So with that said, this is what I just did...thoughts?

 

 

 

bfin> loadb

 

(Then I sent using kermit - u-boot-bf537-stamp-uart-2008r1.5.ldr)

 

## Ready for binary (kermit) download to 0x01000000 at 57600 bps...

## Total Size      = 0x0001f27c = 127612 Bytes

## Start Addr      = 0x01000000

bfin> protect off 0x20000000 0x200fffff

....................... done

Un-Protected 23 sectors

bfin> cp.b 0x1000000 0x20000000 $(filesize)

Copy to Flash... Flash not Erased

bfin> erase 0x20000000 0x200fffff

 

....................... done

Erased 23 sectors

bfin> cp.b 0x1000000 0x20000000 $(filesize)

Copy to Flash... done

bfin> cmp.b 0x1000000 0x20000000 $(filesize)

Total of 127612 bytes were the same

bfin> protect all

Usage:

protect - enable or disable FLASH write protection

 

bfin> protect on all

Protect Flash Bank # 1

....................................................................... done

 

I then did a hard reboot and my expectation was that the u-boot would run and spit out the serial port the startup info ending with

 

bfin>

 

Well that did not happen. So I must be missing something. Any thoughts or links/directions.

 

My guess is loading the ldr the way I did and then copying it to flash was not the right thing, but what is the right move.

 

Thanks in advance,

 

AJ

 

 

QuoteReplyEditDelete

 

 

2008-10-12 22:58:37     Re: Bf537 Ez-kit - Erase flash fails

Mike Frysinger (UNITED STATES)

Message: 63502   

 

your bootmode switch must be set to match the file you burned into flash.  if it isnt, then the board wont boot.  the board documentation contains more info:

http://docs.blackfin.uclinux.org/doku.php?id=hw:boards:bf537-stamp

QuoteReplyEditDelete

 

 

2008-10-13 00:06:55     Re: Bf537 Ez-kit - Erase flash fails

Josh Skills (UNITED STATES)

Message: 63504   

 

Mike,

 

Thanks for your help. Once I got my head on straight it started to make sense.

 

I was loading the uart version into RAM and then trying to load the uart version into parallel flash. That was not working, so after some thought. I loaded the uart version in to ram was able to run "bfin>" and then load the parallel-flash verion into the 0x20000000 (address which is parallel-flash). It all made sense and it worked. So thanks for your help. The boot mode switch did have to be set to 1, which is boot and LDR from parallel flash at 0x20000000.

 

When I boot up I now get:

 

 

U-Boot 1.1.6-svn1273 (ADI-2008R1.5) (Jul 21 2008 - 00:33:47)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.3)

Board: ADI BF537 stamp board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 500 MHz, Core: 500 MHz, System: 100 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   00:E0:22:FE:55:1E

Hit any key to stop autoboot:  0

Using Blackfin EMAC device

TFTP from server 192.168.0.2; our IP address is 192.168.0.15

Filename 'uImage'.

Load address: 0x1000000

Loading: *

 

 

 

Thanks for all your help. Now onto the loading of ucLinux on the the board...hoping that is easier. Any pointers and links would be great.

 

AJ

 

 

QuoteReplyEditDelete

 

 

2008-10-13 00:10:53     Re: Bf537 Ez-kit - Erase flash fails

Mike Frysinger (UNITED STATES)

Message: 63507   

 

glad it makes sense rather than just working

 

you might want to try this page next:

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:tftp_loading_files

Attachments

    Outcomes