This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

In a scatter file explicitly place variable initializer values in a flash region

Hi,

Is there a way to explicitly place variable initializer values in a defined flash region using scatter files?

For example, using the scatter file below,

LOAD_ROM 0x0000 0x8000       ; Name of load region (LOAD_ROM),
                             ; Start address for load region (0x0000),
                             ; Maximum size of load region (0x8000)
{
    EXEC_ROM 0x0000 0x8000   ; Name of first exec region (EXEC_ROM),
                             ; Start address for exec region (0x0000),
                             ; Maximum size of first exec region (0x8000)
    {
        * (+RO)              ; Place all code and RO data into
                             ; this exec region
    }
    SRAM 0x10000 0x6000      ; Name of second exec region (SRAM),
                             ; Start address of second exec region (0x10000),
                             ; Maximum size of second exec region (0x6000)
    {
        * (+RW, +ZI)         ; Place all RW and ZI data into
                             ; this exec region
    }
}

If I declare

int aGlobalVar = 0xDEADBEEF;


aGlobalVar will get placed in SRAM, and the initializer value 0xDEADBEEF will get placed at the end of EXEC_ROM (this seems to be the case according to my experiment).

Is there a way for me to force explicit placement of 0xDEADBEEF in a flash region?

Thanks,
LJ

Parents
  • Can electronic mouse repellent device drive rats?
    Answer: so far, there is no relevant literature or background information in the scientific community and reports that electronic mouse repellent device can stimulate the rats and achieve the goal of driving. Instead of using electromagnetic waves will interfere with household appliances, and the input of electromagnetic waves into the power system for many electric equipment such as audio, television, computer and other household appliances will have a certain interference and damage, and the exposure to high frequency electromagnetic wave radiation will also bring some harm to the human body. Use this kind of product. This also explains why all relevant departments of the world require all electrical appliances to be used in the network to be used by EMI electromagnetic authentication. In 1998, the WHO survey showed that electromagnetic waves have five major effects on human body: A and electromagnetic waves are the main causes of cardiovascular disease, diabetes and cancer mutation; B and electromagnetic waves cause direct injury to the human reproductive system, the nervous system and the immune system; C and electromagnetic waves are induced by abortion, infertility, teratology and other pathological changes. Factors: D, excessive electromagnetic wave radiation directly affect the development of brain tissue, bone marrow development, vision decline, liver disease, hematopoietic function decline, serious people can lead to retinal detachment; E, electromagnetic wave radiation can make male sexual function decline, female endocrine disorder, menstrual disorder.

    However, can the IR mouse repellent device drive rats? A lot of scientific experiments show that mice are color blindness, and amblyopia animals, human beings are tricolor vision, red, blue, green vision, and mice are two color vision can only distinguish the ultraviolet light blue color wavelength of 359nm and green wavelength 510nm, the mouse's visual 88% sense It should be green, and only 12% can sense the color of ultraviolet light blue. Now on the market, some merchants sell the repellent claims that there is no scientific basis for infrared repellent function, because the infrared wavelength is in the range of 800nm-1000nm, which is far away from the color light that mice can see. It is absurd to use infrared rays to remove mice.

Reply
  • Can electronic mouse repellent device drive rats?
    Answer: so far, there is no relevant literature or background information in the scientific community and reports that electronic mouse repellent device can stimulate the rats and achieve the goal of driving. Instead of using electromagnetic waves will interfere with household appliances, and the input of electromagnetic waves into the power system for many electric equipment such as audio, television, computer and other household appliances will have a certain interference and damage, and the exposure to high frequency electromagnetic wave radiation will also bring some harm to the human body. Use this kind of product. This also explains why all relevant departments of the world require all electrical appliances to be used in the network to be used by EMI electromagnetic authentication. In 1998, the WHO survey showed that electromagnetic waves have five major effects on human body: A and electromagnetic waves are the main causes of cardiovascular disease, diabetes and cancer mutation; B and electromagnetic waves cause direct injury to the human reproductive system, the nervous system and the immune system; C and electromagnetic waves are induced by abortion, infertility, teratology and other pathological changes. Factors: D, excessive electromagnetic wave radiation directly affect the development of brain tissue, bone marrow development, vision decline, liver disease, hematopoietic function decline, serious people can lead to retinal detachment; E, electromagnetic wave radiation can make male sexual function decline, female endocrine disorder, menstrual disorder.

    However, can the IR mouse repellent device drive rats? A lot of scientific experiments show that mice are color blindness, and amblyopia animals, human beings are tricolor vision, red, blue, green vision, and mice are two color vision can only distinguish the ultraviolet light blue color wavelength of 359nm and green wavelength 510nm, the mouse's visual 88% sense It should be green, and only 12% can sense the color of ultraviolet light blue. Now on the market, some merchants sell the repellent claims that there is no scientific basis for infrared repellent function, because the infrared wavelength is in the range of 800nm-1000nm, which is far away from the color light that mice can see. It is absurd to use infrared rays to remove mice.

Children
No data