Compare commits

..

2 Commits

Author SHA1 Message Date
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
3 changed files with 776 additions and 16 deletions

View File

@@ -8,7 +8,476 @@
(title "Dyna-Micro") (title "Dyna-Micro")
(company "Dynamite Rocketry") (company "Dynamite Rocketry")
) )
(lib_symbols) (lib_symbols
(symbol "Device:LED"
(pin_numbers
(hide yes)
)
(pin_names
(offset 1.016)
(hide yes)
)
(exclude_from_sim no)
(in_bom yes)
(on_board yes)
(property "Reference" "D"
(at 0 2.54 0)
(effects
(font
(size 1.27 1.27)
)
)
)
(property "Value" "LED"
(at 0 -2.54 0)
(effects
(font
(size 1.27 1.27)
)
)
)
(property "Footprint" ""
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Datasheet" "~"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Description" "Light emitting diode"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Sim.Pins" "1=K 2=A"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "ki_keywords" "LED diode"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "ki_fp_filters" "LED* LED_SMD:* LED_THT:*"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(symbol "LED_0_1"
(polyline
(pts
(xy -3.048 -0.762) (xy -4.572 -2.286) (xy -3.81 -2.286) (xy -4.572 -2.286) (xy -4.572 -1.524)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy -1.778 -0.762) (xy -3.302 -2.286) (xy -2.54 -2.286) (xy -3.302 -2.286) (xy -3.302 -1.524)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy -1.27 0) (xy 1.27 0)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy -1.27 -1.27) (xy -1.27 1.27)
)
(stroke
(width 0.254)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 1.27 -1.27) (xy 1.27 1.27) (xy -1.27 0) (xy 1.27 -1.27)
)
(stroke
(width 0.254)
(type default)
)
(fill
(type none)
)
)
)
(symbol "LED_1_1"
(pin passive line
(at -3.81 0 0)
(length 2.54)
(name "K"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "1"
(effects
(font
(size 1.27 1.27)
)
)
)
)
(pin passive line
(at 3.81 0 180)
(length 2.54)
(name "A"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "2"
(effects
(font
(size 1.27 1.27)
)
)
)
)
)
(embedded_fonts no)
)
(symbol "Device:R_US"
(pin_numbers
(hide yes)
)
(pin_names
(offset 0)
)
(exclude_from_sim no)
(in_bom yes)
(on_board yes)
(property "Reference" "R"
(at 2.54 0 90)
(effects
(font
(size 1.27 1.27)
)
)
)
(property "Value" "R_US"
(at -2.54 0 90)
(effects
(font
(size 1.27 1.27)
)
)
)
(property "Footprint" ""
(at 1.016 -0.254 90)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Datasheet" "~"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Description" "Resistor, US symbol"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "ki_keywords" "R res resistor"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "ki_fp_filters" "R_*"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(symbol "R_US_0_1"
(polyline
(pts
(xy 0 2.286) (xy 0 2.54)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 0 2.286) (xy 1.016 1.905) (xy 0 1.524) (xy -1.016 1.143) (xy 0 0.762)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 0 0.762) (xy 1.016 0.381) (xy 0 0) (xy -1.016 -0.381) (xy 0 -0.762)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 0 -0.762) (xy 1.016 -1.143) (xy 0 -1.524) (xy -1.016 -1.905) (xy 0 -2.286)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 0 -2.286) (xy 0 -2.54)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
)
(symbol "R_US_1_1"
(pin passive line
(at 0 3.81 270)
(length 1.27)
(name "~"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "1"
(effects
(font
(size 1.27 1.27)
)
)
)
)
(pin passive line
(at 0 -3.81 90)
(length 1.27)
(name "~"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "2"
(effects
(font
(size 1.27 1.27)
)
)
)
)
)
(embedded_fonts no)
)
(symbol "power:GNDD"
(power)
(pin_numbers
(hide yes)
)
(pin_names
(offset 0)
(hide yes)
)
(exclude_from_sim no)
(in_bom yes)
(on_board yes)
(property "Reference" "#PWR"
(at 0 -6.35 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Value" "GNDD"
(at 0 -3.175 0)
(effects
(font
(size 1.27 1.27)
)
)
)
(property "Footprint" ""
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Datasheet" ""
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Description" "Power symbol creates a global label with name \"GNDD\" , digital ground"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "ki_keywords" "global power"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(symbol "GNDD_0_1"
(rectangle
(start -1.27 -1.524)
(end 1.27 -2.032)
(stroke
(width 0.254)
(type default)
)
(fill
(type outline)
)
)
(polyline
(pts
(xy 0 0) (xy 0 -1.524)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
)
(symbol "GNDD_1_1"
(pin power_in line
(at 0 0 270)
(length 0)
(name "~"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "1"
(effects
(font
(size 1.27 1.27)
)
)
)
)
)
(embedded_fonts no)
)
)
(wire (wire
(pts (pts
(xy 137.16 113.03) (xy 153.67 113.03) (xy 137.16 113.03) (xy 153.67 113.03)
@@ -49,6 +518,16 @@
) )
(uuid "3b5436e2-1836-4cbd-abb4-fd6756bb0ead") (uuid "3b5436e2-1836-4cbd-abb4-fd6756bb0ead")
) )
(wire
(pts
(xy 201.93 104.14) (xy 185.42 104.14)
)
(stroke
(width 0)
(type default)
)
(uuid "3c8801fb-ad04-4f71-b3a8-94e80d8e7064")
)
(wire (wire
(pts (pts
(xy 137.16 123.19) (xy 153.67 123.19) (xy 137.16 123.19) (xy 153.67 123.19)
@@ -109,6 +588,16 @@
) )
(uuid "93e6f3cb-2e48-4ad1-bec8-a65af44292f9") (uuid "93e6f3cb-2e48-4ad1-bec8-a65af44292f9")
) )
(wire
(pts
(xy 245.11 91.44) (xy 245.11 101.6)
)
(stroke
(width 0)
(type default)
)
(uuid "a539a965-05c6-452e-85d2-5568d07338ce")
)
(wire (wire
(pts (pts
(xy 137.16 120.65) (xy 153.67 120.65) (xy 137.16 120.65) (xy 153.67 120.65)
@@ -129,6 +618,241 @@
) )
(uuid "c6009f43-4e6d-4c8e-982b-c4f7d1f909c7") (uuid "c6009f43-4e6d-4c8e-982b-c4f7d1f909c7")
) )
(label "Debug LED"
(at 245.11 91.44 270)
(effects
(font
(size 1.27 1.27)
)
(justify right bottom)
)
(uuid "4fcbc1cc-7e72-4442-a588-24e3408789c7")
)
(label "Debug LED"
(at 201.93 104.14 180)
(effects
(font
(size 1.27 1.27)
)
(justify right bottom)
)
(uuid "588b0bab-ccd7-4284-9a7e-caa90490b8e5")
)
(symbol
(lib_id "Device:R_US")
(at 245.11 113.03 0)
(unit 1)
(exclude_from_sim no)
(in_bom yes)
(on_board yes)
(dnp no)
(fields_autoplaced yes)
(uuid "a55e9963-7404-4c6f-b40f-c8f592afd67b")
(property "Reference" "R6"
(at 247.65 111.7599 0)
(effects
(font
(size 1.27 1.27)
)
(justify left)
)
)
(property "Value" "5.1k"
(at 247.65 114.2999 0)
(effects
(font
(size 1.27 1.27)
)
(justify left)
)
)
(property "Footprint" "Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder"
(at 246.126 113.284 90)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Datasheet" "~"
(at 245.11 113.03 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Description" "Resistor, US symbol"
(at 245.11 113.03 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(pin "1"
(uuid "71f5087f-968c-4796-a9c0-baceec3bf2ee")
)
(pin "2"
(uuid "3f1f63fa-0ab0-4003-a666-73b585d9398e")
)
(instances
(project "dyna-micro"
(path "/0389eb62-6503-47dc-9bba-f194441b9f54"
(reference "R6")
(unit 1)
)
)
)
)
(symbol
(lib_id "Device:LED")
(at 245.11 105.41 90)
(unit 1)
(exclude_from_sim no)
(in_bom yes)
(on_board yes)
(dnp no)
(fields_autoplaced yes)
(uuid "c9234ecd-6aa2-4360-8934-ec08023280d9")
(property "Reference" "D3"
(at 248.92 105.7274 90)
(effects
(font
(size 1.27 1.27)
)
(justify right)
)
)
(property "Value" "LED"
(at 248.92 108.2674 90)
(effects
(font
(size 1.27 1.27)
)
(justify right)
)
)
(property "Footprint" "LED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolder"
(at 245.11 105.41 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Datasheet" "~"
(at 245.11 105.41 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Description" "Light emitting diode"
(at 245.11 105.41 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Sim.Pins" "1=K 2=A"
(at 245.11 105.41 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(pin "1"
(uuid "d9ed5ea8-e5f2-4b82-8157-a0eb1bbbfb20")
)
(pin "2"
(uuid "d252cb7a-09c4-4d3b-abb7-8fdaf2cda4a3")
)
(instances
(project "dyna-micro"
(path "/0389eb62-6503-47dc-9bba-f194441b9f54"
(reference "D3")
(unit 1)
)
)
)
)
(symbol
(lib_id "power:GNDD")
(at 245.11 116.84 0)
(unit 1)
(exclude_from_sim no)
(in_bom yes)
(on_board yes)
(dnp no)
(fields_autoplaced yes)
(uuid "d1387d7a-4720-4fa3-a3c0-7b876a062512")
(property "Reference" "#PWR046"
(at 245.11 123.19 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Value" "GNDD"
(at 245.11 120.65 0)
(effects
(font
(size 1.27 1.27)
)
)
)
(property "Footprint" ""
(at 245.11 116.84 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Datasheet" ""
(at 245.11 116.84 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Description" "Power symbol creates a global label with name \"GNDD\" , digital ground"
(at 245.11 116.84 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(pin "1"
(uuid "41bd1a9b-69b5-4207-8c24-5479164b42f5")
)
(instances
(project "dyna-micro"
(path "/0389eb62-6503-47dc-9bba-f194441b9f54"
(reference "#PWR046")
(unit 1)
)
)
)
)
(sheet (sheet
(at 201.93 85.09) (at 201.93 85.09)
(size 12.7 5.08) (size 12.7 5.08)
@@ -455,6 +1179,16 @@
(justify left) (justify left)
) )
) )
(pin "DEBUG_LED" output
(at 185.42 104.14 0)
(uuid "cf86016b-ae6b-46a9-bfe1-f071dcf04645")
(effects
(font
(size 1.27 1.27)
)
(justify right)
)
)
(instances (instances
(project "dyna-micro" (project "dyna-micro"
(path "/0389eb62-6503-47dc-9bba-f194441b9f54" (path "/0389eb62-6503-47dc-9bba-f194441b9f54"

View File

@@ -2390,6 +2390,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)
@@ -2780,6 +2790,17 @@
) )
(uuid "e3982cec-8da9-4a41-b362-0b5065a83eed") (uuid "e3982cec-8da9-4a41-b362-0b5065a83eed")
) )
(hierarchical_label "DEBUG_LED"
(shape output)
(at 147.32 116.84 180)
(effects
(font
(size 1.27 1.27)
)
(justify right)
)
(uuid "12a3b808-f787-47a8-adfb-a374ba1eaf05")
)
(hierarchical_label "FLASH_MOSI" (hierarchical_label "FLASH_MOSI"
(shape output) (shape output)
(at 147.32 99.06 180) (at 147.32 99.06 180)

View File

@@ -19,22 +19,23 @@ Mcu.Name=STM32L4Q5CGTx
Mcu.Package=LQFP48 Mcu.Package=LQFP48
Mcu.Pin0=PA5 Mcu.Pin0=PA5
Mcu.Pin1=PA6 Mcu.Pin1=PA6
Mcu.Pin10=PA15 (JTDI) Mcu.Pin10=PA14 (JTCK/SWCLK)
Mcu.Pin11=PB3 (JTDO/TRACESWO) Mcu.Pin11=PA15 (JTDI)
Mcu.Pin12=PB4 (NJTRST) Mcu.Pin12=PB3 (JTDO/TRACESWO)
Mcu.Pin13=PB5 Mcu.Pin13=PB4 (NJTRST)
Mcu.Pin14=PB6 Mcu.Pin14=PB5
Mcu.Pin15=PB7 Mcu.Pin15=PB6
Mcu.Pin16=VP_SYS_VS_Systick Mcu.Pin16=PB7
Mcu.Pin17=VP_SYS_VS_Systick
Mcu.Pin2=PA7 Mcu.Pin2=PA7
Mcu.Pin3=PB0 Mcu.Pin3=PB0
Mcu.Pin4=PA9 Mcu.Pin4=PB12
Mcu.Pin5=PA10 Mcu.Pin5=PA9
Mcu.Pin6=PA11 Mcu.Pin6=PA10
Mcu.Pin7=PA12 Mcu.Pin7=PA11
Mcu.Pin8=PA13 (JTMS/SWDIO) Mcu.Pin8=PA12
Mcu.Pin9=PA14 (JTCK/SWCLK) Mcu.Pin9=PA13 (JTMS/SWDIO)
Mcu.PinsNb=17 Mcu.PinsNb=18
Mcu.ThirdPartyNb=0 Mcu.ThirdPartyNb=0
Mcu.UserConstants= Mcu.UserConstants=
Mcu.UserName=STM32L4Q5CGTx Mcu.UserName=STM32L4Q5CGTx
@@ -85,6 +86,10 @@ 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
PB12.GPIOParameters=GPIO_Label
PB12.GPIO_Label=DEBUG_LED
PB12.Locked=true
PB12.Signal=GPIO_Output
PB3\ (JTDO/TRACESWO).GPIOParameters=GPIO_Label PB3\ (JTDO/TRACESWO).GPIOParameters=GPIO_Label
PB3\ (JTDO/TRACESWO).GPIO_Label=FLASH_SCK PB3\ (JTDO/TRACESWO).GPIO_Label=FLASH_SCK
PB3\ (JTDO/TRACESWO).Mode=Full_Duplex_Master PB3\ (JTDO/TRACESWO).Mode=Full_Duplex_Master
@@ -137,7 +142,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_SPI3_Init-SPI3-false-HAL-true,6-MX_USART1_UART_Init-USART1-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