7. Organização dos p j
g ç projetos
Workspace
Project Project
Group Group
Source Source Source
Source Source Source
Source
S Source
S Source
S
• Workspaces podem conter multiplos projetos.
2007-12 7
8. Options…
Options
Selecione o Arquivo
do projeto (*.ewp) e
click com o botão
direito do Mouse.
Em seguida click em
Options...
2007-12 8
10. General Options: Device
Na categoria
“General Option”
selecione o Chip
• Ao selecionar o Dispositivo carrega automaticamente o arquivo (*.ddf)
( ddf)
2007-12 10
17. Linker: Config
Podemos utilizar
outro arquivo
para fazer um
novo
mapeamento t
* Na aba List selecione “Generate Linker Map file
Generate file”
2007-12 17
18. Linker: XCL Simple Template
• // segment address range usage
• // DATA16_I 0200-6FFF Initialized variables
• // DATA16_Z 0200-6FFF Zero initialized variables
• // DATA16_N _ 0200-6FFF Uninitialized variables
• // CSTACK 0200-6FFF Run-time stack/auto variables
• // HEAP 0200-6FFF The heap used by malloc and free
• // Program and non-volatile segments (FLASH)
• // =========================================
• // segment address range usage
• // CSTART 0200-FFDF cstartup program code
• // CODE 0200-FFDF Program code
• // DATA16_C 0200-FFDF Constant "const" variables AND String literals
• // DATA16_ID 0200-FFDF Initializers for DATA16_I
• // DIFUNCT 0200-FFDF
0200 FFDF Dynamic initialization vector used by C++
D i i iti li ti t db C
• // CHECKSUM 0200-FFDF The linker places the checksum byte(s)
• // INTVEC FFE0-FFFD Interrupt vectors
• // RESET FFFE-FFFF The reset vector
• // -------------------------------------------------------------------
• // Stack size and heap size
• // -------------------------------------------------------------------
• // Define CPU
• // -------------------------------------------------------------------
• // RAM memory
• // -------------------------------------------------------------------
• // ROM memory (FLASH)
• // -------------------------------------------------------------------
• // End of File
2007-12 18
19. C-SPY Debugger: Setup
Campo para direcionar arquivo com
características específicas do Chip
(*.ddf)
Simulator: Faz simulação sem hardware
FET Debugger – Depuração pela interface J-Tag
gg p ç p g
2007-12 19