• Memory allocation and segment definitions
    Hello all, My goal is to get some variables placed in EEPROM without hardcoding it to a fixed address (using the _at_ keyword is unfortunately not an option). The variable shall be assigned to a certain...
  • fix a constant address of code
    I would like to fix an address to start my code always at the same address. I have all books C51, A51, BL51, etc but I've lost my L51 book... I use in the option file of linker the instruction CODE...
  • STM32 CONSTANT IN FIXED ADDRESS FLASH
    Hello I am using STM32F030K6 microcontroller and I want to put a constant in a fixed address of flash memory. I arrive to do it using following attribute unsigned int const Type_Value __attribute__...
  • L251: Segments allocation
    Hi, For illustrating my problem let say that I have 3 address spaces, separated by some gaps, which are used to allocate EDATA and NCONST segments. According to the order, EDATA are allocated firstly...
  • Address allocation in AX51 and C51
    Let's say that I have two files in my project: Startup.A51 and test.c Some variables are allocated in Startup.A51; for example, REG_STATUS DATA 0A0H Also, some DATA variables are allocated...