Desempenho XC8 Pro

Software e Hardware para uC PIC

Moderadores: andre_luis, 51, guest2003, Renie

Re: Desempenho XC8 Pro

Mensagempor xultz » 13 Jul 2016 08:09

A MLA da Microchip explica como fazer isso:

Código: Selecionar todos
1. Under the build configuration-->XC8 global options-->XC8 linker-->Option categories:Additional options
   the "Codeoffset" must be set to: 0x1000
   See the "Required_Application_Project_Codeoffset_Linker_Settings_for_XC8.png" image for example view.

2. Under the build configuration-->XC8 global options-->XC8 linker-->Option categories:Memory model,
   the "ROM ranges" must be set to: default,-0-FFF,-1006-1007,-1016-1017
   See the "Required_Application_Project_ROM_Ranges_Linker_Settings_for_XC8.png" image for example view.

In addition to the above, make certain that all configuration bit settings
between the bootloader firmware project, and the application firmware project,
match 100% exactly.  If they do not match, modify one or both projects until they do.


Imagem
Imagem

Código: Selecionar todos
To "merge" the two projects together (so that the application firmware .hex file is not
required to be programmed by the bootloader, but may be programmed either stand alone via ICSP
or by the bootloader), the following can be done:

1.  Open and build the HID bootloader project.
2.  Open the application firmware project.
3.  Add the "MPLAB.X.production.hex" file (generated by the HID bootloader firmware project)
    to the application firmware project as a "Loadable" file in MPLAB X.  This can be done
    from the project view window and right clicking on the "Loadables" folder, and selecting
    the "Add loadable file..." option.
4.  Build the application firmware project.  After the project builds, MPLAB X will automatically
    run the "HEXMATE" utility in the background and generate a merged .hex file (which will
    contain both the bootloader firmware and application firmware).  This merged hex file can
    be programmed either stand alone with an ICSP programmer or using the bootloader.
98% das vezes estou certo, e não estou nem aí pros outros 3%.
Avatar do usuário
xultz
Dword
 
Mensagens: 3001
Registrado em: 13 Out 2006 18:41
Localização: Curitiba

Re: Desempenho XC8 Pro

Mensagempor pamv » 13 Jul 2016 23:05

Xultz, valeu, vou testar isso
pamv
Word
 
Mensagens: 842
Registrado em: 20 Jun 2016 21:47

Re: Desempenho XC8 Pro

Mensagempor KrafT » 14 Jul 2016 07:40

O Xú é o meu guru no Mplab X e XC8... 8)

Eu sou bem pragmático: Se a ferramenta resolve meu problema eu uso ele sem paixões nem sentimentalismos*... Mas o ATMEL Studio 7 tá difícil de engolir... Tomara que a nova dona da Atmel migre os "Ateméis" para o Mplab.



*nem sem foi assim :P
"..."Come to the edge," he said. And so they came. And he pushed them. And they flew."― Guillaume Apollinaire
Avatar do usuário
KrafT
Dword
 
Mensagens: 2228
Registrado em: 11 Out 2006 14:15
Localização: Blumenau -SC

Anterior

Voltar para PIC

Quem está online

Usuários navegando neste fórum: Nenhum usuário registrado e 1 visitante

cron

x