Andes Workshop

It is currently Fri Sep 29, 2023 10:13 pm

All times are UTC + 8 hours [ DST ]

Search found 23 matches
Search these results:

Author Message

 Forum: Embedded Linux   Topic: Burn Linux Kernel image into flash in Andes EVB board

Posted: Wed Jul 02, 2014 3:09 pm 

Replies: 0
Views: 10488

Using boot bode to burn Linux Kernel image into flash: 1. Insert FAT32 format SD card with Linux Kernel image file(bpi321). 2. Boot up EVB board. 3. Press 'SW4' GPIO button to get in "Setup & Diagnosis" command menu. 4. Key in "55" in terminal to get in CLI (Command List Int...

 Forum: BSP (Board Support Package)   Topic: linker script之EXCLUDE_FILE語法

Posted: Wed May 07, 2014 10:53 am 

Replies: 3
Views: 22953

關於 EXCLUDE_FILE 的使用範例,請參考回覆中的"" project。

 Forum: Programming   Topic: 如何將內建library的function固定在某些section裡

Posted: Wed May 07, 2014 10:48 am 

Replies: 1
Views: 11953 如附件””的demo。 它將libc.a中的*printf.o跟*atoi.o放到特定的section0中。 先在nds32.sag中新增section0, 使用Linker script generation "nds_ldsag.exe" utility 產生nds32.ld檔案後, 手動修改nds32.ld檔,將*printf.o跟*atoi.o放到section0中。 .text : { *(EXCLUDE_FILE (*libc.a:*atoi.o) .text .stub EXCLUDE_FILE ...

 Forum: Programming   Topic: Size and Byte Alignment of Primitive Data Types

Posted: Tue May 06, 2014 2:58 pm 

Replies: 0
Views: 6561

#include <stdio.h> struct _test { char c0; short s0; char c1; int i0; char c2; float f0; char c3; char c4; } test; int main() { test.c0 = 'a'; test.s0 = 0x1234; test.c1 = 'b'; test.i0 = 0x12345678; test.c2 = 'c'; test.f0 = 12.34; test.c3 = 'd'; test.c4 = 'e'; printf(" address is: 0x%x - char 1...

 Forum: Programming   Topic: Get PC (v3m)

 Post subject: Re: Get PC (v3m)
Posted: Mon Apr 28, 2014 7:30 pm 

Replies: 1
Views: 8424

Sample code: For V3 toolchain: unsigned int ui_val; __asm__ ("MFUSR\t%0,$pc" : "=r" (ui_val) :); For V3M toolchain: $lp will be used, and it must be backuped and restored. unsigned int ui_val; __asm__ ("addi\t$r0,$lp,0\n\t" \ "JAL 4\n\t" \ "addi\t%0,$lp,...

 Forum: BSP (Board Support Package)   Topic: Build ramdisk error in Ubuntu 12.04

Posted: Tue Apr 08, 2014 12:04 pm 

Replies: 0
Views: 5881

In Ubuntu 12.04, when building ramdisk in running shell script step "sh -x -EL -install ../disk", it will display "unexpected operator" error. e1.jpg It is due to the default "sh" is linking to "dash" which is more lightweight than "bash&...

 Forum: AndeSight STD   Topic: N903A-S VEP模擬問題

 Post subject: Re: N903A-S VEP模擬問題
Posted: Fri Mar 14, 2014 10:31 am 

Replies: 2
Views: 10896

"--config-isa-div on" and ""--config-isa-mac on" two options are replaced by "--config-nod 0" if ISA version is above v2. In this case, these two options are redundant and will be ignored by our simulator. Our new simulator version does more option testing and prov...

 Forum: BSP (Board Support Package)   Topic: Build gdbserver with BSP320

 Post subject: Build gdbserver with BSP320
Posted: Wed Jan 15, 2014 5:18 pm 

Replies: 0
Views: 6183

To build gdbserver, with following shell script. Change file name to "". Usage of shell script: readme_gdbserver.txt To build gdbserver: 1. With gdbserver.tgz: #!/bin/sh sh -x ./ \ --src-file=`pwd`/gdbserver.tgz \ --use-toolchain-d...

 Forum: BSP (Board Support Package)   Topic: Can not insert module in Linux built by BSP320 with N1337

Posted: Wed Jan 15, 2014 2:35 pm 

Replies: 0
Views: 6372

===== Question ===== With N1337, Toolchain: nds32le-linux-uclibc-v3 Linux version Ramdisk and Linux kernel are built with it under Ubuntu 10.04. Kernel config: xc5_defconfig Error messages when insert module. / # insmod hello.ko hello: out of bounds relocation insmod: can't insert 'hello.ko': invali...

 Forum: AndeSight MCU/RDS   Topic: Dhrystone project -- Build and Run

Posted: Wed Dec 25, 2013 12:22 pm 

Replies: 0
Views: 6360

Import project: 1. Execute AndeSight v2.0.1 MCU. 2. Right-click in "Project Explorer", and select ”Import…”. 3. Select "General" --> "Existing Projects into Workspace". 4. Select "Select archive file" and click "Browse..." button to choice ”AndeSigh...
Sort by:  
Page 2 of 3 [ Search found 23 matches ]

All times are UTC + 8 hours [ DST ]

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