Cube bug or a misunderstanding on my part?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-03-04 4:01 PM
Posted on March 05, 2015 at 01:01
My EE was using CubeMX for a 407 and noticed that a lot of the pins can be declared as being GPIO_ANALOG, even if the pins have no analog alternate functions and are not able to be routed to ADCs or DACs.
I declared PE0 as GPIO_ANALOG and Cube did generate code to load PE0's mode register with analog, and running the code didn't generate any asserts, but what does that mean?Is this a CubeMX bug or is there some undocumented semantics that I'm missing? (take that as the english language ''or'' please). #cubemx-gpio_analog
Labels:
- Labels:
-
STM32CubeMX
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-03-04 4:10 PM
Posted on March 05, 2015 at 01:10
No bug.
CubeMX defaults to setting unused pins as analog to minimize power consumption. If that is not satisfactory, select ''Project'', then ''Project Settings'', then ''Code Generator'' and select a different option. Cheers, HalOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-03-04 4:14 PM
Posted on March 05, 2015 at 01:14
Analogue Input really means it turns off all the digital circuitry on the pin, including a schmitt trigger on the input that usually feeds into GPIOx->IDR
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-03-04 6:04 PM
Posted on March 05, 2015 at 03:04
Got it. That makes perfect sense.
Thanks.