Skip navigation

This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
3,603 Views 4 Replies Last post: Nov 19, 2009 4:39 AM by CraigG RSS
felix Contributor 7 posts since
Jun 17, 2009
Currently Being Moderated

Jul 15, 2009 12:52 PM

VDK: how to redirect printf to UART with minimal code footprint

VDK: how to redirect printf to UART with minimal code footprint instead of debug-console? I don't need scanf only printf.

CraigG Analog Employee 444 posts since
Jan 29, 2009
Currently Being Moderated
1. Jul 16, 2009 5:39 AM in response to: Felix Lazarev
Re: VDK: how to redirect printf to UART with minimal code footprint

felix wrote:

 

VDK: how to redirect printf to UART with minimal code footprint instead of debug-console? I don't need scanf only printf.

 

Hi,

 

The Blackfin Compiler and Run-Time Library Manual details how to extend I/O support to new devices, using an extensible device driver mechanism. I believe it would require a larger footprint to selectively redirect some parts of the STDIO, than it would to redirect al I/O.

 

Please take a look at the Compiler and Run-Time Library Manual, which is available via the link below. From page 3-43 it discusses the extension of the I/O support to a new device.

http://www.analog.com/blackfin/manuals

rkarthik Analog Employee 13 posts since
Apr 14, 2009
Currently Being Moderated
2. Jul 16, 2009 10:54 AM in response to: Felix Lazarev
Re: VDK: how to redirect printf to UART with minimal code footprint

The VDK Shell Browser Example in VDSP implements this. You could use the code there as a reference –

C:\Program Files\Analog Devices\VisualDSP 5.0\Blackfin\Examples\ADSP-BF527 EZ-KIT Lite\Services\File System\VDK\shell_browser


The relevant files are the ones with ConsoleIO in the file name. The ConsoleIO thread is initialized in CommandThread.c file.


Hope this helps!

 

 

CraigG Analog Employee 444 posts since
Jan 29, 2009
Currently Being Moderated
4. Nov 19, 2009 4:39 AM in response to: Felix Lazarev
Re: VDK: how to redirect printf to UART with minimal code footprint

Hi,

 

Is this still a problem for you? In order to offer advice we would need to request further information about your current setup. For that reason, we would recommend that, if this is still a problem, you should contact us directly via the link below:

http://www.analog.com/processors/support

 

regards,

Craig.

More Like This

  • Retrieving data ...

Bookmarked By (0)