Eval » Historie » Version 52
Maximilian Seesslen, 07.07.2022 17:52
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 | |_.MCU | Package | Flash | Ram | Cost | Features | Quantity | Projects |Comment |Link | |
||
23 | 9 | Maximilian Seesslen | | STM32L443CCU6 | 48UFQFPN | 256KB | 64K | 7,57€ | CAN, -SDMMC,- USB, QSPI memory interface | - | CANRec |USB und CAN nicht gleichzeitig| "Link":https://www.st.com/content/ccc/resource/technical/document/datasheet/01/76/9c/b5/c7/d9/40/6c/DM00254865.pdf/files/DM00254865.pdf/jcr:content/translations/en.DM00254865.pdf | |
24 | 3 | Maximilian Seesslen | |
25 | CAN/USB Multiplexer vom CANDis uebernehmen. |
||
26 | 16 | Maximilian Seesslen | Das Package hat kein SDMMC interface. |
27 | Also hoellischen viel QSPI-Flash drauf. |
||
28 | 6 | Maximilian Seesslen | USB-Detect vom minutnik-eink testen. |
29 | 1 | Maximilian Seesslen | Bischen unterfordert. |
30 | 6 | Maximilian Seesslen | Flash: |
31 | Ich hab doch mal 1,8V flash gekauft. |
||
32 | CS ist auch bei QSPI noch vorhanden. |
||
33 | 10 | Maximilian Seesslen | Da reicht ja ein stm32f042 ... |
34 | 11 | Maximilian Seesslen | |
35 | 1 | Maximilian Seesslen | Good old "STM32F303C6U6A"; ist klein (QFNP32), hat kein VBAT. |
36 | 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. |
||
37 | 16 | Maximilian Seesslen | |
38 | Doch gleich nen STM32L431CBT6, dann gibts auch QSPI. Und die 4 Stueck sind dann auch gleich weg. |
||
39 | Und sie koennen 1V8, VBat ist da. 1V8 fuer RTC wird aber tricky, oder ich versuch mal nen Elko/supercap |
||
40 | Sowohl via USB als auch via CAN power-bar. Dann braucht man nicht zwangslaeufig CAN am PC. |
||
41 | 23 | Maximilian Seesslen | Hat kein USB. |
42 | |||
43 | 36 | Maximilian Seesslen | STM32L562ZET6Q verfuegbar; LQFP-144 noch alberner. |
44 | |||
45 | 24 | Maximilian Seesslen | STM32L443CCU6 |
46 | VDDUSB: 3.0-3.6V when USB us used; 0V when CAN is used |
||
47 | 32 | Maximilian Seesslen | An level-shifter for UART. Only making it in USB-Mode makes it impossible to test CAN. |
48 | 41 | Maximilian Seesslen | "Datasheet":https://www.st.com/resource/en/datasheet/stm32l443cc.pdf |
49 | 42 | Maximilian Seesslen | "Bootloader":https://www.st.com/resource/en/application_note/cd00167594-stm32-microcontroller-system-memory-boot-mode-stmicroelectronics.pdf |
50 | 44 | Maximilian Seesslen | "Errata":https://www.st.com/resource/en/errata_sheet/es0318-stm32l433xx443xx-device-errata-stmicroelectronics.pdf |
51 | 43 | Maximilian Seesslen | Cool, even CAN bootloader; |
52 | 49 | Maximilian Seesslen | But no SDMMC for 48pin package. |
53 | 32 | Maximilian Seesslen | |
54 | 51 | Maximilian Seesslen | h3. STM32L431RCT6 |
55 | 1 | Maximilian Seesslen | |
56 | 51 | Maximilian Seesslen | LQFP64 |
57 | 1 | Maximilian Seesslen | Kein USB. But with SD-Card it makes sense to have and "CANRec", without USB. |
58 | 51 | Maximilian Seesslen | *Current choice* |
59 | |||
60 | 50 | Maximilian Seesslen | |
61 | 52 | Maximilian Seesslen | |
62 | 44 | Maximilian Seesslen | h2. Bootloader |
63 | |||
64 | 43 | Maximilian Seesslen | PA11: USB DM line. Used in alternate push-pull, no pull mode. |
65 | 40 | Maximilian Seesslen | PA12: USB DP line |
66 | 1 | Maximilian Seesslen | |
67 | 45 | Maximilian Seesslen | CAN-Bootloader needs HSE |
68 | 44 | Maximilian Seesslen | |
69 | 40 | Maximilian Seesslen | |
70 | 17 | Maximilian Seesslen | h2. RTC |
71 | |||
72 | 18 | Maximilian Seesslen | Supercapacitors have an discharge of 1μA. They wont feed RTC for more than a day. |
73 | Battery with shottky should do the job. |
||
74 | 19 | Maximilian Seesslen | |
75 | 1 | Maximilian Seesslen | RTC-Mode: 200nA; Battery with 20mAh |
76 | (20000000/200)/ 24 / 365 = ca 11Jahre. |
||
77 | 25 | Maximilian Seesslen | |
78 | 1 | Maximilian Seesslen | Use same battery like in Schiebleere. |
79 | 39 | Maximilian Seesslen | Hope that VBAT can be > VDD. |
80 | VBAT: 1.55V ... 3.6V -> need 3V |
||
81 | 25 | Maximilian Seesslen | |
82 | 46 | Maximilian Seesslen | h2. Display |
83 | |||
84 | QSPI: |
||
85 | RVT43ULBNWC03: 72.77Euro; 4,3``; BLVDD: 3.6V-5V |
||
86 | 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 |
87 | |||
88 | Memory-mapped QSPI-Flash along with display could be tricky. |
||
89 | An SPI display would be possible. But why an additional CANDis. |
||
90 | |||
91 | 1 | Maximilian Seesslen | CANDis laeuft ja noch nicht mal. Ein andermal. |
92 | 48 | Maximilian Seesslen | I want RGB-Interface. |
93 | 46 | Maximilian Seesslen | |
94 | 21 | Maximilian Seesslen | h2. What else to do |
95 | |||
96 | 27 | Maximilian Seesslen | CANBridge mit aufnehmen? Dann isses nicht mehr 1V8. |
97 | 22 | Maximilian Seesslen | Nur Batterie, Flash und CAN-Anschluss sind a bisserl mau. |
98 | 28 | Maximilian Seesslen | USB/CAN-Mux, ok. |
99 | SAI gibts gerade nichts. IR auch etwas Sinnlos. |
||
100 | 26 | Maximilian Seesslen | |
101 | 1 | Maximilian Seesslen | I2C for the temperature sensor. |
102 | 27 | Maximilian Seesslen | |
103 | 33 | Maximilian Seesslen | * I2C ext. 2 |
104 | * I2C int. 2 |
||
105 | 27 | Maximilian Seesslen | * RTC 3 |
106 | * CAN 2 |
||
107 | 1 | Maximilian Seesslen | * Switch |
108 | * USB (switched) |
||
109 | 37 | Maximilian Seesslen | * QSPI (Flash) 5, record data |
110 | 38 | Maximilian Seesslen | * SPI (Flash) 5, config, firmware-update, fallback |
111 | 1 | Maximilian Seesslen | * Uart 2 |
112 | 28 | Maximilian Seesslen | * USB-Detect |
113 | * 2 mal LED |
||
114 | 1 | Maximilian Seesslen | * Debug 4 pins |
115 | 28 | Maximilian Seesslen | |
116 | 33 | Maximilian Seesslen | 2+2+3+2+1+5+4+2+1+2+4=28 |
117 | 29 | Maximilian Seesslen | |
118 | 8MByte flash; 4K-byte sector |