• Static declaration error
    Code: static unsigned int timer[num_timers]; Error: TIMER_MODULE.C(6): error C221: non-constant case/dim expression An error has been generated while declaring an array in static. Or else...
  • Variable declared as static const is being discarded even when used
    Version: 7.3.1 Let's consider following example: static const uint32_t y = 5; void return_variable(uint32_t* val) { *val = y; } int main(void) { uint32_t x = 0; return_variable(&x); } I...
  • STATIC VARIABLE
    Hi experts please don't mind as it is a novice question. Can anyone tell me where the static variable store is it- 1) Heap memory 2) RAM (STACK portion) 3) ROM (FLASH)
  • Static Variables
    Hi everyone, I would like to know if something similar happen to you. Well the issue is that when I declare a variable as a global one in the header file of a module with extern sometimes it loses...
  • Static array declaration crashes application.
    Hi, I'm using Keil IDE V4.23.00.00.0. If I declare some static array in module A like: volatile static unsigned char MyArray[9] then all works fine. If I declare it like: volatile static...