2008-10-24 03:33:47     BF527 custom board problems : Uart RX, commands...

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

2008-10-24 03:33:47     BF527 custom board problems : Uart RX, commands...

Stephane DEBUSNE (FRANCE)

Message: 64144   

 

Hi all,

 

I've just downloaded and installed the last mature version of toolchain and uboot (toolchain 08r1.5-14 and u-boot-1.1.6-2008R1.5) and i'm trying to port U-boot to my custom board based on a BF527.

 

The board has no parallel flash, just a spi flash (M25P40) and no ethernet.

 

The only particularity of my setup is that i have my own bootloader on the board in order to program u-boot easyly even if uboot crash, since i have no jtag. This bootloader setup the pll, the sdram and some other peripherals init and allow me to communicate with a pc through the uart. This works great. The only drawback is that the initcode of uboot is not done.

 

My main problems are :

 

* Uart TX works great, but UART RX does not in U-Boot. I need to type several times on the same key in order to the letter to be taken into account... I know that the UART works great with my own bootloader.

 

* not all of my commands defines in the .h are taken into account (i made a make clean before the compilation of U-boot), for example EEPROM commands do not appear if i type help at u-boot prompt.

 

 

 

Last small thing : when i try to set the maximum speed for the BF527 (598 Mhz for core and 117 Mhz for system clock), U-boot starts ok, but seems to crash after the prompt appears, but i do not know if it is relative to the UART RX problem or a real crash.

 

 

 

i attach my configs .h file to this post

 

thanks a lot in advance for any help

 

best regards

 

 

 

Stephane

 

cynove-bf527-dspcam.h

QuoteReplyEditDelete

 

 

2008-10-24 03:39:22     Re: BF527 custom board problems : Uart RX, commands...

Mike Frysinger (UNITED STATES)

Message: 64145   

 

verify you are not mucking with interrupts (like the UART IER register) as u-boot will not touch those things

 

as for the random crashing, you need to verify you're using the correct SDRAM timings and you need to run some memory/hardware tests first

QuoteReplyEditDelete

 

 

2008-10-24 03:56:24     Re: BF527 custom board problems : Uart RX, commands...

Stephane DEBUSNE (FRANCE)

Message: 64146   

 

Ho yes mike ! you're right, i'll check this, but you're probably true. In my own bootloader, i do use uart port with the associated DMA, so i need to check if i stop the DMA before loading the new code, in this case when i load u-boot.

 

 

 

what's about the commands ? Do you have any idea. Is my #define of CONFIG_COMMANDS ok ?

 

 

 

Anyway thanks for your quick reply

QuoteReplyEditDelete

 

 

2008-10-24 04:23:31     Re: BF527 custom board problems : Uart RX, commands...

Stephane DEBUSNE (FRANCE)

Message: 64151   

 

You were 100% right, thanks a lot. I just add a kinf of reset of the DMA and UART interrupts and the uart works great now, even at maximum speed (so that was not a "real" crash).

 

what's about the CONFIG_COMMANDS now ?

 

 

 

best regards

 

 

 

Stephane

QuoteReplyEditDelete

 

 

2008-10-24 05:13:41     Re: BF527 custom board problems : Uart RX, commands...

Stephane DEBUSNE (FRANCE)

Message: 64155   

 

ok found it !

 

just need to add the <cmd_confdefs.h>

 

at the end of the config .h file if i define the CONFIG_COMMANDS in it. All is ok

 

 

 

regards

 

 

 

Stephane

 

#include

Attachments

Outcomes