Andes Workshop

It is currently Sun Oct 06, 2024 6:09 am

All times are UTC + 8 hours [ DST ]


Search found 42 matches
Search these results:

Author Message

 Forum: AndeSight MCU/RDS   Topic: Share the c file that use the static library

Posted: Tue Jan 27, 2015 3:21 pm 

Replies: 1
Views: 18309


This demo is using the "demo-prinft" at AE210p-N968A. 1. Import the demo-printf then modify some setting for AE210p-N968A. 2. Create the static library project that platform use AE210p-N968A. 3. Setting the share file method. 3-1 Right click ->properties Project References 2015_01_27_14_11...

 Forum: Programming   Topic: c struct - the variable using memory

Posted: Tue Dec 16, 2014 5:06 pm 

Replies: 0
Views: 17187


1. struct Test1{ unsigned int ui1 ; unsigned int ui2 ; char c1; char c2; }; The memory map test1.jpg The assemble code t1.ui1=1; c8e: b0 07 addri36.sp $r0,#0x1c c90: 84 21 movi55 $r1,#0x1 c92: b6 20 swi450 $r1,[$r0] t1.ui2=2; c94: b0 07 addri36.sp $r0,#0x1c c96: 84 22 movi55 $r1,#0x2 c98: a8 41 swi3...

 Forum: AndeSight MCU/RDS   Topic: How to check the AndeSight toolchain environment variable

Posted: Mon Dec 01, 2014 5:16 pm 

Replies: 1
Views: 18570


1. Right click
Attachment:
2014_12_01_15_50_32_.jpg
2014_12_01_15_50_32_.jpg [ 43.93 KiB | Viewed 18570 times ]


2. Keyin "echo $PATH"
Attachment:
2014_12_01_15_51_52_.jpg
2014_12_01_15_51_52_.jpg [ 72.15 KiB | Viewed 18570 times ]

 Forum: AndeSight MCU/RDS   Topic: Partial Optimization

 Post subject: Re: Partial Optimization
Posted: Tue Nov 18, 2014 6:42 pm 

Replies: 1
Views: 10668


About the optimize("Ox") , optimize level is a limitation that no support "Os1" and "Os2". Because the "Os1" and "Os2" are defined by Andes not standard GCC optimize level. (2) Syntax: http://gcc.gnu.org/onlinedocs/gcc/Funct ... agmas.html #pragma GC...

 Forum: AndeSight MCU/RDS   Topic: Edit the memory region at MCU Program Debug

Posted: Wed Oct 08, 2014 6:01 pm 

Replies: 0
Views: 9351


Edit the memory region at MCU Debug
Attachment:
未命名.jpg
未命名.jpg [ 113.72 KiB | Viewed 9351 times ]


gdb command example
Code:
load
i mem
d mem 1
mem 0x00000000 0x00800000 rw 32 nocache
i mem

 Forum: Programming   Topic: Specify the location of "common_ISR_wrapper"

Posted: Wed Oct 08, 2014 2:58 pm 

Replies: 1
Views: 10695


For XIP mode We put common_ISR_wrapper to a section ".nds32_aa". .section .nds32_aa, "ax" (The file is crt0.S) .section .nds32_aa, "ax" .align 2 common_ISR_wrapper: SAVE_ALL_HW la $r1, ISR_TABLE lw $r1, [$r1+$r0<<2] jral $r1 RESTORE_ALL_HW iret Then we modify the sag fi...

 Forum: AndeStar   Topic: globe pointer($gp) introduce

Posted: Mon Sep 15, 2014 4:08 pm 

Replies: 1
Views: 19457


1、globe pointer($gp) define 1.1、It is the address in the middle of data sections. 1.2、Linker places scalar data around it so that they can be accessed efficiently by $gp-based load/store instructions and their addresses can be calculated efficiently by $gp-based add instructions. 2、$gp relative inst...

 Forum: AndeSight MCU/RDS   Topic: set trust-readonly-sections off

Posted: Fri Sep 12, 2014 3:22 pm 

Replies: 1
Views: 9713


The MCU Program support the "set trust-readonly-sections off" item.
Attachment:
debug.jpg
debug.jpg [ 115.9 KiB | Viewed 9264 times ]

 Forum: BSP (Board Support Package)   Topic: Assigned library file at fix address

Posted: Wed Sep 10, 2014 10:52 am 

Replies: 0
Views: 13265


The SAG tool not support assigned library syntax , but using product general syntax then modify small syntax. ex: Assigned the libtest.a at 0x20000 at SAG sag.jpg LD file by SAG tool ".text_*libtest.a" . : AT(NDS_SAG_LMA){ KEEP( *libtest.a (.text .stub .text.* .gnu.linkonce.t.*)) KEEP(*o(....

 Forum: BSP (Board Support Package)   Topic: List the every section size at binary

Posted: Tue Aug 26, 2014 7:18 pm 

Replies: 0
Views: 13822


1、Addition the `find.exe src/ -name "*.o"` at Size
Attachment:
1.jpg
1.jpg [ 167.85 KiB | Viewed 13822 times ]

2、List the detail section at Console
Attachment:
2.jpg
2.jpg [ 76.02 KiB | Viewed 13822 times ]
Sort by:  
Page 2 of 5 [ Search found 42 matches ]


All times are UTC + 8 hours [ DST ]


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