• remainer of division
    C has one shortcoming that keeps bothering me. When converting a number from binary to decimal, we typically do something like : int n,d; for (i=0; i<5; ++i) { d=n%10; n/=10; display_area...
  • How to reserve some memory area in RAM?
    Hi, I am doing flash programming using IAP commands. In LPC datasheet, I am seeing, Flash programming commands use 16 B of RAM from 0x10089FF0 to 0x10089FFF. Applications making use of...
  • Calculate free remaining stack space
    Hi, I would like to calculate the free remaining stack space during run time. I tried to access the r13 register with: LPSTR pcSP; { register volatile int mySP __asm("sp"); pcSP= (LPSTR)mySP;...
  • NO_INIT data area
    I am converting from the IAR compiler to Keil and cannot find reference to defining segments like I used to. Specificly I used a seg known as NO_INIT in XDATA for variables I did not want altered on power...
  • C166 : locate some variables in a specified area memory
    Hello, I use Keil µvision 3.60 I need to store some variables from different files.c in the same memory area in order. I saw there are link directives such ORDER, SECTIONS, GROUPS, but it seems these...