2009-12-22 19:01:38     u-Boot induced baud rate error of UART on BF561

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

2009-12-22 19:01:38     u-Boot induced baud rate error of UART on BF561

Chung-Ti Hsu (UNITED STATES)

Message: 83848   

 

I have ever loaded U-boot hex file to Flash.

 

First, I went to "Tools-->Flash Programmer" in VDSP++5.0 and loaded the driver "BF561EzFlashDriver.dxe".

Then I loaded the hex file "u-boot-bf561-ezkit-bypass-2009R1-rc3.hex" into Flash.

So I can boot BF561 from Hyperterminal in Windows XP or minicom in Linux.

 

After that, I found my project "RS-232 Cable Test" doesn't work any more so I erase all Flash.

 

Then project "RS-232 Cable Test" is working but I need to reduce baud rate setting of Hyperterminal to half of original setting.

 

Ex:

 

1.

In codes: "UART_init(65);" (= 115200 bps)

Hyperterminal: 57600 bps   (= half 115200 bps)

 

2.

In codes: "UART_init(130);" (= 57600 bps)

Hyperterminal: 28800 bps   (= half 57600 bps)

 

3.

In codes: "UART_init(390);" (= 19200 bps)

Hyperterminal: 9600 bps   (= half 19200 bps)

 

They are all working!

 

 

Today I applied the same procedure on other BF561.

I got the same result. I need to reduce baud rate setting of Hyperterminal to half of original setting.

So I think the problem is relevent to the Flash.

 

Does anyone know how to solve this problem?

Thank you very much.

 

u-boot-bf561-ezkit-bypass-2009R1-rc3.hex

Hyperterminal_Message.zip

RS232_Test.zip

TranslateQuoteReplyEditDelete

 

 

2009-12-22 19:12:38     Re: u-Boot induced baud rate error of UART on BF561

Mike Frysinger (UNITED STATES)

Message: 83850   

 

i dont know what all this VDSP junk is you're talking about.  once you erase the flash, u-boot is gone.  there is nothing it can do that will survive power cycling the board.  so if you need VDSP assistance, this is not the website for such questions.

QuoteReplyEditDelete

 

 

2009-12-23 11:24:30     Re: u-Boot induced baud rate error of UART on BF561

Chung-Ti Hsu (UNITED STATES)

Message: 83891   

 

This is ADI's reply.

 

Hi,

 

From your description below I would agree with your conclusion, your problem does indeed sound like it is related to the u-boot file you are flashing your board with.Unfortunately, as your problem is related to u-Boot and these type of enquires cannot be answered via this support channel, you should contact the official Blackfin Linux Project website at: www.blackfin.uclinux.org. On the uClinux page there is a complete guide to U-Boot and U-Boot documentation is available on the Blackfin uClinux website via the following link:

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

 

The uClinux help forum can be found at: http://blackfin.uclinux.org/gf/project/uclinux533/forum/?action+ForumBrowse&forum_id=39

 

ADI engineers monitor and answer questions posted on this site regularly.

 

Regards

Processor Tools Support

 

 

So if I can't get help from this website, can anyone tell me which website I can consult for such questions?

 

Thank you.

TranslateQuoteReplyEditDelete

 

 

2009-12-23 14:16:25     Re: u-Boot induced baud rate error of UART on BF561

Mike Frysinger (UNITED STATES)

Message: 83897   

 

they are incorrect.  you've erased the flash which means u-boot no longer exists and you arent writing u-boot code, so none of your questions can be addressed by u-boot.

 

use the public forum:

http://ez.analog.com/

 

and verify your code is actually correct and programming everything correctly.  dividing the baud isnt magic -- it's based on other hard facts like your system clock/pll settings.

Outcomes