Martin Preuss
11c674d673
avr: started adding some often needed snippets to reduce code size.
2023-04-20 23:59:10 +02:00
Martin Preuss
73404d79f6
aqhome: increased verbosity
2023-04-20 23:58:29 +02:00
Martin Preuss
02b934c080
aqhome: fixed typos/bugs (in part copy'n'paste errrors)
2023-04-20 23:58:09 +02:00
Martin Preuss
82c7626783
flashing a device via boot loader works now!!
...
- use a simple rjmp to start main firmware
- add buffer size as a parameter for com2ReceivePacketRaw
- fixed bugs in
- Flash_StartPage
- Flash_FinishPage
- Flash_ReadPageIntoPageBuffer
- assume irqs disabled in flash routines
- increase flash receive buffer size to 128
2023-04-20 23:57:13 +02:00
Martin Preuss
9b568393cd
0BUILD: added target to flash test image.
2023-04-20 00:46:30 +02:00
Martin Preuss
66d5afb882
fixed description of a message.
2023-04-20 00:45:44 +02:00
Martin Preuss
d8e5252697
avr: some more work on flash code.
2023-04-20 00:45:20 +02:00
Martin Preuss
1af9a78818
avr: added clobbered regs to calls.
2023-04-20 00:45:01 +02:00
Martin Preuss
39c4bcd720
avr: added routine com2WaitForDataState1ms (not yet used).
2023-04-20 00:44:30 +02:00
Martin Preuss
600a6d01ac
avr: added test image for flash tests.
2023-04-20 00:44:02 +02:00
Martin Preuss
6f5ab3b0b8
aqhome-tool: started working on flash module
2023-04-20 00:43:35 +02:00
Martin Preuss
c65bd60bc5
avr: added flash-related messages.
2023-04-20 00:43:07 +02:00
Martin Preuss
5b9fe3d0cd
added script for aqhome-tool.sh
2023-04-19 15:44:12 +02:00
Martin Preuss
736acc69a7
0BUILD: add target to flash base image (bootloader).
2023-04-19 15:43:46 +02:00
Martin Preuss
a7d587a134
avr: first step of boot loader works
...
- send FLASH_READY
- waits for FLASH_START
NOTE: Utils_WaitNanoSecs only works reliably with values way above 1000
because 1000 is already one cycle time, and since each assembler command
already uses multiple clock cycles a value of 1000 never flies.
2023-04-19 15:43:17 +02:00
Martin Preuss
b7a36cc732
avr: removed TODO. Fixed jump to bootloader.
2023-04-19 15:41:16 +02:00
Martin Preuss
6cb1a9816e
avr: commented-out def.
2023-04-19 15:40:39 +02:00
Martin Preuss
a3502a3a40
avr: fixed comment.
2023-04-19 15:40:14 +02:00
Martin Preuss
fd2c4da9ce
aqhome: added FLASH_READY msg.
2023-04-19 15:39:51 +02:00
Martin Preuss
20efe7d473
aqhome-tool: recorganized code for improved reusability.
2023-04-19 15:39:15 +02:00
Martin Preuss
cf3a90dccc
avr: moved bootloader down to 0x0d00.
2023-04-18 23:51:40 +02:00
Martin Preuss
87c1692a7c
implemented DEVICE msg again.
2023-04-18 23:46:58 +02:00
Martin Preuss
5c111aa935
avr: add modules mask variable.
...
will be used by bootloader.
2023-04-18 23:46:38 +02:00
Martin Preuss
95cb4e93c3
tools: added aqhome-tool.
...
First command implemented is PING.
2023-04-18 23:26:19 +02:00
Martin Preuss
db86d61e33
aqhome: make some parameters const.
2023-04-18 21:17:56 +02:00
Martin Preuss
4e409851f6
aqhome: added lib for hexfiles and flash records.
2023-04-18 19:41:56 +02:00
Martin Preuss
93e89e801e
aqhome: added defines for FLASH messages.
2023-04-17 01:14:18 +02:00
Martin Preuss
ce85548938
aqhome: added ipc message and calls to set acceptable msg groups for ipc endpoint.
...
this filters the messages which are copied to the ipc client.
2023-04-17 01:13:59 +02:00
Martin Preuss
4467f60645
avr: fixed a bug.
...
answering with a PONG to a PING packet works again.
2023-04-16 23:54:39 +02:00
Martin Preuss
519546babd
avr: added some message documentation.
2023-04-16 23:23:25 +02:00
Martin Preuss
5f4260d605
avr: moved COM and COMPROTO defs and routines into dedicated files.
2023-04-16 23:23:06 +02:00
Martin Preuss
d53b061aed
aqhome: implemented IPC client, fixed some bugs.
...
sending a PING request and retrieving the PONG response works now.
2023-04-16 23:22:03 +02:00
Martin Preuss
c00b90bf28
more work on switching to new COM and TIMER stack.
2023-04-13 21:16:51 +02:00
Martin Preuss
a61226c3d9
avr: some more cleanup.
2023-04-12 23:40:30 +02:00
Martin Preuss
34deb42da5
Merge branch 'mp-20230411-simplify_com'
...
New COM and timer modules now work.
2023-04-12 23:33:40 +02:00
Martin Preuss
4075838a25
updated TODO.
2023-04-12 23:32:34 +02:00
Martin Preuss
86b45a58e5
avr: decreased verbosity. minor fixes.
...
- address claiming modes now work
2023-04-12 23:32:08 +02:00
Martin Preuss
ded08b8c47
avr: new com2 and timer stack basically works again.
2023-04-12 21:46:34 +02:00
Martin Preuss
024d40fc95
avr: started reworking COM module.
...
- sending and receiving now basically works again, but too often the
read buffer is in use when trying to receive a message.
2023-04-12 15:30:52 +02:00
Martin Preuss
0feceeb96e
current state of TODO file.
2023-04-11 21:19:51 +02:00
Martin Preuss
069279a037
add draft of value type.
2023-04-11 21:19:35 +02:00
Martin Preuss
a0a5840fc8
changed order of calls.
2023-04-11 21:19:12 +02:00
Martin Preuss
366cffa9f2
added helper scripts.
2023-04-11 21:18:49 +02:00
Martin Preuss
13ccefdd23
add missing include.
2023-04-11 21:18:25 +02:00
Martin Preuss
d54ab25571
change order of calls.
2023-04-11 21:18:13 +02:00
Martin Preuss
b5dc704119
removed idle time calculation (doesn't work so far).
2023-04-10 23:48:24 +02:00
Martin Preuss
eca6fc6efc
avr: try calculating idle times.
2023-04-10 23:33:24 +02:00
Martin Preuss
6c8f8e19b2
avr: cleanup.
2023-04-10 01:41:21 +02:00
Martin Preuss
7d9f3225ef
avr: only include lcd strings if lcs module is used.
2023-04-10 01:02:25 +02:00
Martin Preuss
04ab31ca3d
added message MEMSTATS.
2023-04-10 01:01:48 +02:00