• variable in data segment of external memory are not getting initialized when done with declaration
    when a variable is declared and initialized along with it globally, it should be going to data segment of external memory( as per linker script provided). the variable gets stored at the expected location...
  • variable in data segment of external memory are not getting initialized when done with declaration
    when a variable is declared and initialized along with it globally, it should be going to data segment of external memory( as per linker script provided). the variable gets stored at the expected location...
  • Warning when declaring variable: 'Variable not used'
    I'm trying to initialize I2C peripherals on my STM32 Discovery board and this is the function I've created to do so - void I2C2_Initialize(void) { NVIC_InitTypeDef NVIC_InitStructure; I2C_InitTypeDef...
  • Warning when declaring variable: 'Variable not used'
    I'm trying to initialize I2C peripherals on my STM32 Discovery board and this is the function I've created to do so - void I2C2_Initialize(void) { NVIC_InitTypeDef NVIC_InitStructure; I2C_InitTypeDef...
  • When declare a variable to be static?
    Can someone give some explains on when to declare a variable to be static? What is the difference with extern one?