• error: using (__attribute(__at()))
    I'm using the uvision and I want to define a variable at a specific address. I figured out that it should work like int main(void) { int var __attribute__((__at(0x40001000))) = 20; } but...
  • 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...
  • 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?
  • How do I declare a variable in inline ARM Assembly?
    How do I declare a variable in ARM inline Assembly? And how do I move the value from register to variable and vice versa? Looking for something like this, __asm( variable: Word #22222222 mov...
  • 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...