STM32L43x_44x_45x_46x.dbgconf 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // File: STM32L43x_44x_45x_46x.dbgconf
  2. // Version: 1.0.0
  3. // Note: refer to STM32L43xxx STM32L44xxx STM32L45xxx STM32L46xxx Reference manual (RM0394)
  4. // refer to STM32L431xx STM32L432xx STM32L433xx STM32L442xx STM32L443xx STM32L451xx STM32L452xx STM32L462xx datasheets
  5. // <<< Use Configuration Wizard in Context Menu >>>
  6. // <h> Debug MCU configuration register (DBGMCU_CR)
  7. // <o.2> DBG_STANDBY <i> Debug Standby mode
  8. // <o.1> DBG_STOP <i> Debug Stop mode
  9. // <o.0> DBG_SLEEP <i> Debug Sleep mode
  10. // </h>
  11. DbgMCU_CR = 0x00000007;
  12. // <h> Debug MCU APB1 freeze register1 (DBGMCU_APB1FZR1)
  13. // <i> Reserved bits must be kept at reset value
  14. // <o.31> DBG_LPTIM1_STOP <i> LPTIM1 counter stopped when core is halted
  15. // <o.25> DBG_CAN1_STOP <i> bxCAN1 stopped when core is halted
  16. // <o.23> DBG_I2C3_STOP <i> I2C3 SMBUS timeout counter stopped when core is halted
  17. // <o.22> DBG_I2C2_STOP <i> I2C2 SMBUS timeout counter stopped when core is halted
  18. // <o.21> DBG_I2C1_STOP <i> I2C1 SMBUS timeout counter stopped when core is halted
  19. // <o.12> DBG_IWDG_STOP <i> Independent watchdog counter stopped when core is halted
  20. // <o.11> DBG_WWDG_STOP <i> Window watchdog counter stopped when core is halted
  21. // <o.10> DBG_RTC_STOP <i> RTC counter stopped when core is halted
  22. // <o.5> DBG_TIM7_STOP <i> TIM7 counter stopped when core is halted
  23. // <o.4> DBG_TIM6_STOP <i> TIM6 counter stopped when core is halted
  24. // <o.0> DBG_TIM2_STOP <i> TIM2 counter stopped when core is halted
  25. // </h>
  26. DbgMCU_APB1_Fz1 = 0x00000000;
  27. // <h> Debug MCU APB1 freeze register 2 (DBGMCU_APB1FZR2)
  28. // <i> Reserved bits must be kept at reset value
  29. // <o.5> DBG_LPTIM2_STOP <i> LPTIM2 counter stopped when core is halted
  30. // </h>
  31. DbgMCU_APB1_Fz2 = 0x00000000;
  32. // <h> Debug MCU APB2 freeze register (DBGMCU_APB2FZR)
  33. // <i> Reserved bits must be kept at reset value
  34. // <o.17> DBG_TIM16_STOP <i> TIM16 counter stopped when core is halted
  35. // <o.16> DBG_TIM15_STOP <i> TIM15 counter stopped when core is halted
  36. // <o.11> DBG_TIM1_STOP <i> TIM1 counter stopped when core is halted
  37. // </h>
  38. DbgMCU_APB2_Fz = 0x00000000;
  39. // <h> TPIU Pin Routing (TRACECLK fixed on Pin PE2)
  40. // <i> TRACECLK: Pin PE2
  41. // <o1> TRACED0
  42. // <i> ETM Trace Data 0
  43. // <0x00040003=> Pin PE3
  44. // <0x00020001=> Pin PC1
  45. // <o2> TRACED1
  46. // <i> ETM Trace Data 1
  47. // <0x00040004=> Pin PE4
  48. // <0x0002000A=> Pin PC10
  49. // <o3> TRACED2
  50. // <i> ETM Trace Data 2
  51. // <0x00040005=> Pin PE5
  52. // <0x00030002=> Pin PD2
  53. // <o4> TRACED3
  54. // <i> ETM Trace Data 3
  55. // <0x00040006=> Pin PE6
  56. // <0x0002000C=> Pin PC12
  57. // </h>
  58. TraceClk_Pin = 0x00040002;
  59. TraceD0_Pin = 0x00040003;
  60. TraceD1_Pin = 0x00040004;
  61. TraceD2_Pin = 0x00040005;
  62. TraceD3_Pin = 0x00040006;
  63. // <h> Flash Download Options
  64. // <o.0> Option Byte Loading <i> Launch the Option Byte Loading after a Flash Download by setting the OBL_LAUNCH bit (causes a reset)
  65. // </h>
  66. DoOptionByteLoading = 0x00000000;
  67. // <<< end of configuration section >>>