c - Variables .BSS section -


The initial variable is included in the BSS section.

The first question: Do they live there when they are assigned?

The second question / problem: I want to load this section in an external SDRAM. Variables are located correctly in the memory map, but full of strange values, and I can not keep any other number in them. If you have an idea about the problem

  / * Memory Map * / memory {vectors (X): Original = 0x00000000 length = 0x00000020 FLASH0 (RX): origin = 0x00000020 length = 0x00l7FFE0 FLASHl (RX): origin = 0x00180000 length = 0x00180000 ads (RW): origin = 0x08000000 length = 0x00001500 RAM (RW): origin = 0x08001500 length = 0x0003EB00 SDRAM (RW): origin = 0x80000000 length = 0x00800000} / * ---- -------------------------------------------------- ---------------------- * / / * section configuration * / section {.instics: {} & gt; Vector Text: {} & gt; FLASH0 | FLASH1 .const: {} & gt; FLASH0 | FLASH1. Cinit: {} & gt; FLASH0 | FLASH1. PIN: {} & gt; FLASH0 | FLASH1 .bss: {} & gt; SDRAM. Data: {} & gt; RAM .sysmem: {} & gt; RAM}    

Again Q2, you have to make SDRAM memory controller right Beginning with time and mapping for your memory device before .bss segment has started zero by runtime start-up code. You also need to make sure that your runtime start-up code is clearly starting the SBS segment located in SDRAM.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -