Compare commits

..

5 Commits

Author SHA1 Message Date
e2dae71295 SW #43: Added SD/MMC interface to CubeMX 2025-09-21 22:31:33 -07:00
e23f2af04c ECAD #40: Re-add MicroSD card schematic 2025-09-21 19:46:02 -07:00
22bc55105c ECAD: 4-bit MicroSD schematic with pullups 2025-09-20 23:14:23 -07:00
8ddd22f832 SW #36: CubeMX debug led 2025-09-15 23:10:45 -07:00
07bd1658dc ECAD #32: Debug LED connected to PB12 2025-09-15 22:29:48 -07:00
11 changed files with 3396 additions and 282 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -618,10 +618,6 @@
"3f625fbe-0d7d-4f9d-a789-e3d398a1e499", "3f625fbe-0d7d-4f9d-a789-e3d398a1e499",
"MCU" "MCU"
], ],
[
"cb777b82-025b-46bf-a35c-23d9be73404c",
"Flash"
],
[ [
"3b69b8b5-74b9-4ef8-b089-9f6703a47935", "3b69b8b5-74b9-4ef8-b089-9f6703a47935",
"Pressure Sensor" "Pressure Sensor"
@@ -633,6 +629,10 @@
[ [
"be3c13b5-9ed7-48d7-9628-fcde8ceb3f83", "be3c13b5-9ed7-48d7-9628-fcde8ceb3f83",
"Battery" "Battery"
],
[
"e94fe28b-7032-4620-a8c2-7db10727010e",
"MicroSD Card"
] ]
], ],
"text_variables": {} "text_variables": {}

File diff suppressed because it is too large Load Diff

View File

