Eval » Historie » Version 77
Maximilian Seesslen, 07.09.2022 16:58
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 | 77 | Maximilian Seesslen | Results can be read via USB or retransmission can be triggered via CAN. Measured data have correct timestamps. It also has onboard temperature sensor and I2C interface for other sensors like BME680. |
5 | 29 | Maximilian Seesslen | |
6 | 77 | Maximilian Seesslen | It can act like generic CAN-controller: control 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 | 60 | 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 | 71 | Maximilian Seesslen | "Memory mapped":https://www.st.com/resource/en/application_note/an4760-quadspi-interface-on-stm32-microcontrollers-and-microprocessors--stmicroelectronics.pdf |
56 | 49 | Maximilian Seesslen | Cool, even CAN bootloader; |
57 | 32 | Maximilian Seesslen | But no SDMMC for 48pin package. |
58 | 51 | Maximilian Seesslen | |
59 | 68 | Maximilian Seesslen | h3. STM32L431CBT6 |
60 | |||
61 | C: 48 pins |
||
62 | B: 128KB |
||
63 | T: LQFP |
||
64 | |||
65 | 69 | Maximilian Seesslen | SDMMC1_CMD nicht verfuegbar; |
66 | 1 CAN |
||
67 | |||
68 | |||
69 | 1 | Maximilian Seesslen | h3. STM32L431RCT6 |
70 | 51 | Maximilian Seesslen | |
71 | 57 | Maximilian Seesslen | "Datasheet":https://www.st.com/resource/en/datasheet/stm32l431rc.pdf |
72 | 62 | Maximilian Seesslen | R: 64Pins |
73 | C: 256KB |
||
74 | T: LQFP |
||
75 | 57 | Maximilian Seesslen | |
76 | 64 | Maximilian Seesslen | [[/redmine/projects/hw-temprec/wiki/STM32]] |
77 | 67 | Maximilian Seesslen | "STM32-Liste":http://hase.seesslen.net/redmine/projects/hw-temprec/wiki/STM32 |
78 | 66 | Maximilian Seesslen | |
79 | 62 | Maximilian Seesslen | |
80 | 61 | Maximilian Seesslen | LQFP64 |
81 | 1 | Maximilian Seesslen | Kein USB. But with SD-Card it makes sense to have and "CANRec", without USB. I can connect the SD-Card directly to computer, no USB for device necessary. |
82 | 61 | Maximilian Seesslen | *Current choice* |
83 | 50 | Maximilian Seesslen | |
84 | 44 | Maximilian Seesslen | h2. Bootloader |
85 | 1 | Maximilian Seesslen | |
86 | 56 | Maximilian Seesslen | -PA11: USB DM line. Used in alternate push-pull, no pull mode.- |
87 | -PA12: USB DP line- |
||
88 | 1 | Maximilian Seesslen | |
89 | 59 | Maximilian Seesslen | CAN-Bootloader needs HSE; PB8/PB9 messes with SDMMC |
90 | 56 | Maximilian Seesslen | |
91 | 1 | Maximilian Seesslen | Uart would be nice, why is PA9/PA10 not working? Not blocking anything. Make it "predefined" and see what will fail. |
92 | 59 | Maximilian Seesslen | I2C: want PB10, PB11; should be possible when using PA2/PA3 for QUADSPI -NCS/CLK |
93 | |||
94 | 40 | Maximilian Seesslen | |
95 | 17 | Maximilian Seesslen | h2. RTC |
96 | |||
97 | 18 | Maximilian Seesslen | Supercapacitors have an discharge of 1μA. They wont feed RTC for more than a day. |
98 | Battery with shottky should do the job. |
||
99 | 19 | Maximilian Seesslen | |
100 | 1 | Maximilian Seesslen | RTC-Mode: 200nA; Battery with 20mAh |
101 | (20000000/200)/ 24 / 365 = ca 11Jahre. |
||
102 | 25 | Maximilian Seesslen | |
103 | 1 | Maximilian Seesslen | Use same battery like in Schiebleere. |
104 | 39 | Maximilian Seesslen | Hope that VBAT can be > VDD. |
105 | VBAT: 1.55V ... 3.6V -> need 3V |
||
106 | 25 | Maximilian Seesslen | |
107 | 46 | Maximilian Seesslen | h2. Display |
108 | |||
109 | QSPI: |
||
110 | RVT43ULBNWC03: 72.77Euro; 4,3``; BLVDD: 3.6V-5V |
||
111 | 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 |
112 | |||
113 | 75 | Maximilian Seesslen | Memory-mapped QSPI-Flash along with display could be tricky. Solder-option. |
114 | 47 | Maximilian Seesslen | An SPI display would be possible. But why an additional CANDis. |
115 | |||
116 | 1 | Maximilian Seesslen | CANDis laeuft ja noch nicht mal. Ein andermal. |
117 | I want RGB-Interface. |
||
118 | 75 | Maximilian Seesslen | |
119 | 46 | Maximilian Seesslen | |
120 | 55 | Maximilian Seesslen | h2. Onboard sensors |
121 | |||
122 | The extern I2C-Bus is for cool sensors. |
||
123 | An cheap lm75-temperature sensor could be on board. |
||
124 | 74 | Maximilian Seesslen | Try an tmp117 with some exposured layers. So CANDis can already show temperature. |
125 | 73 | Maximilian Seesslen | |
126 | 76 | Maximilian Seesslen | h2. CAN-Connectors |
127 | |||
128 | Second CAN connector with optional no power lines. |
||
129 | 55 | Maximilian Seesslen | |
130 | 21 | Maximilian Seesslen | h2. What else to do |
131 | |||
132 | 27 | Maximilian Seesslen | CANBridge mit aufnehmen? Dann isses nicht mehr 1V8. |
133 | 22 | Maximilian Seesslen | Nur Batterie, Flash und CAN-Anschluss sind a bisserl mau. |
134 | 28 | Maximilian Seesslen | USB/CAN-Mux, ok. |
135 | SAI gibts gerade nichts. IR auch etwas Sinnlos. |
||
136 | 26 | Maximilian Seesslen | |
137 | 1 | Maximilian Seesslen | I2C for the temperature sensor. |
138 | 27 | Maximilian Seesslen | |
139 | 60 | Maximilian Seesslen | * I2C ext. 2, 2 connectors |
140 | 70 | Maximilian Seesslen | * I2C int. 2; eeprom + tmp117 |
141 | 27 | Maximilian Seesslen | * RTC 3 |
142 | * CAN 2 |
||
143 | 54 | Maximilian Seesslen | * -Switch- |
144 | * -USB (switched)- |
||
145 | 70 | Maximilian Seesslen | * QSPI (Flash) 5, record data, memory-mapped |
146 | 72 | Maximilian Seesslen | ** 16Mb; GD25Q16EEIGR 0.7940; muesst ich doch noch alles haben |
147 | * SPI (Flash) 5, config, firmware-update, fallback fuer nicht funktionierendes QSPI; eigentlich ziemlich unnoetig. QSPI ist ja schon nur als Gag. |
||
148 | 54 | Maximilian Seesslen | * SDMMC |
149 | 1 | Maximilian Seesslen | * Uart 2 |
150 | 54 | Maximilian Seesslen | * -USB-Detect- |
151 | 70 | Maximilian Seesslen | * 2 mal LED standard; SD-Access-LED, Traffic-LED |
152 | 28 | Maximilian Seesslen | * Debug 4 pins |
153 | 54 | Maximilian Seesslen | * Buttons brauchts gar net |
154 | 28 | Maximilian Seesslen | |
155 | 33 | Maximilian Seesslen | 2+2+3+2+1+5+4+2+1+2+4=28 |
156 | 29 | Maximilian Seesslen | |
157 | 8MByte flash; 4K-byte sector |