Command broken? Core not working correctly?? RU Sure???

Post Reply
mrburnette
Posts: 633
Joined: Thu Dec 19, 2019 1:23 am
Answers: 7

Command broken? Core not working correctly?? RU Sure???

Post by mrburnette »

Everyone:

There seems to be numerous inquiries and suggestions that core STM32 Arduino functions "do not work" or "works incorrectly" and I wish to state that while that may be an issue, it is unlikely that core functionality is not working. The Official STM32duino core is nearing 2 years and Roger's core is 5+ years; therefore commands & functions (ex: analogRead() and analogWrite() ) have been tested many, many times by users across the globe.

So, if you are having issues, suspect first that you are confused or misinformed. I strongly suggest that you reread the Arduino documentation here: https://www.arduino.cc/reference/en/ and give special attention to any examples.

If the above fails to highlight the problem, refer to examples that are part of the Arduino install. See this reference: https://www.arduino.cc/en/Tutorial/BuiltInExamples

For Roger's core, look here for known good examples:
https://github.com/rogerclarkmelbourne/ ... s/examples

Roger's core is mostly a "refresh" of the LeafLals' core which still has great information.

Following the steps above will ensure that by the time you get into the forum to craft & post an inquiry that much nebulous dialog can be avoided - in the interest of getting you the Op a better and more expedient answer.

Other resources:
- Adafruit: https://learn.adafruit.com/lesson-0-get ... he-lessons
- SparkFun: https://learn.sparkfun.com/tutorials/ta ... o?page=all
- 3.3V vs 5.0V logic levels: https://learn.sparkfun.com/tutorials/logic-levels/all


Happy computing,

Ray
ag123
Posts: 1655
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: Command broken? Core not working correctly?? RU Sure???

Post by ag123 »

in addition try the more 'pro' IDEs such as vscode,, eclipse etc.
those has code reference jump and integrated debug and get an st-link v2 - this is a 'standard tool' for stm32 mcus

https://www.st.com/en/development-tools/st-link-v2.html
https://www.adafruit.com/product/2548
https://octopart.com/search?q=st-link+v2&specs=0

play with debug e.g. with st-link v2, stepping the codes it is the great way to get a 'deep dive' in stm32 development and the cores
mrburnette
Posts: 633
Joined: Thu Dec 19, 2019 1:23 am
Answers: 7

Re: Command broken? Core not working correctly?? RU Sure???

Post by mrburnette »

ag123 wrote: Fri Nov 27, 2020 7:43 am in addition try the more 'pro' IDEs such as vscode,, eclipse etc.
...
Agreed: IF YOU ARE A SELF-STARTER AND NOT PRONE TO ASKING QUESTIONS ON THIS "-duino" FORUM. You can ask any question here, but be prepared to be frustrated often when members cannot provide specific answers. Those other IDE's do have their own support communities and you are directed to join those communities.

In observing the questions being received in the forum recently, many are not Arduino or "core" but rather low-level register or API questions. These are taking several ping-pong question-answer sessions to resolve. Were a non-standard IDE environment added into the equation, some questions may never get an answer because it is almost impossible to (identically) configure an IDE, add-in tools, and soft configuration options. Arduino-IDE at least gives us responders a fighting chance because installation is nearly turnkey.

Seriously, STM32duino.com supports STM32 Arduino programming and takes specific questions around that environment. I have known ag123 for years and in most things we agree; but if you want to go down the road being suggested, please be disciplined, knowledgeable, and resourceful OR STAY WITH THE ARDUINO IDE.
ag123 wrote: Fri Nov 27, 2020 7:43 am play with debug e.g. with st-link v2, stepping the codes it is the great way to get a 'deep dive' in stm32 development and the cores
IMO:
... just forget Arduino and go here: https://www.st.com/en/development-tools ... tools.html

If you need reference material for self-study:
https://www.st.com/content/st_com/en/su ... books.html


Ray
ag123
Posts: 1655
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: Command broken? Core not working correctly?? RU Sure???

Post by ag123 »

imho it is inevitable to go 'beyond duino' even while just starting out, most newbies hit a problem the moment they try out a new board, it is seldom the duino api that cause it.
for newbies, it would be easier to start with a good supported known board e.g. the nucleos for official stm core or a *non fake* mcu (e.g. stm32f103) board for libmaple core and with a good known sketch e.g. blink :lol:
either way it is good to have those skills e.g. debug while playing with stm32 'duino's' it may lead one to an answer if a thread is left in the cold ;)
Post Reply

Return to “Forum rules, FAQs and HowTo's”