Andes Workshop
http://forum.andestech.com/

A Demo Code which show how to use fread For AndeSight
http://forum.andestech.com/viewtopic.php?f=6&t=718
Page 1 of 1

Author:  HuJin [ Wed Jul 03, 2013 1:00 pm ]
Post subject:  A Demo Code which show how to use fread For AndeSight

This is a demo code about how to use fread. We will show the steps for how to run this demo in Andesight v200 STD.

Step1: Download the attached file and put it somewhere. This is a project file which can be directly impoted in Andesight v200 STD.
Attachment:
testbitmap.zip [45.85 KiB]
Downloaded 912 times


Step2: Open Andesight v200 STD. Click “File” --》 “Import...”then import the project file.
Attachment:
testbitmap1.png
testbitmap1.png [ 43.79 KiB | Viewed 8080 times ]

Attachment:
testbitmap2.png
testbitmap2.png [ 40.98 KiB | Viewed 8080 times ]


step3: Check the target board (or choose your target chip and toolchain). In this demo we use "ADP-AG101P-4GB-N1337-FPU" as target chip and "nds32le-elf-mculib-v3" as toolchain.
Attachment:
testbitmap3.png
testbitmap3.png [ 44.18 KiB | Viewed 8080 times ]


Step4: Compile the project and run it. The results of this demo code will show in Console View.
Attachment:
testbitmap4.png
testbitmap4.png [ 68.68 KiB | Viewed 8080 times ]

Attachment:
testbitmap6.png
testbitmap6.png [ 71.7 KiB | Viewed 8080 times ]


Note:
In this article, we assume that Andesight v200 STD's workspace is under $WORKPATH\Andestech\AndeSight200STD\ide_64\workspace or
$WORKPATH\Andestech\AndeSight200STD\ide\workspace, otherwise the testbitmap.c in the demo project should be modified based on your enviroment or it can't run normally.

Page 1 of 1 All times are UTC + 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/