ΣSigmaStudio Ask AI Русский Log in

how stdio redirect to pci_io device?

Processors & DSP dean97 Aug 23, 2012 00:00 2 replies Original on forum ↗
Subscribe
dean97 Question
Aug 23, 2012 00:00

platform:

DSP: tigersharc ts201

Software: visualdsp4.0

Target: a pci device on the pci slot of my computer

Os: windowsxp

question:

I want to redirect stdio to my debugger's console,but i do not konw how the context

is switched between target and host(debugger),I desigened my device PCI_IO to take

place of PRIMIO device.the program also run into the _primio(), but i do not know how

to swtich the context to the host(my debugger with vc++ designed),is the memory on the

target board the media? the progress of the context switch confused me.can give me some

advice?

i designed a MFC program,which dectect the pci device on my computer,and can load the

program to the target dsp,after load the dsp,it call a console as the io server to target

my perpose is make the target print() to my MFC's console not the visualdsp++ .i want to

konw how the host get the I/O information from target ,and how to send the result to target

i think when target go into primio(),how it detect whether a host(my debugger)is exist.can

my MFC make connection to the primio() with _loneSharc or _Godot?

i have read the same question on blackfin directory, it use socket to get connection

from a mfc and the target and what the situation on tigersharc ?

ADIApproved Reply
Aug 23, 2012 00:00

Hi,

The primio device used for stdio is specifically configured to use the JTAG to pass data to the PC. If you are using another interface, you will need to register a new device for stdio. The basics are covered in the Compiler and Libraries Manual, in Chapter 3 "C and C++ Runtime Libraries Guide", section "File I/O Support: Extending I/O Support to New Devices".

Regards,

Craig.

EZAdministrator Reply
Aug 2, 2018 00:00

This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.

Thank you,
EZ Admin