From: Manfred Steiner Date: Sat, 12 Oct 2024 14:26:32 +0000 (+0200) Subject: software/nano-5v/bootloader-arduino (release/2024-10-12_114654) X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=1be1b2a8fa535cca356bde34d7222a27da517e5b;p=nano-x.git software/nano-5v/bootloader-arduino (release/2024-10-12_114654) --- diff --git a/software/nano-5v/bootloader-arduino/Makefile b/software/nano-5v/bootloader-arduino/Makefile index 36b5d75..29e973f 100644 --- a/software/nano-5v/bootloader-arduino/Makefile +++ b/software/nano-5v/bootloader-arduino/Makefile @@ -4,7 +4,12 @@ $(shell mkdir -p build >/dev/null) $(shell mkdir -p sim >/dev/null) $(shell mkdir -p sim/build >/dev/null) -NAME="bootloader-arduino_nano-5v-328p" +#BAUDRATE=115200 +#BAUDRATE=57600 +BAUDRATE=38400 +#BAUDRATE=19200 + +NAME="bootloader-arduino_nano-5v-328p-$(BAUDRATE)bps" SRC= $(wildcard src/*.c src/*.cpp src/*/*.c src/*/*.cpp) HDR= $(wildcard src/*.h src/*.hpp src/*/*.h src/*/*.hpp) OBJ_CPP = $(SRC:src/%.cpp=build/%.o) @@ -16,11 +21,12 @@ DEVICE=atmega328p DEVICE_ISP=m328p CC= avr-g++ -CFLAGS= -Wall -mmcu=$(DEVICE) -Os -DF_CPU=16000000 -DBAUD_RATE=115200 -DDOUBLE_SPEED -DNUM_LED_FLASHES=4 '-DMAX_TIME_COUNT=F_CPU>>4' -c +CFLAGS= -Wall -mmcu=$(DEVICE) -Os -DF_CPU=16000000 -DBAUD_RATE=$(BAUDRATE) -DDOUBLE_SPEED -DNUM_LED_FLASHES=4 '-DMAX_TIME_COUNT=F_CPU>>4' -c + #LFLAGS= -Wall -mmcu=$(DEVICE) -Os -DF_CPU=12000000 -Wl,-u,vfprintf -lprintf_flt -lm LFLAGS= -Wall -mmcu=$(DEVICE) -Os -DF_CPU=16000000 -Wl,--section-start=.text=0x7000 -CFLAGS_SIM= -Wall -mmcu=$(DEVICE) -Og -DF_CPU=16000000 -g -DBAUD_RATE=115200 -DDOUBLE_SPEED -DNUM_LED_FLASHES=4 '-DMAX_TIME_COUNT=F_CPU>>4' -c +CFLAGS_SIM= -Wall -mmcu=$(DEVICE) -Og -DF_CPU=16000000 -g -DBAUD_RATE=$(BAUDRATE) -DDOUBLE_SPEED -DNUM_LED_FLASHES=4 '-DMAX_TIME_COUNT=F_CPU>>4' -c #LFLAGS_SIM= -Wall -mmcu=$(DEVICE) -Og -DF_CPU=12000000 -g -Wl,-u,vfprintf -lprintf_flt -lm LFLAGS_SIM= -Wall -mmcu=$(DEVICE) -Og -DF_CPU=16000000 -g -Wl,--section-start=.text=0x7000 @@ -103,12 +109,12 @@ isp-read-flash-328p: avrdude -c usbasp -p $(DEVICE_ISP) -U flash:r:/tmp/flash-nano-1284__$(shell date +"%Y-%m-%d_%H%M%S") flash-1284p: dist/$(NAME).elf all - avrdude -c arduino -p $(DEVICE_ISP) -P /dev/ttyUSB0 -b 115200 -e -U flash:w:$< + avrdude -c arduino -p $(DEVICE_ISP) -P /dev/ttyUSB0 -b $(BAUDRATE) -e -U flash:w:$< picocom: # picocom sends CR for ENTER -> convert cr (\r) to lf (\n) - picocom -b 115200 --omap crlf /dev/ttyUSB0 + picocom -b $(BAUDRATE) --omap crlf /dev/ttyUSB0 isp-erase-328p: avrdude -c usbasp -p $(DEVICE_ISP) -e diff --git a/software/nano-5v/bootloader-arduino/release/2024-10-12_114654/bootloader-arduino_nano-5v-328p-38400bps.elf b/software/nano-5v/bootloader-arduino/release/2024-10-12_114654/bootloader-arduino_nano-5v-328p-38400bps.elf new file mode 100755 index 0000000..8bee0e7 Binary files /dev/null and b/software/nano-5v/bootloader-arduino/release/2024-10-12_114654/bootloader-arduino_nano-5v-328p-38400bps.elf differ diff --git a/software/nano-5v/bootloader-arduino/release/2024-10-12_114654/bootloader-arduino_nano-5v-328p-38400bps.hex b/software/nano-5v/bootloader-arduino/release/2024-10-12_114654/bootloader-arduino_nano-5v-328p-38400bps.hex new file mode 100644 index 0000000..67c7e0e --- /dev/null +++ b/software/nano-5v/bootloader-arduino/release/2024-10-12_114654/bootloader-arduino_nano-5v-328p-38400bps.hex @@ -0,0 +1,97 @@ +:107000000C943F380C9451380C9451380C945138EE +:107010000C9451380C9451380C9451380C945138CC +:107020000C9451380C9451380C9451380C945138BC +:107030000C9451380C9451380C9451380C945138AC +:107040000C9451380C9451380C9451380C9451389C +:107050000C9451380C9451380C9451380C9451388C +:107060000C9451380C94513831313A34363A353425 +:10707000004F63742031322032303234000011244A +:107080001FBECFEFD8E0DEBFCDBF21E0A0E0B1E072 +:1070900001C01D92AC38B207E1F70E942F390C9461 +:1070A000EF3A0C9400389091C00095FFFCCF80938C +:1070B000C6000895CF93982F8595859585958595DC +:1070C000805D9F709A3014F0C7E501C0C0E3C90F1E +:1070D0000E9453388C2FCF910C945338CF92DF926B +:1070E000EF92FF92C12CD12C76018091C00087FDD8 +:1070F00015C08FEFC81AD80AE80AF80A81E4C81642 +:1071000082E4D8068FE0E806F10478F317B818B8DF +:10711000E0910001F09101010995E7CF8091C6004F +:10712000FF90EF90DF90CF900895CF930E946E383C +:10713000C82F0E945338C13614F089EA03C0C03307 +:107140001CF080ED8C0F01C08C2FCF910895CF9350 +:107150000E949538C82F0E94953890E1C99F800DF4 +:107160001124CF910895CF93C82FCC2321F00E94F2 +:107170006E38C150FACFCF910895CF93C82F0E9497 +:107180006E38803251F484E10E9453388C2F0E9473 +:10719000533880E1CF910C945338809102018F5F76 +:1071A00080930201853041F417B818B8E0910001CE +:1071B000F0910101CF910994CF9108950E946E380A +:1071C000803231F484E10E94533880E10C945338CA +:1071D000809102018F5F80930201853039F417B8E6 +:1071E00018B8E0910001F091010109940895CF933E +:1071F000DF9300D000D0CDB7DEB719821A821B8290 +:107200001C8289819A81AB81BC8181159042A14009 +:10721000B10580F48091C00087FD0CC089819A81FE +:10722000AB81BC810196A11DB11D89839A83AB837B +:10723000BC83E7CF0F900F900F900F90DF91CF910D +:107240000895CF93C82FCC2341F02D9A0E94F73890 +:107250002D980E94F738C150F6CFCF9108950000C5 +:1072600015B8259A82E08093C00083E38093C40020 +:107270001092C50088E18093C10086E08093C2002F +:1072800084E00E94213913E001E0E5E0FE2EF1E107 +:10729000EF2E0E946E38803309F447C0813319F510 +:1072A0000E946E388032B9F484E10E94533881E440 +:1072B0000E94533886E50E94533882E50E94533875 +:1072C00080E20E94533889E40E94533883E50E948B +:1072D000533880E56BC1809102018F5F809302017A +:1072E0008530B9F670C1803439F40E946E38863822 +:1072F000E0F00E946E3819C0813491F40E946E381B +:10730000803811F481EF44C0813811F481E040C02D +:10731000823811F480E13CC08839C9F583E038C077 +:10732000823431F484E10E94B3380E94DE38B1CF58 +:10733000853411F485E0F7CF982F9D7F9035A9F320 +:10734000813599F3853549F40E946E3880938A011E +:107350000E946E3880938B01E8CF8635E1F40E945D +:107360006E38803389F40E946E380E946E38C82FC0 +:107370000E946E38C11102C08EE10AC0C13011F402 +:1073800085E906C08FE004C083E00E94B33880E046 +:107390000E94BD387ECF843609F0A6C00E946E38A8 +:1073A000809389010E946E388093880180918701C3 +:1073B0008E7F809387010E946E38853429F48091F6 +:1073C0008701816080938701C6E0D1E06E01209142 +:1073D000880130918901C601865091408217930738 +:1073E00030F40E946E38F60181936F01F0CF0E9455 +:1073F0006E38803209F0E0C02091870180918A01C7 +:1074000090918B01880F991F90938B0180938A0133 +:1074100020FF23C0E6E0F1E020918801309189014E +:10742000CF01865091408217930708F05BC0F9990D +:10743000FECF80918A0190918B0192BD81BD819197 +:1074400080BDFA9AF99A80918A0190918B010196F8 +:1074500090938B0180938A01DFCF8091880180FF18 +:1074600009C08091880190918901019690938901CA +:1074700080938801F89440918A0150918B01F99989 +:10748000FECF07B600FCFDCF2D9AFA0110935700EE +:10749000E89507B600FCFDCF2D9820E030E0FA011A +:1074A000E20FF31F898190E0982F88276881860F6B +:1074B000911D0C0100935700E89511242E5F3F4F5A +:1074C00022962038310559F73093050120930401A5 +:1074D000FA01F0925700E89507B600FCFDCFE09264 +:1074E0005700E89584E162C0843709F04FC00E94DC +:1074F0006E38809389010E946E3880938801809154 +:107500008A0190918B01880F991F90938B01809332 +:107510008A010E946E3890918701853411F4916040 +:1075200001C09E7F909387010E946E38803209F0DF +:107530003FC084E10E945338C0E0D0E080918801D0 +:1075400090918901C817D90798F58091870180FF2C +:107550000BC0F999FECF80918A0190918B0192BD69 +:1075600081BDF89A80B505C0E0918A01F0918B0148 +:1075700084910E94533880918A0190918B010196E9 +:1075800090938B0180938A012196D8CF853719F586 +:107590000E946E38803281F484E10E9453388EE17B +:1075A0000E94533885E90E9453388FE00E94533877 +:1075B00080E10E9453386DCE809102018F5F8093ED +:1075C0000201853009F417B818B8E0910001F09174 +:1075D000010109955ECE863709F05BCED8CEF894CE +:0275E000FFCFDB +:040000030000700089 +:00000001FF