stephan
239c237f70
flash_chaos: do not load AVR conf in SN13
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9058 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-14 08:57:29 +00:00
stephan
bccfb92ada
irenarc-chaos: update channel order, load NAMES
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9057 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-14 08:55:44 +00:00
stephan
72cabf87c9
chaos.py: eth_retry, fix EEY, new adc format
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9056 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-14 08:54:18 +00:00
stephan
f8ed5c4ff6
armlib: Start(force)
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9055 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-14 08:52:42 +00:00
stephan
a042f70dd7
udpterm: .ucmd(), .resp(raise_e)
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9054 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-14 08:51:59 +00:00
stephan
93a8bf7ffa
remove pront.gpt
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9053 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-12 04:33:26 +00:00
stephan
08efeab63e
avr/chaos: die(), fix read_adc()
...
die(): 'W" 0xd1ff causes infinite uninteruptable sleep.
Fix adc_sum shift.
Properly account for the new adc_sum format.
Do not fault read_adc() when wdt_tick.
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9052 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-10 12:16:12 +00:00
stephan
d1aaabcce3
avr/chaos: WDT reboot handling
...
Interrupts were never enabled unless 'W'. The WDT was enabled via init_conf().
Result was constant rebooting.
Enable interrupts unconditionally in the main loop.
On boot, detect WDT reset, disable the WDT, chain load a WDT config.
Cmd 'Z' to read the `MCUSR` with the `WDRF`.
Detect WDT interrupts during `spi_slave_Rx()`, answer with an error 'EEW'
`adc_lock` to prevent the WDT ISR to call read_adc() when it is busy.
Also, `read_adc()` will discard the result in case of a `wdt_tick`.
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9051 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-10 07:32:55 +00:00
stephan
4caa6c3117
avr/spi_slave: spi_slave_Rx_wdt()
...
Flag a case where a WDT interrupt messed with command reception.
The user must define the `wdt_tick` flag.
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9050 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-10 07:18:27 +00:00
stephan
99e6c63e4e
flash_CHAOS: add hash of outer pressure sensor
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9049 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-10 07:15:07 +00:00
stephan
7d130454fe
flash_CHAOS: syntax error in CRONFLY
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9048 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-10 07:14:39 +00:00
stephan
01711b986a
flash_CHAOS: prevent THRES.RC from garbling the L1 bits
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9047 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-10 07:14:00 +00:00
stephan
5d8a6c0bb0
arm/chaos.py: hvc(retry), wdt_load
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9046 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-10 07:13:04 +00:00
stephan
b9c7121b54
armlib .Script(): script parameters
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9045 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-10 07:12:10 +00:00
stephan
46e107f709
flash_CHAOS: do all HK at 8 seconds cadence
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9044 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-09 15:26:11 +00:00
stephan
cb1141b2c2
flash_CHAOS: load L 1- verbosely, then sleep
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9043 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-09 15:16:39 +00:00
stephan
8ec6c53f91
avr/chaos: dac ramp
...
In conf_init, do dac_ramp last, it takes longest.
Do not dac_ramp in 'L' 10.
Configure dac_nominal=700V with hvosc 55,14.
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9042 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-09 15:07:00 +00:00
stephan
f57f3d0a57
chaos: channel B does not go over D37
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9041 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-09 14:22:38 +00:00
stephan
0a37d4f641
avr/chaos: change R bit allocation R 1 gives integral ADC
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9040 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-09 14:21:02 +00:00
stephan
aa5fe410cc
irenafile: HC thtree digits precision
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9039 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-09 14:11:13 +00:00
stephan
c607798884
chaos irena: fix L₂[2]=A·CL
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9038 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-09 14:09:45 +00:00
stephan
eb4c604439
chaos.py: conf, dac
...
.dac() defaults to 'H' `ramp=True`
CONF? dictionary
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9037 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-09 14:05:51 +00:00
stephan
c9dd26ab64
avr/chaos: rounding of adc_noise
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9036 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-09 14:04:25 +00:00
stephan
d5792e851a
avr/chaos: use PCINT for spi_busy()
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9035 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-08 13:09:09 +00:00
stephan
561cab6898
avr/chaos: send spiu_busy only when something was interrupted
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9034 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-08 12:07:37 +00:00
stephan
3e8ecc0995
flash_CHAOS: bitfiles
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9033 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-07 20:45:10 +00:00
stephan
ca6c1ac936
libirena: avoid inf or nan in HC σs
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9032 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-07 20:44:57 +00:00
stephan
fa2849bac5
avr/chaos/read_adc: properly saturate the residuals
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9031 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-07 20:43:46 +00:00
stephan
6954c82e34
ms5540: extend and harden timeout
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9030 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-07 20:42:04 +00:00
stephan
9cbf7a7170
flash_CHAOS: bitfiles
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9029 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-07 17:45:32 +00:00
stephan
5fe330ecc6
flash_CHAOS: CRON:
...
- reset fifos 0,1 (S==0)
- C use `nm/count`
- 'W' when S==1, 'W' or 'H' when S==5, LED period 8s
- `chaos/adc` with explicit args
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9028 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-07 17:43:57 +00:00
stephan
a486840f7c
flash_CHAOS: SAFE H=100, do not reenable SD
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9027 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-07 17:34:35 +00:00
stephan
56da559cdd
chaos.python: read_adc, eeprom
...
read_adc: fix σ. Add σv.
eeprom: function to read, verify write eeprom via ihex files
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9026 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-07 17:33:04 +00:00
stephan
bc345f5854
avr/chaos: read_adc optimization
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9025 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-07 17:30:27 +00:00
stephan
24d8e4cde8
libirena: pressure: do not expect incomplete packets
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9024 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-07 17:29:23 +00:00
stephan
1d83592647
irenafile: 2nd pressure, chaos HK
...
HK: parse up to 16 type of HK packet
0x4a20: old HK w/o message
0x4a21: HK w/ message
0x4a2c: chaos HV ADC readings
pressure: 2nd sensor, bit 7 in header.
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9023 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-07 16:41:58 +00:00
stephan
4ea54b7cce
ms5540: disable MCLK when idle
...
- `mclk_enable`
- `timeout` in case no sensor is present, to complete the packet
- lxt2 → fst
- fix ms5540 testjig
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9022 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-07 16:27:11 +00:00
stephan
0aa25ab367
irena/ms5540c: fix bug of 2nd sensor packet size
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9021 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-06 19:10:59 +00:00
stephan
f9357e40b2
avr/chaos: fix sense of conf.wdt_toggle
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9020 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-06 09:26:31 +00:00
stephan
1220e2f0d7
avr/chaos: hv_led improvements, spi_busy, …
...
- Do not toggle the HV LED at every command.
- Toggle with 'W' and 'H'.
- Remove `conf.wdt_save_addr`.
- Add `conf.wdt_toggle`, toggle period of the HV LED in ISR.
- 'H' etc turns the LED on, `hv_led_on()`.
- At boot, only do `hv_safe()` when `conf.safe` (EEPROM[0]).
- 'r' 1 reads `adc_hv`
- Sanitize arg `read_adc(…, n)`
- `spi_busy()`, break out of long loops when SPI SSEL is asserted.
- `clear_spi_busy()` in the main loop, when SSEL is asserted,
answer with a busy message.
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9019 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-06 09:24:42 +00:00
stephan
e7efcec459
avr/spi_slave: Tx gets a const *
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9018 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-06 09:12:53 +00:00
stephan
d50f9b6ba0
chaos: ifc-board hv control
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9017 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-04 18:00:48 +00:00
stephan
cb5f911dd2
avr/chaos 'w': hv_safe()
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9016 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-01 15:03:43 +00:00
stephan
823f6bd4c5
avr/chaos: use WDCE to set WDIE
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9015 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-01 14:38:10 +00:00
stephan
b3b8cb4ce7
chaos/wdt: kick wdt in isr, and more wdt mods
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9014 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-01 14:01:33 +00:00
stephan
4b3a79be02
chaos.hvc(): fix and improve args syntax, swap ADC gains
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9013 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-01 09:32:18 +00:00
stephan
7eae536cf8
avr/chaos: INPDIS, swap ADC channels 1,2
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9012 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-01 09:31:21 +00:00
stephan
e494ff01f2
avr/chaos/hvosc: init drives PWM pins 0
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9011 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-01 09:30:50 +00:00
stephan
aab685d3eb
flash_CHAOS: fix new syntax choas/cmd 'L'
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9010 bc5caf13-1734-44f8-af43-603852e9ee25
2024-06-28 15:32:56 +00:00
stephan
ef3ccfe7ba
flash_CHAOS: fix pressure/inj
...
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9009 bc5caf13-1734-44f8-af43-603852e9ee25
2024-06-28 15:31:55 +00:00