Fritz T. schrieb:
- Wo stellt man bei S7 ein, dass ein eep-File erzeugt wird?
Minimal:
1 |
#include <avr/io.h>
|
2 |
#include <avr/eeprom.h>
|
3 |
|
4 |
uint8_t EEMEM eeBT_PortCfg = 0x01;
|
5 |
|
6 |
int main(void){ while(1) {} }
|
Schau dir in ../project/xyz/Debug/ das Makefile an.
Dort sollte sowas zu finden sein:
..\toolchain\avr8\avr-gcc-14.1.0-...\bin\avr-objcopy.exe"
-j .eeprom
--set-section-flags=.eeprom=alloc,load
--change-section-lma .eeprom=0
--no-change-warnings
-O ihex "Test-mega328-0.elf" "Test-mega328-0.eep" || exit 0
Das Makefile wird AUTOMATISCH vor jeder Compilation durch AS7 generiert.
Test-mega328-0.eep : schaut so aus
:0100000001FE
:00000001FF
Grundsätzlich AS7 :
- klick : |View|Solution Explorer|
- rightklick:|Project|Properties|
Da sind alle Parmeter einstellbar.