Giter VIP home page Giter VIP logo

Comments (5)

phileimer avatar phileimer commented on September 24, 2024 1

Hi Fred,
Thank you for your feedback.
I already fixed this issue in my MCSDK v5 for G0 projects.
These are unlikely to be switched to v6 because they are mature.
Merci bien,
J. Ph.

from stm32g0xx_hal_driver.

RJMSTM avatar RJMSTM commented on September 24, 2024

ST Internal Reference: 169678

from stm32g0xx_hal_driver.

RJMSTM avatar RJMSTM commented on September 24, 2024

Hello @phileimer,

This not a bug:
the feature "data alignment" shifts data to be aligned on bit 15, therefore data is 16 bits wide [15; 0].
And therefore, to read data, function LL_ADC_REG_ReadConversionData32() must be used.

The other functions ..._ReadConversionData6/8/10/12 are not usable in this mode.

An update description will be made of LL_ADC_REG_ReadConversionData32() to be more generic on use cases.

With regards,
Rania

from stm32g0xx_hal_driver.

phileimer avatar phileimer commented on September 24, 2024

Hi Rania (@RJMSTM),

Thank you for your feedback. I got the point.
I believe you should fill in a bug for this in the X-CUBE-MCSDK project.
In its version 5, this project uses left data alignement and the 12 bit function, triggering a severe bug.
I've not checked with the newer version 6.

Also, I noticed these LL_ADC functions for other STM32 flavors I use (F4 and L0) don't have these data filters implemented yet.
Will they be modified later?

Thank you again,
J. Ph.

from stm32g0xx_hal_driver.

FredericVirot avatar FredericVirot commented on September 24, 2024

Hello Jean-Philippe (@phileimer),

X-CUBE-MCSDK version 6.x also uses a left alignment configuration for the ADCs, so this issue is present in this line of versions. This indeed causes a severe bug as it makes the MCSDK unusable on G0 with the 1.6.2 version of the G0 LL drivers.
This issue will be addressed soon in an upcoming version of MCSDK 6.x.
However, note that X-CUBE-MCSDK version 5 will most probably not be updated to fix this issue. I would strongly advise you to switch to X-CUBE-MCSDK version 6.x.

The other STM32 series are not currently touched by this issue.

With my best regards,

Fred.

from stm32g0xx_hal_driver.

Related Issues (4)

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.