STM32CubeIde: plotting data using SWV.

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 มิ.ย. 2024
  • A short description how to plot variables using SWV Data timeline graph .
    The board I am using (NUCLEO-L476RG):
    www.st.com/en/evaluation-tool...
    Configuring SWV for printf function:
    • This makes your life s...
    Please check the website to get more detailed insights about programming STM32 microcontrollers:
    www.steppeschool.com/courses/...
    0:00 General description
    0:59 Opening SWV Data Trace Timeline graph and configuring it
    1:36 Resuming the code and plotting data in real time
    2:00 Using the Timer Update Interrupt to sample data at higher rate
    3:03 Final demonstration

ความคิดเห็น • 10

  • @incxxxx
    @incxxxx หลายเดือนก่อน +1

    Nice work!

  • @bennguyen1313
    @bennguyen1313 ปีที่แล้ว

    The terminology Data Trace Comparator 0-3 is kind of strange.. what is comparing? And what are the 32 ITM Stimulus ports for?
    I thought Trace Streaming requires dedicated 1-4 TPIU Trace pins.. but here it looks like those signals are routed to the single SWV/SWO pin? For example, isn't SWV also used for ITM_SendChar()?

    • @steppeschool3629
      @steppeschool3629  ปีที่แล้ว

      To be honest, I do not know how SWV works at a hardware level. I know it is responsible for ITM_SendCHar and plotting data(Data trace comparator).

  • @alihancoban953
    @alihancoban953 ปีที่แล้ว +2

    when i press the config trace nothing happenned is there any suggesstions

    • @steppeschool3629
      @steppeschool3629  ปีที่แล้ว +3

      Hi Alihan,
      Did you enable SWV within debug configurations?

    • @alihancoban953
      @alihancoban953 ปีที่แล้ว

      @@steppeschool3629 thanks, it is working

  • @kalyanijog
    @kalyanijog หลายเดือนก่อน

    Trace become disable while debugging , what to do?

    • @steppeschool3629
      @steppeschool3629  หลายเดือนก่อน

      Hi, I do not get your question fully. What is the problem?

    • @kalyanijog
      @kalyanijog หลายเดือนก่อน

      I debug the code and open window panel and click on swv viewer and ticket the Bo bit ,then click on ok , then click on trace button and click on resume run code but " trace button gets disabled" and program shut down unexpectedly what to do