: czwartek 18 lut 2016, 20:55
Pyra: dobre to podłączenie?
http://zapodaj.net/images/82ef334a10ea0.png
http://zapodaj.net/images/82ef334a10ea0.png
...czyli forum miłośników światełek... ;-)
https://www.swiatelka.pl/
Nie spotkałem...Misiek_86 pisze:Jest jakiś darmowy program, do sprawdzenia jaki mikrokontroler siedzi w driverze?
Będzie,ale do tego konieczny będzie programator.Misiek_86 pisze:Ten chyba będzie pokazywać?
https://sklep.atnel.pl/pl/p/MkAvrCalculator/4
Jeśli masz programator,to polecam go równieżMisiek_86 pisze:Ten chyba będzie pokazywać?
https://sklep.atnel.pl/pl/p/MkAvrCalculator/4
Skompilować i poszukać odpowiedniego pliku w katalogu projektu.Misiek_86 pisze:Witam, mam kod latarki zapisany jako format latarka.c
Teraz, jak mam to przemienić by było jako hex?
Kod: Zaznacz cały
------ Build started: Project: C+Ex, Configuration: Debug AVR ------
Build started.
Project "C+Ex.cppproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Compiler.targets" from project "C:\Users\Michał\Documents\Atmel Studio\7.0\C+Ex\C+Ex\C+Ex.cppproj" (target "Build" depends on it):
Using "RunCompilerTask" task from assembly "C:\Program Files (x86)\Atmel\Studio\7.0\Extensions\Application\AvrGCC.dll".
Task "RunCompilerTask"
Shell Utils Path C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils
C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe all
Building file: .././main.cpp
Invoking: AVR8/GNU C Compiler : 4.9.2
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-g++.exe" -funsigned-char -funsigned-bitfields -DDEBUG -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATtiny_DFP\1.0.71\include" -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=attiny13a -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATtiny_DFP\1.0.71\gcc\dev\attiny13a" -c -MD -MP -MF "main.d" -MT"main.d" -MT"main.o" -o "main.o" ".././main.cpp"
Finished building: .././main.cpp
Building target: C+Ex.elf
Invoking: AVR8/GNU Linker : 4.9.2
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-g++.exe" -o C+Ex.elf main.o -Wl,-Map="C+Ex.map" -Wl,--start-group -Wl,-lm -Wl,--end-group -Wl,--gc-sections -mmcu=attiny13a -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATtiny_DFP\1.0.71\gcc\dev\attiny13a"
Finished building target: C+Ex.elf
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe" -O ihex -R .eeprom -R .fuse -R .lock -R .signature -R .user_signatures "C+Ex.elf" "C+Ex.hex"
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe" -j .eeprom --set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex "C+Ex.elf" "C+Ex.eep" || exit 0
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objdump.exe" -h -S "C+Ex.elf" > "C+Ex.lss"
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe" -O srec -R .eeprom -R .fuse -R .lock -R .signature -R .user_signatures "C+Ex.elf" "C+Ex.srec"
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-size.exe" "C+Ex.elf"
text data bss dec hex filename
674 2 6 682 2aa C+Ex.elf
Done executing task "RunCompilerTask".
Using "RunOutputFileVerifyTask" task from assembly "C:\Program Files (x86)\Atmel\Studio\7.0\Extensions\Application\AvrGCC.dll".
Task "RunOutputFileVerifyTask"
Program Memory Usage : 676 bytes 66,0 % Full
Data Memory Usage : 8 bytes 12,5 % Full
Done executing task "RunOutputFileVerifyTask".
Done building target "CoreBuild" in project "C+Ex.cppproj".
Target "PostBuildEvent" skipped, due to false condition; ('$(PostBuildEvent)' != '') was evaluated as ('' != '').
Target "Build" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Avr.common.targets" from project "C:\Users\Michał\Documents\Atmel Studio\7.0\C+Ex\C+Ex\C+Ex.cppproj" (entry point):
Done building target "Build" in project "C+Ex.cppproj".
Done building project "C+Ex.cppproj".
Build succeeded.
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
WitamMisiek_86 pisze:Pyra takie coś jest:
Kod: Zaznacz cały
-mmcu=attiny13a -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATtiny_DFP\1.0.71\gcc\dev\attiny13a"