Andes Workshop

It is currently Sat Oct 19, 2019 6:40 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: 9034


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: 5767


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: 5614


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. https://gcc.gnu.org/onlinedocs/cpp/Concatenation.html

 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: 6516


"objcopy" has following option to do it.
Code:
--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: 6714


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: 5328


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: 6443


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: 9034


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: 5909


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: 9197


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

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


All times are UTC + 8 hours [ DST ]


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