Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: AT91SAM9260 debug/ console port change
PostPosted: Fri Jul 13, 2012 7:54 am 
Offline

Joined: Fri Jul 13, 2012 6:44 am
Posts: 1
Hi ,
I am using AT91SAM9260 and i have a query regarding the debug unit. The debug unit is associated with GPIOs PB14 and PB15 pins and the default console comes up with this USART6 (debug unit). My issue is , i need to change the console port to one another USART ,say USART 2 which uses PB8 and PB9 as TXD and RXD. Is it possible to get all the console logs on a USART port other than debug unit USART ? I tried bootargs , but it causes a change only after U -boot initialization.More over that i need it to be hard coded to USART2 so that user dont need to enter the bootargs every time.I have done a few changes in the bootstrap and u - boot codes but, all the efforts were successful failure. How can i get the bootstrap , u -boot and kernel initialization logs in USART2 . Anticipating your valuable advice.

thank you


Top
 Profile  
 
 Post subject: Re: AT91SAM9260 debug/ console port change
PostPosted: Fri Jul 20, 2012 12:27 am 
Offline

Joined: Thu Apr 19, 2007 10:15 pm
Posts: 330
Location: USA
chrisjs wrote:
I tried bootargs , but it causes a change only after U -boot initialization.More over that i need it to be hard coded to USART2 so that user dont need to enter the bootargs every time.


bootargs is actually used for the kernel command line, so its contents only take effect after the kernel has started. Any changes to bootargs (or any other U-Boot environment variables) can be saved with the
Code:
saveenv
command.

Use of the debug port begins in ROMboot, and then in AT91Bootstrap, and then in U-Boot. Good luck trying to change the code in ROMboot. IOW you might be able to redirect the console I/O in a modified AT91Bootstrap and U-Boot, but re-purposing PB14 & PB15 is questionable.

Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: