Eval » Historie » Version 55
Maximilian Seesslen, 08.07.2022 12:38
1 | 1 | Maximilian Seesslen | h1. Eval |
---|---|---|---|
2 | |||
3 | 29 | Maximilian Seesslen | Device that records data from sensors that are connected via CAN directly via I2C. |
4 | Results can be read via USB or retransmission can be triggered via CAN. Measured data have correct timestamps. |
||
5 | |||
6 | 35 | Maximilian Seesslen | generic CAN-controller: Plant-lamps, light-alarm-clock, auto-off of Mainswitch, controll pumps |
7 | 34 | Maximilian Seesslen | |
8 | 35 | Maximilian Seesslen | (Also want to test memory mapped QSPI-flash.) |
9 | 30 | Maximilian Seesslen | |
10 | 7 | Maximilian Seesslen | STM32 with -SD-Card slot and- quite big Flash. No RTC is not cool. |
11 | 35 | Maximilian Seesslen | (PC should not collect data poe-a-poe.) |
12 | 1 | Maximilian Seesslen | |
13 | 12 | Maximilian Seesslen | * CAN |
14 | * UART |
||
15 | * (Q)SPI |
||
16 | * RTC |
||
17 | 11 | Maximilian Seesslen | |
18 | 45 | Maximilian Seesslen | Why not just using CANDIs? check flash. |
19 | |||
20 | 1 | Maximilian Seesslen | h2. MCU |
21 | 2 | Maximilian Seesslen | |
22 | 53 | Maximilian Seesslen | h3. STM32L443CCU6 |
23 | 3 | Maximilian Seesslen | |
24 | CAN/USB Multiplexer vom CANDis uebernehmen. |
||
25 | 16 | Maximilian Seesslen | Das Package hat kein SDMMC interface. |
26 | Also hoellischen viel QSPI-Flash drauf. |
||
27 | 6 | Maximilian Seesslen | USB-Detect vom minutnik-eink testen. |
28 | 1 | Maximilian Seesslen | Bischen unterfordert. |
29 | 6 | Maximilian Seesslen | Flash: |
30 | Ich hab doch mal 1,8V flash gekauft. |
||
31 | CS ist auch bei QSPI noch vorhanden. |
||
32 | 1 | Maximilian Seesslen | Da reicht ja ein stm32f042 ... |
33 | |||
34 | 53 | Maximilian Seesslen | h3. STM32F303C6U6A |
35 | |||
36 | 1 | Maximilian Seesslen | Good old "STM32F303C6U6A"; ist klein (QFNP32), hat kein VBAT. |
37 | STM32F103C6U6A sieht gut aus. VBAT. USB und CAN geht nicht gleichzeitig, ist aber verdrahtbar. Laeuft nicht mit 1V8. The RTC is strange, although it works. |
||
38 | 16 | Maximilian Seesslen | |
39 | Doch gleich nen STM32L431CBT6, dann gibts auch QSPI. Und die 4 Stueck sind dann auch gleich weg. |
||
40 | Und sie koennen 1V8, VBat ist da. 1V8 fuer RTC wird aber tricky, oder ich versuch mal nen Elko/supercap |
||
41 | 1 | Maximilian Seesslen | Sowohl via USB als auch via CAN power-bar. Dann braucht man nicht zwangslaeufig CAN am PC. |
42 | Hat kein USB. |
||
43 | |||
44 | 53 | Maximilian Seesslen | h3. STM32L562ZET6Q |
45 | 1 | Maximilian Seesslen | |
46 | 53 | Maximilian Seesslen | verfuegbar; LQFP-144 noch alberner. |
47 | |||
48 | h3. STM32L443CCU6 |
||
49 | |||
50 | 24 | Maximilian Seesslen | VDDUSB: 3.0-3.6V when USB us used; 0V when CAN is used |
51 | 32 | Maximilian Seesslen | An level-shifter for UART. Only making it in USB-Mode makes it impossible to test CAN. |
52 | 41 | Maximilian Seesslen | "Datasheet":https://www.st.com/resource/en/datasheet/stm32l443cc.pdf |
53 | 42 | Maximilian Seesslen | "Bootloader":https://www.st.com/resource/en/application_note/cd00167594-stm32-microcontroller-system-memory-boot-mode-stmicroelectronics.pdf |
54 | 44 | Maximilian Seesslen | "Errata":https://www.st.com/resource/en/errata_sheet/es0318-stm32l433xx443xx-device-errata-stmicroelectronics.pdf |
55 | 49 | Maximilian Seesslen | Cool, even CAN bootloader; |
56 | 32 | Maximilian Seesslen | But no SDMMC for 48pin package. |
57 | 51 | Maximilian Seesslen | |
58 | 1 | Maximilian Seesslen | h3. STM32L431RCT6 |
59 | 51 | Maximilian Seesslen | |
60 | 1 | Maximilian Seesslen | LQFP64 |
61 | 51 | Maximilian Seesslen | Kein USB. But with SD-Card it makes sense to have and "CANRec", without USB. |
62 | *Current choice* |
||
63 | 50 | Maximilian Seesslen | |
64 | 52 | Maximilian Seesslen | |
65 | 44 | Maximilian Seesslen | h2. Bootloader |
66 | |||
67 | 43 | Maximilian Seesslen | PA11: USB DM line. Used in alternate push-pull, no pull mode. |
68 | 40 | Maximilian Seesslen | PA12: USB DP line |
69 | 1 | Maximilian Seesslen | |
70 | 45 | Maximilian Seesslen | CAN-Bootloader needs HSE |
71 | 44 | Maximilian Seesslen | |
72 | 40 | Maximilian Seesslen | |
73 | 17 | Maximilian Seesslen | h2. RTC |
74 | |||
75 | 18 | Maximilian Seesslen | Supercapacitors have an discharge of 1μA. They wont feed RTC for more than a day. |
76 | Battery with shottky should do the job. |
||
77 | 19 | Maximilian Seesslen | |
78 | 1 | Maximilian Seesslen | RTC-Mode: 200nA; Battery with 20mAh |
79 | (20000000/200)/ 24 / 365 = ca 11Jahre. |
||
80 | 25 | Maximilian Seesslen | |
81 | 1 | Maximilian Seesslen | Use same battery like in Schiebleere. |
82 | 39 | Maximilian Seesslen | Hope that VBAT can be > VDD. |
83 | VBAT: 1.55V ... 3.6V -> need 3V |
||
84 | 25 | Maximilian Seesslen | |
85 | 46 | Maximilian Seesslen | h2. Display |
86 | |||
87 | QSPI: |
||
88 | RVT43ULBNWC03: 72.77Euro; 4,3``; BLVDD: 3.6V-5V |
||
89 | 47 | Maximilian Seesslen | "Controller-Doku":https://brtchip.com/wp-content/uploads/Support/Documentation/Programming_Guides/ICs/EVE/BRT_AN_033_BT81X_Series_Programming_Guide.pdf |
90 | |||
91 | Memory-mapped QSPI-Flash along with display could be tricky. |
||
92 | An SPI display would be possible. But why an additional CANDis. |
||
93 | |||
94 | 1 | Maximilian Seesslen | CANDis laeuft ja noch nicht mal. Ein andermal. |
95 | 48 | Maximilian Seesslen | I want RGB-Interface. |
96 | 46 | Maximilian Seesslen | |
97 | 55 | Maximilian Seesslen | h2. Onboard sensors |
98 | |||
99 | The extern I2C-Bus is for cool sensors. |
||
100 | An cheap lm75-temperature sensor could be on board. |
||
101 | |||
102 | 21 | Maximilian Seesslen | h2. What else to do |
103 | |||
104 | 27 | Maximilian Seesslen | CANBridge mit aufnehmen? Dann isses nicht mehr 1V8. |
105 | 22 | Maximilian Seesslen | Nur Batterie, Flash und CAN-Anschluss sind a bisserl mau. |
106 | 28 | Maximilian Seesslen | USB/CAN-Mux, ok. |
107 | SAI gibts gerade nichts. IR auch etwas Sinnlos. |
||
108 | 26 | Maximilian Seesslen | |
109 | 1 | Maximilian Seesslen | I2C for the temperature sensor. |
110 | 27 | Maximilian Seesslen | |
111 | 33 | Maximilian Seesslen | * I2C ext. 2 |
112 | * I2C int. 2 |
||
113 | 27 | Maximilian Seesslen | * RTC 3 |
114 | * CAN 2 |
||
115 | 54 | Maximilian Seesslen | * -Switch- |
116 | * -USB (switched)- |
||
117 | 1 | Maximilian Seesslen | * QSPI (Flash) 5, record data |
118 | 54 | Maximilian Seesslen | * SPI (Flash) 5, config, firmware-update, fallback fuer nicht funktionierendes QSPI |
119 | * SDMMC |
||
120 | 1 | Maximilian Seesslen | * Uart 2 |
121 | 54 | Maximilian Seesslen | * -USB-Detect- |
122 | 28 | Maximilian Seesslen | * 2 mal LED |
123 | * Debug 4 pins |
||
124 | 54 | Maximilian Seesslen | * Buttons brauchts gar net |
125 | 28 | Maximilian Seesslen | |
126 | 33 | Maximilian Seesslen | 2+2+3+2+1+5+4+2+1+2+4=28 |
127 | 29 | Maximilian Seesslen | |
128 | 8MByte flash; 4K-byte sector |