![]() |
Forum Index : Microcontroller and PC projects : Getting started coding for the STM32 in C
Author | Message | ||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10315 |
Someone asked in the Colour Maximite 2 thread about getting started with programming the STM32 in C. I didn't answer in that thread as without writing a major tutorial there was no easy answer. However, I've just found some video tutorials done by Digikey . I can thoroughly recommend these. They are fast paced but contain the information you need, plus they are completely up-to-date in using the latest free STM32 IDE. This is the IDE I used for the CMM2 and includes everything you could need to program and debug code for these chips This video shows how to deal with a board that isn't directly supported by STM32CubeIDE Edited 2020-06-01 04:00 by matherp |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
Thanks, Peter. I'd not met those before. (Not that I asked LOL) John |
||||
zeitfest Guru ![]() Joined: 31/07/2019 Location: AustraliaPosts: 582 |
Thanks for the links. I am fine with C on pic32s and was OK using the MZ pre-DA but was not pleased with harmony. I got the (superficial) impression the SAM memory wasn't as convenient as microchip but don't know about the STM model, haven't gone further though. The MM development has gone from pic32 and mplabx IDE to the MZ and later DA with harmony, then SAM ics and is now on the STM and cube. Few people would have your breadth of experience ! Any overall comments you might have about trying the platforms would be good. I know, it is a huge subject and maybe not possible to sum up briefly. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10315 |
If it was a football match the score would be Microchip/Harmony 0: ST/CubeMX 10 brief enough? ![]() |
||||
Raul Newbie ![]() Joined: 06/05/2020 Location: United KingdomPosts: 11 |
What professionals have to say about CubeMX. https://www.eevblog.com/forum/microcontrollers/stm32cube-embedded-software-now-on-github/ Why so many trivial bugs in this version of MMbasic? Hmmm, why isn't the source code for this basic available, is there a reason to hide something? |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
I'll leave Peter to answer (and take his as gospel), though some of the bugs were probably in previous MMBasic but not noticed. The source code was already asked about and IIRC as the CMM2 was not yet released but rather still being tested (on TBS for example), then the source was not yet available but will be. On STM32Cube it depends a bit (or a lot) if someone's used to coding for a uC and happy figuring out things like clock divisors. If you're happy with that kind of stuff then you might like to try STM32Cube just to see what you think and if unhappy there's no need to use it. With the much older chips the overheads of the tool (STM32Cube) might annoy but the CPU in the CMM2 is really fast with lots of memory so you might decide the convenience of the tool is worthwhile. It's quite nice to have the choice of a good tool or DIY! An advantage of using STM32Cube is that you could move to another CPU and just click to regenerate the setup code, after clicking on the various pins as shown in the videos, which you otherwise have to DIY. John |
||||
zeitfest Guru ![]() Joined: 31/07/2019 Location: AustraliaPosts: 582 |
Which leaves the Armmite h7 and f4... ed - and their ongoing status (?) (edited to cover up my mistake ![]() Edited 2020-06-02 23:36 by zeitfest |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10315 |
The Armmite H7 and F4 are both STM32 ports developed in STM32CubeIDE. They both target specific H/W, The Nucleo-H743 and a specific F4 board (see the ArmmiteF4 thread). Both versions of core MMBasic are fully up-to-date but there are developments done in the CMM2 which can, in some cases be retrofitted. Peripheral handling and LCDs are unique to the port. The only Microchip port I have done is the Micromite eXtreme (MMX). This again has an up-to-date core MMBasic |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |