Commit d98b3a182ea8d41278de3858fde051643699e25d w-v1a-2024-07-23
receivedSun, 18. Aug 2024, 11:35:04 (by user sx)
Sun, 18 Aug 2024 09:35:04 +0000 (11:35 +0200)
authorManfred Steiner <sx@htl-kaindorf.at>
Sun, 18 Aug 2024 09:34:58 +0000 (11:34 +0200)
committerManfred Steiner <sx@htl-kaindorf.at>
Sun, 18 Aug 2024 09:34:58 +0000 (11:34 +0200)
6 files changed:
README.md
software/arduino-nano-5v/test_2024-07-23/Makefile
software/arduino-nano-5v/test_2024-07-23/release/v2024-08-18_1113/test_2024-07-23_nano-5v.elf [new file with mode: 0755]
software/nano-1284/test_2024-07-23/release/v2024-08-18_1118/test_2024-07-23_nano-1284p.elf [new file with mode: 0755]
software/nano-644/test_2024-07-23/release/v2024-08-18_1103/test_2024-07-23_nano-644.elf [new file with mode: 0755]
software/nano-644/test_2024-07-23/src/units/rtc8563.cpp

index 142b85ff619c92cc4574eb5d7c6495cab474a971..9d64190f2e41143ce1fae4cb61b1ed6ef0cb2c9b 100644 (file)
--- a/README.md
+++ b/README.md
@@ -44,3 +44,65 @@ Vorne | Hinten
 ## Print-Layout (KiCad)
 
 * Version V1a: [Branch v1a](https://git.htl-mechatronik.at/public/?p=nano-x-base.git;a=blob;f=kicad/dist/v1a/README.md;hb=refs/heads/v1a)
+
+## Test-Software
+
+### Nano-644, Nano-1284 und Arduino Nano
+
+Die fertig übersetzten ELF-Dateien sind zu finden unter:
+* Nano-644: [test_2024-07-23_nano-644.elf](software/nano-644/test_2024-07-23/release/v2024-08-18_1103/test_2024-07-23_nano-644.elf)
+* Nano-1284: [test_2024-07-23_nano-1284p.elf](software/nano-1284/test_2024-07-23/release/v2024-08-18_1118/test_2024-07-23_nano-1284p.elf)
+* Ardunino Nano (5V): [test_2024-07-23_nano-5v.elf](software/arduino-nano-5v/test_2024-07-23/release/v2024-08-18_1113/test_2024-07-23_nano-5v.elf)
+
+Entwicklungsumgebung:
+
+* Tool-Chain: GNU AVR C/C++, simuc (simavr)
+* IDE: VS-Code
+* Betriebssystem: Linux/Debian
+
+Software-Ordner je nach verwendetem µC:
+* Nano-644 (3.3V): [software/nano-644/test_2024-07-23/](software/nano-644/test_2024-07-23/)
+* Arduino Nano (5V): [software/arduino-nano-5v/test_2024-07-23/](software/arduino-nano-5v/test_2024-07-23/)
+* Nano-1284 (3.3V): [software/nano-1284/test_2024-07-23/](software/nano-1284/test_2024-07-23/)
+
+Die Quelltexte sind im Ordner `software/nano-644/test_2024-07-23/src/` zu finden. In den anderen Ordnern ist der Ordner `src` nur ein symbolischer Link zu [software/nano-644/test_2024-07-23/src/](software/nano-644/test_2024-07-23/src/)!
+
+Das Programm kann mit `make flash` auf den jeweiligen Nano übertragen werden. Über die USB-Schnittstelle kann mittels Terminalprogramm (115200/8N1) (`make picocom`) die Verbindung hergestellt werden.
+
+Dort kann mittels Menüfunktion die entsprechende Baugruppe ausgewahlt und getestet werden. Für den Punkt `Modbus` ist der Anschluss eines modbusfähigen Energiezählers *Easton SDM230-Modbus* erforderlich.
+
+```
+====================================
+ ATmega644P / Aug 18 2024 / 11:03:20
+====================================
+Available units:
+
+  0 ... Led
+  1 ... Switch
+  2 ... Rgb
+  3 ... Seg7
+  4 ... Poti
+  5 ... Encoder
+  6 ... R2R
+  7 ... Motor
+  8 ... PortExp
+  9 ... Lcd
+  a ... Uart1
+  b ... Modbus
+  c ... IEEE485
+  d ... I2C-Master
+  e ... I2C-Slave
+  f ... I2C-Sparkfun Env-Combo
+ 10 ... RTC-8563
+ 11 ... CC-1101-Send
+ 12 ... CC-1101-Receive
+
+Select unit: 
+```
+
+### Raspberry Pico
+
+Für den Raspberry Pico steht derzeit nur ein kleines bereits übersetztes Programm zur Verfügung.
+
+[software/pico/nano-x-blink/](software/pico/nano-x-blink/) 
index 2045d5953fe43898ce6541eafc9bb1e7352152d9..eb17024beab1c4dbe7ab4543b4504d728fccd7ea 100644 (file)
@@ -24,19 +24,6 @@ LFLAGS_SIM= -Wall -mmcu=$(DEVICE) -Og -DF_CPU=16000000 -g -Wl,-u,vfprintf -lprin
 
 all: dist/$(NAME).elf dist/$(NAME).s dist/$(NAME).hex sim/$(NAME).elf sim/$(NAME).s info
 
-dbg:
-       @echo --HDR---------------------------------
-       @echo $(HDR)
-       @echo --SRC---------------------------------
-       @echo $(SRC)
-       @echo --OBJ---------------------------------
-       @echo $(OBJ)
-       @echo --OBJ_CPP-----------------------------
-       @echo $(OBJ_CPP)
-       @echo --OBJ---------------------------------
-       @echo $(OBJ)
-       @echo ===================================
-       @echo   
 
 info:
        @avr-size --mcu=$(DEVICE) --format=avr dist/$(NAME).elf
@@ -60,6 +47,10 @@ dist/%.hex: dist/%.elf
 sim/$(NAME).elf: .depend $(OBJ_SIM)
                $(CC) $(LFLAGS_SIM) -o $@ $(OBJ_SIM)
 
+# ensure that __DATE__ and __TIME__ macros are up to date
+build/main.o: src/main.cpp $(SRC) $(HDR)
+       @mkdir -p $(dir $@)
+       $(CC) $(CFLAGS) -o $@ $<
 
 build/%.o: src/%.c
        @mkdir -p $(dir $@)
diff --git a/software/arduino-nano-5v/test_2024-07-23/release/v2024-08-18_1113/test_2024-07-23_nano-5v.elf b/software/arduino-nano-5v/test_2024-07-23/release/v2024-08-18_1113/test_2024-07-23_nano-5v.elf
new file mode 100755 (executable)
index 0000000..2f20bd1
Binary files /dev/null and b/software/arduino-nano-5v/test_2024-07-23/release/v2024-08-18_1113/test_2024-07-23_nano-5v.elf differ
diff --git a/software/nano-1284/test_2024-07-23/release/v2024-08-18_1118/test_2024-07-23_nano-1284p.elf b/software/nano-1284/test_2024-07-23/release/v2024-08-18_1118/test_2024-07-23_nano-1284p.elf
new file mode 100755 (executable)
index 0000000..8c3e007
Binary files /dev/null and b/software/nano-1284/test_2024-07-23/release/v2024-08-18_1118/test_2024-07-23_nano-1284p.elf differ
diff --git a/software/nano-644/test_2024-07-23/release/v2024-08-18_1103/test_2024-07-23_nano-644.elf b/software/nano-644/test_2024-07-23/release/v2024-08-18_1103/test_2024-07-23_nano-644.elf
new file mode 100755 (executable)
index 0000000..5605578
Binary files /dev/null and b/software/nano-644/test_2024-07-23/release/v2024-08-18_1103/test_2024-07-23_nano-644.elf differ
index ea8821eb932e2a535cdd3c585df41f23b0d91fa0..4bd75ca0ca4c2908bf6fd7a8734147f40c4cb1f0 100644 (file)
@@ -26,6 +26,7 @@ void Rtc8563::handleTwiIrq () {
 void Rtc8563::init () {}
 void Rtc8563::cleanup () {}
 int8_t Rtc8563::run (uint8_t subtest) { return -1; }
+PGM_P Rtc8563::getName () {}
 #endif
 
 #if defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__)