Author |
Message |
Forum: BSP (Board Support Package) Topic: Virtual Hosting - host file access demo |
ianfeng |
Posted: Thu Aug 18, 2016 2:58 pm
|
|
Replies: 2 Views: 20516
|
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? |
ianfeng |
Posted: Thu Oct 01, 2015 3:10 pm
|
|
Replies: 0 Views: 16431
|
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) |
ianfeng |
Posted: Mon Sep 14, 2015 3:16 pm
|
|
Replies: 0 Views: 16041
|
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 |
ianfeng |
Posted: Wed May 20, 2015 5:09 pm
|
|
Replies: 0 Views: 17080
|
"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 |
ianfeng |
Posted: Tue Feb 10, 2015 12:07 pm
|
|
Replies: 0 Views: 17303
|
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 |
ianfeng |
Posted: Wed Dec 03, 2014 6:10 pm
|
|
Replies: 0 Views: 12695
|
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 |
ianfeng |
Posted: Wed Nov 12, 2014 5:51 pm
|
|
Replies: 1 Views: 14497
|
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 |
ianfeng |
Posted: Fri Sep 12, 2014 12:08 pm
|
|
Replies: 2 Views: 20516
|
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) |
ianfeng |
Posted: Tue Aug 12, 2014 11:20 am
|
|
Replies: 3 Views: 12494
|
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 |
ianfeng |
Posted: Fri Aug 01, 2014 6:47 pm
|
|
Replies: 2 Views: 21257
|
Please set reference in application project property as following picture.
Attachment:
zzz_ap.jpg [ 118.17 KiB | Viewed 21227 times ]
Following is AndeSight demo project for this feature.
Attachment:
zzz_ap.zip [36.73 KiB]
Downloaded 1599 times
|
|
|
Sort by: |