Wiki » Historie » Version 26
Maximilian Seesslen, 01.10.2024 13:27
1 | 1 | Maximilian Seesslen | h1. Wiki |
---|---|---|---|
2 | |||
3 | There are some issues that can only be tested via power resets. |
||
4 | |||
5 | * SPI has an issue that it needs retries |
||
6 | * Looks like configuration I2C EEPROM gets reset to defaults |
||
7 | 3 | Maximilian Seesslen | * RTC-offline-test (Wie lange haelt die RTC Batterie) |
8 | 1 | Maximilian Seesslen | |
9 | 3 | Maximilian Seesslen | The device has an CANBus in and an CANBus out. The testsoftware is on the DUT. The DUT sends the command to toggle power line to Awaria via CAN. |
10 | The switch-off time has to be an parameter. The RTC-Tests will be complex, the Awaria software shall be simple and generic. |
||
11 | 2 | Maximilian Seesslen | |
12 | An data multiplexer can be used along with a mosfet for power line. |
||
13 | 13 | Maximilian Seesslen | Data lines for CAN and UART have to be cut. |
14 | In order to cut UART, an Debug-Adapter chaining would be needed. Or Uart is available via Host-USB. |
||
15 | 2 | Maximilian Seesslen | |
16 | 15 | Maximilian Seesslen | Optionally controll it via USB from PC, not MCU. Optically isolated GPIOs. |
17 | 12 | Maximilian Seesslen | |
18 | 14 | Maximilian Seesslen | h1. Problem |
19 | |||
20 | Circuit does not help at all when power is injected into device via Pullup of RS232. Lines can be disabled too. But whole |
||
21 | 1 | Maximilian Seesslen | debug connector can cause issues: No debug connection at all. |
22 | 15 | Maximilian Seesslen | FPC with UART only? All signals disconnectable? |
23 | 14 | Maximilian Seesslen | |
24 | 24 | Maximilian Seesslen | h1. Usecases |
25 | |||
26 | * Devices have their own test-software and ask awaria to perform an power-cycle for them. Result is stored in option Bytes. |
||
27 | * PC performs test. DUT has to send Log-Events when errors show up and when device is up and running. DUT firmware can be the productive firmware. |
||
28 | ** Tester-Firmware on PC is quite generic |
||
29 | ** CAN may not be available yet (CANDis). That was one intention of repeated log code |
||
30 | ** CANDis may be configured to use USB. No UART output here. USB does also not help then. |
||
31 | |||
32 | 26 | Maximilian Seesslen | h2. Problems: |
33 | |||
34 | * RTC: Cant check if there was an I2C problem or RTC was actually not valid |
||
35 | |||
36 | |||
37 | 25 | Maximilian Seesslen | h1. Usecases with products |
38 | |||
39 | * CANDis looses touch calibration |
||
40 | * CANDis; measure RTC durability |
||
41 | * CANSwitch; check I2C-EEPROM-Config reliability |
||
42 | |||
43 | |||
44 | 2 | Maximilian Seesslen | h1. Parts |
45 | |||
46 | * MCU: The smallest thing |
||
47 | 1 | Maximilian Seesslen | * Multiplexer: |
48 | 3 | Maximilian Seesslen | ** MC14551BDG bis zu 1K RON: 1050 |
49 | ** TS5A23166DCUR cool, 2 channels, up to 100mA, 1,8-6,5V |
||
50 | 6 | Maximilian Seesslen | ** Habe: |
51 | 7 | Maximilian Seesslen | *** DG408LEDQ-T1-GE3; .#273; 1:8 |
52 | 20 | Maximilian Seesslen | *** DG409LEDQ-T1-GE3; .#321; 2x 1:4 |
53 | 8 | Maximilian Seesslen | *** ADG736; .#315; 2x1:2 |
54 | 20 | Maximilian Seesslen | *** *RS2102XN ADG836YRMZ* Das ist er; 2x |
55 | 21 | Maximilian Seesslen | ** MAX4760; 8 Channels; Paarweise schalten |
56 | ** TMUX1574 4xSPDT; 1 Schalter |
||
57 | ** PI5C3257QE; 4xSPDT; 1 Schalter; 0.229€ |
||
58 | 6 | Maximilian Seesslen | |
59 | 5 | Maximilian Seesslen | * Big EEPROM, device can store test info from DUT |
60 | 4 | Maximilian Seesslen | |
61 | Spannungs/Strom zu umstaendlich. |
||
62 | 10 | Maximilian Seesslen | |
63 | h1. RTC-Tests |
||
64 | |||
65 | Can have a region in SPI-Flash. |
||
66 | 11 | Maximilian Seesslen | If the Settings are not ok, just have an terminal. |
67 | The test can only be started from terminal. |
||
68 | rebootTest <startTime> |
||
69 | |||
70 | 10 | Maximilian Seesslen | Start. |
71 | * Cut 2 Seconds. Time OK? |
||
72 | * Cut 4 Seconds. Time OK? |
||
73 | 1 | Maximilian Seesslen | * Cut 8 Seconds. Time OK? |
74 | 11 | Maximilian Seesslen | |
75 | When it fails, "destroy" test-config in spi flash |
||
76 | 12 | Maximilian Seesslen | |
77 | h1. Connectors |
||
78 | |||
79 | * CANBus-In |
||
80 | * CANBus.Out |
||
81 | * Power in |
||
82 | * Power out |
||
83 | 17 | Maximilian Seesslen | * -USB PC to MCU- |
84 | * -USB PC to DUT- |
||
85 | |||
86 | Debug, CAN, power only? |
||
87 | CAN-Geraete koennten auch standalone laufen, Testsoftware auf PC. |
||
88 | 18 | Maximilian Seesslen | |
89 | |||
90 | 2x Uart |
||
91 | 2x SWD |
||
92 | 1x Reset |
||
93 | 19 | Maximilian Seesslen | 1x Boot0 |
94 | 2x CAN |
||
95 | 22 | Maximilian Seesslen | (DEBUG: VDD_5VIN, GND, VDD_TGT, SWO) |
96 | 23 | Maximilian Seesslen | |
97 | USB schalten is overkill, andere Platine. |