@@ -2330,6 +2330,16 @@
(at 228.6 87.63) (at 228.6 87.63)
(uuid "1f392776-691d-4898-b4c4-9d208ef6f28d") (uuid "1f392776-691d-4898-b4c4-9d208ef6f28d")
) )
(wire
(pts
(xy 147.32 121.92) (xy 153.67 121.92)
)
(stroke
(width 0)
(type default)
)
(uuid "0001712f-6627-4887-8f09-0bf2c8161784")
)
(wire (wire
(pts (pts
(xy 184.15 93.98) (xy 191.77 93.98) (xy 184.15 93.98) (xy 191.77 93.98)
@@ -2390,6 +2400,16 @@
) )
(uuid "1d12bbf2-3b9e-475e-83ec-3ab6bdce746b") (uuid "1d12bbf2-3b9e-475e-83ec-3ab6bdce746b")
) )
(wire
(pts
(xy 147.32 116.84) (xy 153.67 116.84)
)
(stroke
(width 0)
(type default)
)
(uuid "1daaa86c-9acb-43bb-9594-602a8cb0084c")
)
(wire (wire
(pts (pts
(xy 171.45 134.62) (xy 171.45 132.08) (xy 171.45 134.62) (xy 171.45 132.08)
@@ -2400,16 +2420,6 @@
) )
(uuid "1ed5c006-4643-4e39-bf01-b7a09002784f") (uuid "1ed5c006-4643-4e39-bf01-b7a09002784f")
) )
(wire
(pts
(xy 147.32 99.06) (xy 153.67 99.06)
)
(stroke
(width 0)
(type default)
)
(uuid "23160eb1-1e2e-45c8-8897-1c5dc48fc9da")
)
(wire (wire
(pts (pts
(xy 220.98 80.01) (xy 228.6 80.01) (xy 220.98 80.01) (xy 228.6 80.01)
@@ -2430,16 +2440,6 @@
) )
(uuid "24bb5b8d-6e0a-487a-9dc6-a01648b4fbed") (uuid "24bb5b8d-6e0a-487a-9dc6-a01648b4fbed")
) )
(wire
(pts
(xy 184.15 99.06) (xy 191.77 99.06)
)
(stroke
(width 0)
(type default)
)
(uuid "2e70aa0b-91c7-4f45-9656-55e922610941")
)
(wire (wire
(pts (pts
(xy 220.98 100.33) (xy 228.6 100.33) (xy 220.98 100.33) (xy 228.6 100.33)
@@ -2460,16 +2460,6 @@
) )
(uuid "3940d32e-4bbd-4c16-ac1e-0946aa5c089c") (uuid "3940d32e-4bbd-4c16-ac1e-0946aa5c089c")
) )
(wire
(pts
(xy 147.32 101.6) (xy 153.67 101.6)
)
(stroke
(width 0)
(type default)
)
(uuid "398bec0f-dde5-4537-8fc3-b9498c65b48e")
)
(wire (wire
(pts (pts
(xy 243.84 106.68) (xy 243.84 105.41) (xy 243.84 106.68) (xy 243.84 105.41)
@@ -2542,13 +2532,13 @@
) )
(wire (wire
(pts (pts
(xy 147.32 104.14) (xy 153.67 104.14) (xy 184.15 63.5) (xy 191.77 63.5)
) )
(stroke (stroke
(width 0) (width 0)
(type default) (type default)
) )
(uuid "87c2e995-be01-40d2-b0ae-b679378c5995") (uuid "936c77db-1d32-44be-a233-8ef1fc0fc002")
) )
(wire (wire
(pts (pts
@@ -2610,6 +2600,16 @@
) )
(uuid "c185fc07-2acb-4a71-812a-c991966502f7") (uuid "c185fc07-2acb-4a71-812a-c991966502f7")
) )
(wire
(pts
(xy 147.32 124.46) (xy 153.67 124.46)
)
(stroke
(width 0)
(type default)
)
(uuid "c390a098-5a3a-4713-860b-f0e8fe2581e3")
)
(wire (wire
(pts (pts
(xy 58.42 105.41) (xy 71.12 105.41) (xy 58.42 105.41) (xy 71.12 105.41)
@@ -2620,6 +2620,16 @@
) )
(uuid "ccb4f7b0-824a-4173-8d5a-4f0e0edfd42f") (uuid "ccb4f7b0-824a-4173-8d5a-4f0e0edfd42f")
) )
(wire
(pts
(xy 147.32 104.14) (xy 153.67 104.14)
)
(stroke
(width 0)
(type default)
)
(uuid "d2d448ff-e737-43f3-992a-b928bc60662e")
)
(wire (wire
(pts (pts
(xy 191.77 86.36) (xy 184.15 86.36) (xy 191.77 86.36) (xy 184.15 86.36)
@@ -2780,17 +2790,6 @@
) )
(uuid "e3982cec-8da9-4a41-b362-0b5065a83eed") (uuid "e3982cec-8da9-4a41-b362-0b5065a83eed")
) )
(hierarchical_label "FLASH_MOSI"
(shape output)
(at 147.32 99.06 180)
(effects
(font
(size 1.27 1.27)
)
(justify right)
)
(uuid "1433fbe8-d6d2-416e-8828-51cb5b93a881")
)
(hierarchical_label "PRES_SCK" (hierarchical_label "PRES_SCK"
(shape output) (shape output)
(at 191.77 73.66 0) (at 191.77 73.66 0)
@@ -2802,16 +2801,16 @@
) )
(uuid "1507a78b-d60d-495d-9e2b-439e349f1c8f") (uuid "1507a78b-d60d-495d-9e2b-439e349f1c8f")
) )
(hierarchical_label "FLASH_MISO" (hierarchical_label "SD_CK"
(shape input) (shape output)
(at 147.32 96.52 180) (at 147.32 116.84 180)
(effects (effects
(font (font
(size 1.27 1.27) (size 1.27 1.27)
) )
(justify right) (justify right)
) )
(uuid "15ff75cf-aad7-4187-b65b-a2d4195e8d9b") (uuid "1947b19c-e5b5-457a-bf7a-e269492b3398")
) )
(hierarchical_label "USB_D-" (hierarchical_label "USB_D-"
(shape bidirectional) (shape bidirectional)
@@ -2825,28 +2824,6 @@
) )
(uuid "1e149bbf-7530-4538-b85b-406464910d7c") (uuid "1e149bbf-7530-4538-b85b-406464910d7c")
) )
(hierarchical_label "FLASH_~{CS}"
(shape output)
(at 191.77 99.06 0)
(effects
(font
(size 1.27 1.27)
)
(justify left)
)
(uuid "27624ea2-8dac-4dc8-9854-299f321f28ac")
)
(hierarchical_label "FLASH_SCK"
(shape output)
(at 147.32 93.98 180)
(effects
(font
(size 1.27 1.27)
)
(justify right)
)
(uuid "29c68aa8-6a4c-49b3-946c-7529deaa6cd4")
)
(hierarchical_label "PRES_MISO" (hierarchical_label "PRES_MISO"
(shape input) (shape input)
(at 191.77 76.2 0) (at 191.77 76.2 0)
@@ -2858,27 +2835,16 @@
) )
(uuid "2ff1fd22-b29b-4eb6-95bb-678783af0237") (uuid "2ff1fd22-b29b-4eb6-95bb-678783af0237")
) )
(hierarchical_label "FLASH_~{WP}" (hierarchical_label "SD_D3"
(shape output) (shape bidirectional)
(at 147.32 104.14 180) (at 147.32 96.52 180)
(effects (effects
(font (font
(size 1.27 1.27) (size 1.27 1.27)
) )
(justify right) (justify right)
) )
(uuid "94365ef2-8bfd-4e20-970e-5a5f60e080be") (uuid "823eff0a-8f2f-4999-bf9c-69b98826bd29")
)
(hierarchical_label "FLASH_~{RST}"
(shape output)
(at 147.32 101.6 180)
(effects
(font
(size 1.27 1.27)
)
(justify right)
)
(uuid "9ec5e8ab-bff9-4e70-a1aa-48f8b502e455")
) )
(hierarchical_label "PRES_~{SC}" (hierarchical_label "PRES_~{SC}"
(shape output) (shape output)
@@ -2903,6 +2869,61 @@
) )
(uuid "c8684572-3a4c-4e9c-afa8-8f61767068ce") (uuid "c8684572-3a4c-4e9c-afa8-8f61767068ce")
) )
(hierarchical_label "SD_CMD"
(shape output)
(at 191.77 63.5 0)
(effects
(font
(size 1.27 1.27)
)
(justify left)
)
(uuid "cffcb49d-8377-493d-9dfd-c7b89b14c7a2")
)
(hierarchical_label "SD_D2"
(shape bidirectional)
(at 147.32 93.98 180)
(effects
(font
(size 1.27 1.27)
)
(justify right)
)
(uuid "e6e3dcb6-b9cb-42b9-bfd8-21b1bd73c2c2")
)
(hierarchical_label "DEBUG_LED"
(shape output)
(at 147.32 104.14 180)
(effects
(font
(size 1.27 1.27)
)
(justify right)
)
(uuid "ed0beb14-5673-4969-a388-d54c9e4d2864")
)
(hierarchical_label "SD_D0"
(shape bidirectional)
(at 147.32 121.92 180)
(effects
(font
(size 1.27 1.27)
)
(justify right)
)
(uuid "f3bcfb56-3b09-4552-bad2-1d33ceed57d0")
)
(hierarchical_label "SD_D1"
(shape bidirectional)
(at 147.32 124.46 180)
(effects
(font
(size 1.27 1.27)
)
(justify right)
)
(uuid "f7dd0084-932b-4f72-bb42-9ace8bf76a53")
)
(hierarchical_label "PRES_MOSI" (hierarchical_label "PRES_MOSI"
(shape output) (shape output)
(at 191.77 78.74 0) (at 191.77 78.74 0)

View File

@@ -9,31 +9,31 @@ Mcu.CPN=STM32L4Q5CGT6
Mcu.Family=STM32L4 Mcu.Family=STM32L4
Mcu.IP0=NVIC Mcu.IP0=NVIC
Mcu.IP1=RCC Mcu.IP1=RCC
Mcu.IP2=SPI1 Mcu.IP2=SDMMC2
Mcu.IP3=SPI3 Mcu.IP3=SPI1
Mcu.IP4=SYS Mcu.IP4=SYS
Mcu.IP5=USART1 Mcu.IP5=USART1
Mcu.IP6=USB_OTG_FS Mcu.IP6=USB_OTG_FS
Mcu.IPNb=7 Mcu.IPNb=7
Mcu.Name=STM32L4Q5CGTx Mcu.Name=STM32L4Q5CGTx
Mcu.Package=LQFP48 Mcu.Package=LQFP48
Mcu.Pin0=PA5 Mcu.Pin0=PA1
Mcu.Pin1=PA6 Mcu.Pin1=PA5
Mcu.Pin10=PA15 (JTDI) Mcu.Pin10=PA11
Mcu.Pin11=PB3 (JTDO/TRACESWO) Mcu.Pin11=PA12
Mcu.Pin12=PB4 (NJTRST) Mcu.Pin12=PA13 (JTMS/SWDIO)
Mcu.Pin13=PB5 Mcu.Pin13=PA14 (JTCK/SWCLK)
Mcu.Pin14=PB6 Mcu.Pin14=PB3 (JTDO/TRACESWO)
Mcu.Pin15=PB7 Mcu.Pin15=PB4 (NJTRST)
Mcu.Pin16=VP_SYS_VS_Systick Mcu.Pin16=VP_SYS_VS_Systick
Mcu.Pin2=PA7 Mcu.Pin2=PA6
Mcu.Pin3=PB0 Mcu.Pin3=PA7
Mcu.Pin4=PA9 Mcu.Pin4=PB0
Mcu.Pin5=PA10 Mcu.Pin5=PB12
Mcu.Pin6=PA11 Mcu.Pin6=PB14
Mcu.Pin7=PA12 Mcu.Pin7=PB15
Mcu.Pin8=PA13 (JTMS/SWDIO) Mcu.Pin8=PA9
Mcu.Pin9=PA14 (JTCK/SWCLK) Mcu.Pin9=PA10
Mcu.PinsNb=17 Mcu.PinsNb=17
Mcu.ThirdPartyNb=0 Mcu.ThirdPartyNb=0
Mcu.UserConstants= Mcu.UserConstants=
@@ -51,6 +51,8 @@ NVIC.PriorityGroup=NVIC_PRIORITYGROUP_4
NVIC.SVCall_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false NVIC.SVCall_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
NVIC.SysTick_IRQn=true\:15\:0\:false\:false\:true\:false\:true\:false NVIC.SysTick_IRQn=true\:15\:0\:false\:false\:true\:false\:true\:false
NVIC.UsageFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false NVIC.UsageFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
PA1.Mode=SD_4_bits_Wide_bus
PA1.Signal=SDMMC2_CMD
PA10.Mode=Asynchronous PA10.Mode=Asynchronous
PA10.Signal=USART1_RX PA10.Signal=USART1_RX
PA11.Mode=Device_Only PA11.Mode=Device_Only
@@ -63,10 +65,6 @@ PA13\ (JTMS/SWDIO).Signal=SYS_JTMS-SWDIO
PA14\ (JTCK/SWCLK).Locked=true PA14\ (JTCK/SWCLK).Locked=true
PA14\ (JTCK/SWCLK).Mode=Serial_Wire PA14\ (JTCK/SWCLK).Mode=Serial_Wire
PA14\ (JTCK/SWCLK).Signal=SYS_JTCK-SWCLK PA14\ (JTCK/SWCLK).Signal=SYS_JTCK-SWCLK
PA15\ (JTDI).GPIOParameters=GPIO_Label
PA15\ (JTDI).GPIO_Label=FLASH_CS
PA15\ (JTDI).Locked=true
PA15\ (JTDI).Signal=GPIO_Output
PA5.GPIOParameters=GPIO_Label PA5.GPIOParameters=GPIO_Label
PA5.GPIO_Label=PRES_SCK PA5.GPIO_Label=PRES_SCK
PA5.Mode=Full_Duplex_Master PA5.Mode=Full_Duplex_Master
@@ -85,26 +83,16 @@ PB0.GPIOParameters=GPIO_Label
PB0.GPIO_Label=PRES_CS PB0.GPIO_Label=PRES_CS
PB0.Locked=true PB0.Locked=true
PB0.Signal=GPIO_Output PB0.Signal=GPIO_Output
PB3\ (JTDO/TRACESWO).GPIOParameters=GPIO_Label PB12.Mode=SD_4_bits_Wide_bus
PB3\ (JTDO/TRACESWO).GPIO_Label=FLASH_SCK PB12.Signal=SDMMC2_CK
PB3\ (JTDO/TRACESWO).Mode=Full_Duplex_Master PB14.Mode=SD_4_bits_Wide_bus
PB3\ (JTDO/TRACESWO).Signal=SPI3_SCK PB14.Signal=SDMMC2_D0
PB4\ (NJTRST).GPIOParameters=GPIO_Label PB15.Mode=SD_4_bits_Wide_bus
PB4\ (NJTRST).GPIO_Label=FLASH_MISO PB15.Signal=SDMMC2_D1
PB4\ (NJTRST).Mode=Full_Duplex_Master PB3\ (JTDO/TRACESWO).Mode=SD_4_bits_Wide_bus
PB4\ (NJTRST).Signal=SPI3_MISO PB3\ (JTDO/TRACESWO).Signal=SDMMC2_D2
PB5.GPIOParameters=GPIO_Label PB4\ (NJTRST).Mode=SD_4_bits_Wide_bus
PB5.GPIO_Label=FLASH_MOSI PB4\ (NJTRST).Signal=SDMMC2_D3
PB5.Mode=Full_Duplex_Master
PB5.Signal=SPI3_MOSI
PB6.GPIOParameters=GPIO_Label
PB6.GPIO_Label=FLASH_RST
PB6.Locked=true
PB6.Signal=GPIO_Output
PB7.GPIOParameters=GPIO_Label
PB7.GPIO_Label=FLASH_WP
PB7.Locked=true
PB7.Signal=GPIO_Output
PinOutPanel.RotationAngle=0 PinOutPanel.RotationAngle=0
ProjectManager.AskForMigrate=true ProjectManager.AskForMigrate=true
ProjectManager.BackupPrevious=false ProjectManager.BackupPrevious=false
@@ -137,7 +125,7 @@ ProjectManager.ToolChainLocation=
ProjectManager.UAScriptAfterPath= ProjectManager.UAScriptAfterPath=
ProjectManager.UAScriptBeforePath= ProjectManager.UAScriptBeforePath=
ProjectManager.UnderRoot=false ProjectManager.UnderRoot=false
ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_SPI1_Init-SPI1-false-HAL-true,4-MX_USB_OTG_FS_PCD_Init-USB_OTG_FS-false-HAL-true,5-MX_SPI3_Init-SPI3-false-HAL-true ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_SPI1_Init-SPI1-false-HAL-true,4-MX_USB_OTG_FS_PCD_Init-USB_OTG_FS-false-HAL-true,5-MX_USART1_UART_Init-USART1-false-HAL-true,6-MX_SDMMC2_SD_Init-SDMMC2-false-HAL-true
RCC.ADCFreq_Value=48000000 RCC.ADCFreq_Value=48000000
RCC.AHBFreq_Value=120000000 RCC.AHBFreq_Value=120000000
RCC.APB1Freq_Value=120000000 RCC.APB1Freq_Value=120000000
@@ -203,11 +191,6 @@ SPI1.Direction=SPI_DIRECTION_2LINES
SPI1.IPParameters=VirtualType,Mode,Direction,CalculateBaudRate SPI1.IPParameters=VirtualType,Mode,Direction,CalculateBaudRate
SPI1.Mode=SPI_MODE_MASTER SPI1.Mode=SPI_MODE_MASTER
SPI1.VirtualType=VM_MASTER SPI1.VirtualType=VM_MASTER
SPI3.CalculateBaudRate=60.0 MBits/s
SPI3.Direction=SPI_DIRECTION_2LINES
SPI3.IPParameters=VirtualType,Mode,Direction,CalculateBaudRate
SPI3.Mode=SPI_MODE_MASTER
SPI3.VirtualType=VM_MASTER
USART1.IPParameters=VirtualMode-Asynchronous USART1.IPParameters=VirtualMode-Asynchronous
USART1.VirtualMode-Asynchronous=VM_ASYNC USART1.VirtualMode-Asynchronous=VM_ASYNC
USB_OTG_FS.IPParameters=VirtualMode USB_OTG_FS.IPParameters=VirtualMode