Forum: Mikrocontroller und Digitale Elektronik AVR32 UC3 - Embedded SRAM / Embedded FLASH


von Manuel -. (ploana)


Lesenswert?

Hallo

Ich habe eine kleine Testsoftware für den UC3 geschrieben, und
compiliert

Beim compilieren im AVR32 Studio in der Console kommt folgende INFO:
1
make -k all 
2
3
4
avr32-gcc (GCC) 4.2.2-atmel.1.0.8 (mingw32 special)
5
Copyright (C) 2007 Free Software Foundation, Inc.
6
This is free software; see the source for copying conditions.  There is NO
7
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
8
9
10
11
uc3a0512-audio_player.elf  :
12
section              size         addr
13
.reset             0x2004   0x80000000
14
.got                  0x0         0x1c
15
.init                0x1a   0x80002004
16
.text             0x48f68   0x80002020
17
.exception          0x200   0x8004b000
18
.fini                0x18   0x8004b200
19
.rodata             0x4dc   0x8004b218
20
.lalign               0x4   0x8004b6f4
21
.dalign               0x4          0x4
22
.ctors                0x8          0x8
23
.dtors                0x8         0x10
24
.jcr                  0x4         0x18
25
.data               0x858         0x1c
26
.bss                0xf7c        0x874
27
.heap              0xd410       0x17f0
28
.comment           0x1566          0x0
29
.debug_aranges     0x1318          0x0
30
.debug_pubnames    0x3855          0x0
31
.debug_info       0x5ce1b          0x0
32
.debug_abbrev      0x4936          0x0
33
.debug_line        0x8034          0x0
34
.debug_frame       0x85b4          0x0
35
.debug_str         0x9d6a          0x0
36
.debug_loc         0xc2d4          0x0
37
.stack             0x1400       0xec00
38
.debug_ranges      0x39b8          0x0
39
Total             0xece7c
40
41
42
   text     data      bss      dec      hex  filename
43
0x4b67a    0x86c   0xf794   374394    5b67a  uc3a0512-audio_player.elf


Vielleicht steh ich jetz voll auf der Leitung,aber welche Datenmenge
steht nun im Embedded Flash und welche im Embedded SRAM??

lg

von PapaNappa (Gast)


Lesenswert?

Nach meiner Rechnung 308.862 Byte im Flash (ab Adresse 0x80000000)
Der SRAM beginnt ab Adresse 0x00, aber die Datenmenge lässt sich dort 
eher schwieriger berechnen, da sich ja z.B. die ganzen debug-sections 
überlappen

von Albi G. (deralbi)


Lesenswert?

Hallo :-)

Die Datenmenge die im Flash steht beinhaltet ja ALLES. Also auch die 
Daten, die im RAM sind usw. Wenn AVR32-Studio die Daten in den 
Controller überträgt kommt ja so ein roter Consolen-Output wo der 
Fortschritt fortlaufend als neue Zeile erscheint.

Die erste Zeile dieser Konsole sagt dir, wieviele Bytes ins Flash 
übertragen werden. Schau mal genau hin :-)

MFG

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.