Andes Workshop

It is currently Wed Apr 24, 2024 2:48 pm

All times are UTC + 8 hours [ DST ]


Search found 487 matches
Search these results:

Author Message

 Forum: BSP (Board Support Package)   Topic: 測量板子的實際性能(performance monitor功能)

Posted: Thu May 19, 2011 5:15 pm 

Replies: 0
Views: 7804


在vep裡面, 使用profiling功能計算執行程式所需要的cycle數或instruction數。 在板子上,我們可以使用performance monitor的功能來測量實際的cycle數或instruction數。 BSP v310beta User Manual 裡第81頁有程式範例的說明。 我們可以看這個程式學習。 如果在Linux裡,可以用Oprofile這個tool。 另外,在AndeStar system privilege Architecture的9.6.2節 Performance Counter Control Register裡, 有PFM_CTL這個暫存器的功能說...

 Forum: AndeSight STD   Topic: Ubuntu裡安裝AndeSight v1.4的license error問題

Posted: Thu May 19, 2011 11:52 am 

Replies: 0
Views: 10172


在Ubuntu安裝AndeSight v1.4時,
遇到license check error問題。
後來我發現,Ubuntu上的flexnet(license 控制軟體)只認得eth0,
如果只有一張網路卡時,要記得改名為eth0。

 Forum: Embedded Linux   Topic: 程式工具_程式瀏覽工具:Source Navigator IDE

Posted: Thu May 19, 2011 11:43 am 

Replies: 0
Views: 14220


真的很好用!也有Windows版。

Windows版本的下載路徑:
http://sourcenav.sourceforge.net/index.html

點選downloads are here可以跳到下一頁。
Attachment:
download0.gif
download0.gif [ 30.2 KiB | Viewed 14207 times ]


其中有Windows版,抓下來解壓縮就可以了。
Attachment:
download.gif
download.gif [ 24.04 KiB | Viewed 14207 times ]


執行目錄裡的bin/snavigator.exe即可
Attachment:
source-navgivator0.gif
source-navgivator0.gif [ 27.13 KiB | Viewed 14207 times ]

下面是操作畫面,執行速度快,介面漂亮。
Attachment:
source-navgivator.gif
source-navgivator.gif [ 22.42 KiB | Viewed 14207 times ]

 Forum: BSP (Board Support Package)   Topic: 減少code size或加快speed的gcc最佳化選項

Posted: Thu May 05, 2011 3:55 pm 

Replies: 0
Views: 8969


對於MCU的廠商來說,code size即為成本,所以每家MCU廠商努力將code size最小化,其中的技術很多,比如說用linker script做sections的overlay。 我分享一些最基本的gcc最佳化選項,最佳化code size或是使執行速度最快,請見附件的ppt檔案。如果您的code包含I/O讀寫不希望最佳化改變code,記得在code前面加上volatile的關鍵字。 裡面寫的sio_printf是一個function直接從UART把字串輸出。不要採用printf,因為它經過system call會造成較大的code size。 Advanced Programming...

 Forum: AndeSight MCU/RDS   Topic: AndeSight v1.4簡介投影片

Posted: Thu May 05, 2011 2:36 pm 

Replies: 0
Views: 8610


AndeSight是一套基於Eclipse的IDE tool,我分享簡介給大家。AndeSight v1.4是去年的產品,最近AndeSight v2.0正在測試階段,近期會發表。新的AndeSight v2.0的UI簡化、執行速度快,到時候再分享給大家。 ------ AndeSight是晶心科技提供的一種基於nds32架構開發嵌入式工程的圖形化整合式開發環境。主要由AndeSight IDE、AndESLive和nds32工具集等三個部分組成。AndeSight IDE為工程師提供了各種友好的介面,包括對嵌入式工程做編輯、編譯、運行、除錯或者評測等等操作。 AndESLive提供了基於nd...

 Forum: Embedded Linux   Topic: the message "Unhandled unaligned access exception"

Posted: Thu Apr 28, 2011 5:40 pm 

Replies: 0
Views: 13418


Q:We also found the message "Unhandled unaligned access exception" appears when we load Linux kernel module. Shall we need to consider the alignment issue in our code or your compiler will deal with this issue? A:Andes compiler和x86不同,我們不會自動處理unaligned的情況。 如果您的module是開機之後才insert,有一個可以處理的辦法:...

 Forum: Embedded Linux   Topic: the message "unsupported relocation type 0"

Posted: Thu Apr 28, 2011 5:38 pm 

Replies: 0
Views: 13096


Q:We found the message "unsupported relocation type 0" appears when we load Linux kernel module which includes rwlock_init(). How can we solve this issue? A: 有2種可能性 (1)出現這個message通常是編譯driver所使用的toolchain,和 編譯kernel所使用的toolchain版本不一致。要改用同一個版本的toolchain來編譯。 (2)當您寫shared library時,裡面有一些code非pi...

 Forum: AndeSight MCU/RDS   Topic: AC97播pcm檔案

 Post subject: AC97播pcm檔案
Posted: Thu Apr 28, 2011 4:28 pm 

Replies: 0
Views: 9010


AndeSight裡沒有現成的AC97播放PCM檔案的程式。
使用demo下的MP3來改code,把它播PCM的部份抓出來。
利用debug去看內容比較快。

記得前面一些initial的內容要保留,例如init_ac97(audio.samplerate, audio.channels, audio.samplesize);等等
如果有人做出來再分享一下...感恩!(下面的圖點擊可以放大)

Attachment:
ac97.gif
ac97.gif [ 76.25 KiB | Viewed 9010 times ]

 Forum: AndeShape   Topic: 使用gdb script在板子上連續跑2個程式

Posted: Thu Apr 14, 2011 10:40 am 

Replies: 0
Views: 14146


gdb script類似Linux裡的shell script, 可以使gdb執行多個指令。 比方說下面這個例子。 target remote :9901 file hello1.adx load b empty continue clear targetresetrun file hello2.adx load b empty continue quit 執行步驟: (1)打開ICEman p1.gif (2)執行nds32le-elf-gdb.exe -x run_program.txt p2.gif (3)可以看到執行完2個程式 p3.gif 下面的程式碼大家可以試試。 這2個*.adx...

 Forum: AndeSight STD   Topic: AndeSight v1.4簡介

 Post subject: AndeSight v1.4簡介
Posted: Mon Apr 11, 2011 3:06 pm 

Replies: 0
Views: 9671


AndeSight v1.4是一套完整的IDE,
可以compile、debug、profile。
下面是簡介:
Sort by:  
Page 47 of 49 [ Search found 487 matches ]


All times are UTC + 8 hours [ DST ]


Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group