Andes Workshop http://forum.andestech.com/ |
|
AndeSight MCU v200 編譯intelj3程式(2013.6.28更新) http://forum.andestech.com/viewtopic.php?f=23&t=532 |
Page 1 of 1 |
Author: | cindy [ Wed Feb 15, 2012 4:10 pm ] | ||
Post subject: | AndeSight MCU v200 編譯intelj3程式(2013.6.28更新) | ||
(2012.4.11更新) Attachment: cygwin.gif [ 10.93 KiB | Viewed 19421 times ] 請用Andesight裡附的Cygwin的g++來編譯。 將Andesight v200 mcu的src-IntelJ3的code試著編看看。 (這裡附上原始檔,沒有任何修改) Attachment: 我參考檔案裡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 [ 15.14 KiB | Viewed 19719 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 [ 5.69 KiB | Viewed 19719 times ] 編譯完成。下面是我改過1行的code。 Attachment:
|
Author: | xy4301109 [ Thu Feb 23, 2012 7:30 pm ] |
Post subject: | Re: AndeSight MCU v200 編譯intelj3程式 |
intelj3程式 是燒入到 flash ,那有燒入到 ILM的程式嗎?? |
Author: | cindy [ Sat Feb 25, 2012 4:31 pm ] |
Post subject: | Re: AndeSight MCU v200 編譯intelj3程式 |
如果ILM上接的是SRAM, 用gdb load code即可。 user在ILM上接flash是沒問題的, 可以參考intelj3的burner寫法。 |
Author: | xy4301109 [ Fri Mar 02, 2012 3:20 pm ] |
Post subject: | Re: AndeSight MCU v200 編譯intelj3程式 |
目前是 ILM 接到SRAM。 因為使用Andes 不久,請問有沒有 "gdb load code"的步驟 或 教學文件? 目的:證明 由PC可直接燒錄 ILM的SRAM.(或有更好方法可提供) |
Author: | cindy [ Mon Mar 05, 2012 4:24 pm ] |
Post subject: | Re: AndeSight MCU v200 編譯intelj3程式 |
您可以參考這一篇 viewtopic.php?f=16&t=201 其中lo就是load code。 如果flash接在ILM上, 用intelj3燒錄沒問題,有user這樣子改寫是正常的。 |
Author: | xy4301109 [ Tue Mar 06, 2012 12:54 pm ] |
Post subject: | Re: AndeSight MCU v200 編譯intelj3程式 |
所以 使用gdb load code , 會把load 的檔案 存在 ILM上的SRAM ?? 有辦法看到 SRAM 的 內容嗎? |
Author: | cindy [ Tue Mar 06, 2012 4:40 pm ] |
Post subject: | Re: AndeSight MCU v200 編譯intelj3程式 |
所以 使用gdb load code , 會把load 的檔案 存在 ILM上的SRAM ?? -->是的,但是如果你是用N8上, 在bsp 310的版本有一個bug, 直接load code有問題,要用restore bin檔。 在bsp v310p1已經修正。 有辦法看到 SRAM 的 內容嗎? -->請參考這一篇 viewtopic.php?f=23&t=538 |
Page 1 of 1 | All times are UTC + 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |