• Warning 52: Value has been truncated into 8 bits
    Hi, In my program which initially works fine, after i initialize 1 or more memory space for variables, it shows "Warning 52: Value has been truncated into 8 bits"! Although it is just a warning...
  • Warning 52: Value has been truncated into 8 bits
    Hi, In my program which initially works fine, after i initialize 1 or more memory space for variables, it shows "Warning 52: Value has been truncated into 8 bits"! Although it is just a warning...
  • Writing 32 bit values to 16 bit register
    I have to write 16 bit value in a 16 bit register, & variable which holds that value is 32 bit. I have STM32, BSRRL register which is 16 bit, so if I write Like uint32_t x = 255; BSRRL = x; ...
  • Writing 32 bit values to 16 bit register
    I have to write 16 bit value in a 16 bit register, & variable which holds that value is 32 bit. I have STM32, BSRRL register which is 16 bit, so if I write Like uint32_t x = 255; BSRRL = x; ...
  • C51: 32 bits unsigned returned values treated as signed 16 bits
    Hi! In a full project a simple unsigned long ( u32 )returned value from a function lead to this (odd) assembler code. It make us think that the u32 is considered as s16 ( signed short ). If...