Andes Workshop

It is currently Tue Mar 19, 2024 6:00 pm

All times are UTC + 8 hours [ DST ]


Search found 17 matches
Search these results:

Author Message

 Forum: Programming   Topic: How to use global variable in inline assembly

Posted: Fri Apr 20, 2018 11:19 am 

Replies: 0
Views: 27061


Sometime programmer need inline assembly programming, 《Andes Programming Guild》 gets an chapter to illustrate how to do inline assembly programming and shows several examples. It shows how to use global variable which is defined in C code: char arr[4] = {0,1,2,3}; int main (void) { printf("hell...

 Forum: BSP (Board Support Package)   Topic: Remove unused section vs SAG KEEP vs -flto

Posted: Tue Dec 13, 2016 12:07 pm 

Replies: 0
Views: 12567


As we know, compiler option "-ffunction-sections -fdata-sections" will remove unused funciton sections and data sectons. As for this option, we also need know follow things: 1. The unused sections is removed in linker time, so linker option "--gc-sections" can list the informatio...

 Forum: AndeSight MCU/RDS   Topic: A tip to use Andes DSP Library

Posted: Fri Aug 19, 2016 11:22 am 

Replies: 1
Views: 20948


A formal article show us how to use Andes DSP Library: http://forum.andestech.com/viewtopic.php?f=23&t=924 This article show two attentional facts and responding tip. Fact1: Some fucntions in Andes DSP Library will call functions in Math Library. Ex. nds32_sqrt_f32 will call sqrtf(). That means ...

 Forum: Programming   Topic: Software overlay demo code (refine)

Posted: Tue Dec 15, 2015 5:08 pm 

Replies: 0
Views: 16407


AndesCore supports both software overlay and hardware overlay. For hardware overlay, please refer http://forum.andestech.com/viewtopic.php?f=16&t=861&view=previous to get sample code, it needs OSC IP. For software overlay, the original sample code can be get from: http://forum.andestech.com/...

 Forum: BSP (Board Support Package)   Topic: Disable push25/pop25 in BSP400

Posted: Thu Apr 02, 2015 10:09 pm 

Replies: 0
Views: 13132


AndeStar has been evolved to V3(the third generation). V3 has more better code size advantage than V2 because we design some new instructons. One example is push25 & pop25 , both are 16 bits instructions and can handle prolog and epilog while in V2 compiler has to use 32 bit instruction( smw &am...

 Forum: AndeSight MCU/RDS   Topic: A method to measure Stack Size in AndeSight

Posted: Mon Feb 02, 2015 9:49 am 

Replies: 1
Views: 16675


This article shares a method to measure stack size in AndeSight, the core idea is that we fill the stack region with specific value 0xff after loading the elf file to target,then check the stack region after running to the end. OK we take the hello-world project as the example to show how to impleme...

 Forum: BSP (Board Support Package)   Topic: Behavior of BSP400 to Handle 16-bit and 32-bit Instructions

Posted: Thu Jan 08, 2015 12:33 pm 

Replies: 0
Views: 13796


AndeStar is 16-bit/32-bit mixable ISA from when it's born. Most of 16-bit instructions are a frequently-used subset of 32-bit instructions. In BSP v4.0.0, we transfer 32-bit instruction to 16-bit in order to reduce code size, but for performance considerations, function and branch target's first ins...

 Forum: AndeSight MCU/RDS   Topic: General Exception Definition & How to handle it

Posted: Tue Dec 30, 2014 6:08 pm 

Replies: 0
Views: 12549


In our SPA document, there is a table to describe general exception,as: General Exception.png For Etype => Trap , If use instruction “trap”, it will occur; For Etype => Reserved value, if software try to write a reserved cpu register, it will occur; For Etype => Reserved instruction, if software try...

 Forum: BSP (Board Support Package)   Topic: Simply Expand Sprintf() in MCUlib

Posted: Fri Oct 24, 2014 10:25 am 

Replies: 0
Views: 11779


There is known limitation of MCUlib's sprintf() that it can't support "05.2f" format (refer 《Andes Programming guide》 Chart "Andes MCUlib" ) while newlib support this well. If customers want this feature of sprintf() and also want to choose mculib because benefits of codesize, fo...

 Forum: BSP (Board Support Package)   Topic: Sample Code of IVB Changing

 Post subject: Sample Code of IVB Changing
Posted: Sat Oct 11, 2014 7:07 pm 

Replies: 0
Views: 12518


User may want to change IVBASE when the system has booted up and enter into normal stage. Here is an example demo (built on demo-int) to show how to do it. As: Step1: Add new vector table in crt0.S. pic1.png Step2: Implement new ISR in interrupt.c pic2.png Step3: Place the new vector table to the ne...
Sort by:  
Page 1 of 2 [ Search found 17 matches ]


All times are UTC + 8 hours [ DST ]


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