Andes Workshop

It is currently Wed Apr 17, 2024 3:10 am

All times are UTC + 8 hours [ DST ]

Search found 23 matches
Search these results:

Author Message

 Forum: BSP (Board Support Package)   Topic: Virtual Hosting - host file access demo

Posted: Thu Aug 18, 2016 2:58 pm 

Replies: 2
Views: 19161

This option only for BSP v3.2.1 or AndeSight v2.0.1 MCU.

For AndeSight v2.1.1 or BSP v4.0.x, please use compiler option '-mvh'.
Please refer programming guide for detail description.

 Forum: Programming   Topic: How to align functions?

 Post subject: How to align functions?
Posted: Thu Oct 01, 2015 3:10 pm 

Replies: 0
Views: 15433

Use GCC compiler option " -falign-functions=n ": Align the start of functions to the next power-of-two greater than n. " -fno-align-functions " and " -falign-functions=1 " are equivalent and mean that functions will not be aligned. "-O2" and "-O3" op...

 Forum: Programming   Topic: What does "##" mean in a macro? (Concatenation)

Posted: Mon Sep 14, 2015 3:16 pm 

Replies: 0
Views: 15024

We may see "##" in Andes demo project, such as below line. #define HW_ISR(n) HW##n##_ISR What does it mean? The ‘##’ preprocessing operator performs token pasting. For detail information, please refer following website.

 Forum: Programming   Topic: How to make binary file to specify size with padded 0 value

Posted: Wed May 20, 2015 5:09 pm 

Replies: 0
Views: 16080

"objcopy" has following option to do it.
--pad-to <addr>      Pad the last section up to address <addr>

It will pad 0 values behind binary file until address <addr>.

 Forum: Programming   Topic: How to re-direct vector table

Posted: Tue Feb 10, 2015 12:07 pm 

Replies: 0
Views: 16312

Andes N705's IVB (Interruption Vector Base) can not be changed, and usually it is stored in ROM. If you need to modify the contain in running time, you may re-direct it to flash. This is a AndeSight demo project to re-direct vector table. AndeSight version: AndeSight v2.1.0 Target Platform: XC7 with...

 Forum: Embedded Linux   Topic: Error "unsupported relocation type 94" when insert module

Posted: Wed Dec 03, 2014 6:10 pm 

Replies: 0
Views: 12051

Question: Kernel will hand when insert module built by v3 Platform: XC7 with N1068A+AG101P Kernel: BSP321 built with nds32le-linux-glibc-v3 Module: ftgpio010 When inserting "ftgpio010.ko" module which is built by nds32le-linux-glibc-v3 toolchain, kernel will display following message and ...

 Forum: BSP (Board Support Package)   Topic: Check to instruction 16/32 bit format

Posted: Wed Nov 12, 2014 5:51 pm 

Replies: 1
Views: 13499

With assembly code. for example in demo-int project. .macro SAVE_ALL pushm $r0, $r5 pushm $r15,$r30 push_d0d1 push_ifc_lp mfsr $r0, $IPC lbi $r1,[$r0+#0x0] andi $r1,$r1,#0xff srli $r1,$r1,#7 beqz $r1,#6 addi $r0, $r0, 2 j8 #4 addi $r0, $r0, 4 mfsr $r1, $IPSW pushm $r0, $r1

 Forum: BSP (Board Support Package)   Topic: Virtual Hosting - host file access demo

Posted: Fri Sep 12, 2014 12:08 pm 

Replies: 2
Views: 19161

With Virtual Hosting feature, we can open/read/write files of host computer. * ICEman checks the system call and passes to GDB if it’s supported, then invokes the I/O service on the host side and sending the result back to ICEman. Turn On/Off Virtual Hosting: * Via ICEman option when initiating. ---...

 Forum: Programming   Topic: Cut section (objcopy option -R)

Posted: Tue Aug 12, 2014 11:20 am 

Replies: 3
Views: 12200

Only output specific section .section1 from .adx file to .bin file.

Only section command:
nds32le-elf-objcopy -S -O binary -j .section1 "cut-section-remove.adx" output/only-section1.bin

The output "only-section1.bin" will be 0x000004d2 = 1234.

 Forum: AndeSight MCU/RDS   Topic: 如何將library file加入makefile dependency

Posted: Fri Aug 01, 2014 6:47 pm 

Replies: 2
Views: 19811

Please set reference in application project property as following picture.
zzz_ap.jpg [ 118.17 KiB | Viewed 19781 times ]

Following is AndeSight demo project for this feature.
Attachment: [36.73 KiB]
Downloaded 1433 times
Sort by:  
Page 1 of 3 [ Search found 23 matches ]

All times are UTC + 8 hours [ DST ]

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