Andes Workshop

Virtual Hosting - host file access demo
Page 1 of 1

Author:  ianfeng [ Fri Sep 12, 2014 12:08 pm ]
Post subject:  Virtual Hosting - host file access demo

With Virtual Hosting feature, we can open/read/write files of host computer.
* ICEman checks the system call and passes to GDB if it’s supported, then invokes the I/O service on the host side and sending the result back to ICEman.

Turn On/Off Virtual Hosting:
* Via ICEman option when initiating.
--- Turn ON – “-j” or “--enable-virtual-hosting”
--- Turn OFF – “-J” or “--disable-virtual-hosting”

* Via GDB command during runtime.
--- Turn ON – “monitor virtual hosting on”
--- Turn OFF – “monitor virtual hosting off”
--- Query status – “monitor virtual hosting query”

Please refer this AndeSight demo project:
Attachment: [189.42 KiB]
Downloaded 980 times

This demo project will open "D:\aaa.txt" file, and write/read it.
"printf" will output string to file instead of UART.

Note: It have to active virtual hosting in ICEman or GDB.
Please new an empty file "D:\aaa.txt" first.
It seens 'w+' can not create new file.

The default CPU is N968A and platform is AG101P.
Change "Target Chip" for other Andes CPU.

Run project:
Right-click on project, and select
"Debug As --> (DSF) C/C++ Application"

Author:  cindy [ Fri Sep 12, 2014 4:28 pm ]
Post subject:  Re: Virtual Hosting - host file access demo

The ICEman setting can be set in AndeSight.
Please refer to the following pictures:

vir1.png [ 10.55 KiB | Viewed 15727 times ]

vir2.png [ 74.37 KiB | Viewed 15727 times ]

Author:  ianfeng [ Thu Aug 18, 2016 2:58 pm ]
Post subject:  Re: Virtual Hosting - host file access demo

This option only for BSP v3.2.1 or AndeSight v2.0.1 MCU.

For AndeSight v2.1.1 or BSP v4.0.x, please use compiler option '-mvh'.
Please refer programming guide for detail description.

Page 1 of 1 All times are UTC + 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group