• why can't const array be in
    const char anarray[5]={1,3,5,7,9}; The above works well. But occupies a lot of mem. const char code anarray[5]={1,3,5,7,9}; Compliled and linked without an error prompt. But works bad....
  • uVision2: Can't set watch on 'state'
    My 'C' program has a variable called 'state'. It compiles & runs OK, but uVision won't let me set a watch on it: WS 1,state -----^ *** error 10: Syntax error I presume that 'state' must have some...
  • Modify stack dimension in main main application
    I am using an LPC2478 i have a firmware like this: 1) the bootloader hardcoded in the micro does some stuff and jumps to 0x00000000 2) my bootloader at 0x00000000 executes startup.s (where it...
  • Multi-dimensional arrays as parameters to functions
    I apologize for the ignorance. I have a function void Color_send(uint8_t (*color)[3], uint16_t len) The function have as parameter for RGB of ligth any as uint8_t light[100][3]; Solve...
  • why this code going infinity loop
    why his code going infinity....... ///////////////////////////////////// // Generated Initialization File // ///////////////////////////////////// #include "C8051F120.h" #include<stdio.h> ...