Git Product home page Git Product logo

Comments (8)

klonyyy avatar klonyyy commented on May 24, 2024

Could you verify the timing with systick? Could you attach the full clock setup? Which MCU are you using?

from stmviewer.

Trampler60 avatar Trampler60 commented on May 24, 2024

"Could you verify the timing with systick?" How can i do this, can you explain further?

STM32F103C8
image

from stmviewer.

klonyyy avatar klonyyy commented on May 24, 2024

Sure, you could write a value to the CH0 in the SysTick 1kHz interrupt so that we are sure the problem is on STMViewer's side. You can write any value, just make sure it changes every interrupt so that the steps indicate the time period we want to examine.

from stmviewer.

Trampler60 avatar Trampler60 commented on May 24, 2024

I also tried to increase systick freq. I was able to increase it 10 times and it seems ok. But when ı tried 100 times it broke again. Am i stuck at speed limit? I tried prescaler between 36 to 72 this means a period of 1-2 microseconds .
Why does the problem occur when the systick period is 10 microseconds?

image

normal settings: HAL_SYSTICK_Config(HAL_RCC_GetHCLKFreq()/1000); //1000
image

HAL_SYSTICK_Config(HAL_RCC_GetHCLKFreq()/10000); //10000
image

HAL_SYSTICK_Config(HAL_RCC_GetHCLKFreq()/100000); //100000
image

This is the oscilloscope view of the real signal. The values i get from the adc seems correct.
image

from stmviewer.

klonyyy avatar klonyyy commented on May 24, 2024

Which STMViewer version are you on? Are you monitoring the error frames indicators on the left? You're most probably saturating the SWO output.

from stmviewer.

Trampler60 avatar Trampler60 commented on May 24, 2024

I think you are right about saturation. I am using STMViewer 0.4.0. Maybe ı need better STLİNK.
image

from stmviewer.

klonyyy avatar klonyyy commented on May 24, 2024

Yes this is possible. I can recommend the ST-Link V3 minie.

Why did you have to check the frames in Cube IDE? Is there a problem with the trace indicators on the left panel in STMViewer? A full screen screenshot would be helpful in the case you're suspecting a saturation.

from stmviewer.

klonyyy avatar klonyyy commented on May 24, 2024

Closing due to inactivity. If you see a similar issue please reopen.

from stmviewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.