Andes Workshop

It is currently Fri Mar 29, 2024 6:40 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: AndeSight MCU v200 編譯intelj3程式(2013.6.28更新)
PostPosted: Wed Feb 15, 2012 4:10 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
(2012.4.11更新)
Attachment:
cygwin.gif
cygwin.gif [ 10.93 KiB | Viewed 19317 times ]

請用Andesight裡附的Cygwin的g++來編譯。

將Andesight v200 mcu的src-IntelJ3的code試著編看看。
(這裡附上原始檔,沒有任何修改)
Attachment:
ori-src-IntelJ3.zip [264.98 KiB]
Downloaded 1178 times

我參考檔案裡Makefile_win的寫法,用下面的參數:
注意,因為這一版多了一個util.cpp檔。要加上去。

Code:
g++ -g3 -O0 -Wall -DBUILD_ID=20120215 -DBRANCH_NAME=\"aaa\" -DCOMMIT_ID=\"bbb\" IntelJ3.cpp util.cpp -lwsock32 -lm -lgdi32 -luser32 -lcfgmgr32 -lsetupapi -lcomctl32 -o IntelJ3.exe


BRANCH_NAME及COMMIT_ID是一個常數字串,
其中BRANCH_NAME及COMMIT_ID是Andes RD debug用的,所以我隨便填。
Attachment:
p2.gif
p2.gif [ 15.14 KiB | Viewed 19615 times ]

上面還有1個error,'typedef char INT8'與內定的衝突。
我們找一下它所說的定義。
在C:\MinGW\include\basetsd.h裡,寫
extern "C" {
#endif
typedef signed char INT8;
typedef signed short INT16;
typedef int LONG32, *PLONG32;

所以我將util.h裡的這一行註解掉。
/* typedef char INT8; */

Attachment:
p3.gif
p3.gif [ 5.69 KiB | Viewed 19615 times ]

編譯完成。下面是我改過1行的code。
Attachment:
src-IntelJ3.zip [533.4 KiB]
Downloaded 1204 times


Attachments:
p1.gif
p1.gif [ 9.61 KiB | Viewed 19617 times ]


Last edited by cindy on Fri Jun 28, 2013 2:10 pm, edited 4 times in total.
Top
 Profile Send private message E-mail  
 
 Post subject: Re: AndeSight MCU v200 編譯intelj3程式
PostPosted: Thu Feb 23, 2012 7:30 pm 
Offline

Joined: Thu Dec 29, 2011 7:25 pm
Posts: 3
intelj3程式 是燒入到 flash ,那有燒入到 ILM的程式嗎??


Top
 Profile Send private message E-mail  
 
 Post subject: Re: AndeSight MCU v200 編譯intelj3程式
PostPosted: Sat Feb 25, 2012 4:31 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
如果ILM上接的是SRAM,
用gdb load code即可。
user在ILM上接flash是沒問題的,
可以參考intelj3的burner寫法。


Top
 Profile Send private message E-mail  
 
 Post subject: Re: AndeSight MCU v200 編譯intelj3程式
PostPosted: Fri Mar 02, 2012 3:20 pm 
Offline

Joined: Thu Dec 29, 2011 7:25 pm
Posts: 3
目前是 ILM 接到SRAM。
因為使用Andes 不久,請問有沒有 "gdb load code"的步驟 或 教學文件?

目的:證明 由PC可直接燒錄 ILM的SRAM.(或有更好方法可提供)


Top
 Profile Send private message E-mail  
 
 Post subject: Re: AndeSight MCU v200 編譯intelj3程式
PostPosted: Mon Mar 05, 2012 4:24 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
您可以參考這一篇
viewtopic.php?f=16&t=201
其中lo就是load code。

如果flash接在ILM上,
用intelj3燒錄沒問題,有user這樣子改寫是正常的。


Top
 Profile Send private message E-mail  
 
 Post subject: Re: AndeSight MCU v200 編譯intelj3程式
PostPosted: Tue Mar 06, 2012 12:54 pm 
Offline

Joined: Thu Dec 29, 2011 7:25 pm
Posts: 3
所以 使用gdb load code ,
會把load 的檔案 存在 ILM上的SRAM ??
有辦法看到 SRAM 的 內容嗎?


Top
 Profile Send private message E-mail  
 
 Post subject: Re: AndeSight MCU v200 編譯intelj3程式
PostPosted: Tue Mar 06, 2012 4:40 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
所以 使用gdb load code ,
會把load 的檔案 存在 ILM上的SRAM ??
-->是的,但是如果你是用N8上,
在bsp 310的版本有一個bug,
直接load code有問題,要用restore bin檔。
在bsp v310p1已經修正。

有辦法看到 SRAM 的 內容嗎?
-->請參考這一篇
viewtopic.php?f=23&t=538


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 14 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group