-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
STM32CubeF4 - a panacea? #337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey Damien, I'm willing to help out with this. How do you want to proceed? Just do it all at once? Or perhaps create a new branch which strips out all of the old peripheral support and start to add in the new stuff? |
Thanks Dave, that would be great if you could help. I'm a fan of "do it all at once", but in this case it's a rather large I would like to retain as much of the STM directory structure as possible, Something like: CMCIS/ I'm open to suggestions on this. |
I created a makefile for Projects/STM32F4-Discovery/Examples/GPIO/GPIO_EXTI and needed the following include directories (starting from withing a gcc diretory inside the above):
and needed sources from:
Of course, this doesn't include any of he USB stuff. I was thinking that getting the basic clocks and stuff, and a super-simple UART going we can get back to a REPL and then build up from that. I'd be inclined to #if 0 out stuff (rather than actually deleting it). I just thought of another approach, which is probably even better than using a new branch, and that's to create a new platform directory, (say stmhal) which will replace stm once its done. Then its kind of like a new port. |
The makefile I built can be found here: |
And the GPIO_EXTI example seems to work fine on my discovery board. The button is glitchy so sometimes I get more than one LED toggle per button push, |
I was also thinking to create a completely new port (eg stmhal), since But, since the change really needs to be done all at once (ie can't mix old So, I suggest creating stmhal. |
Damien and Dave- I have a slightly off-topic request, although this seems like a reasonable place to ask as it is related to board-level I/O configuration. So far I have been lucky that my choices of pins and polarities for SD Card detect and user switch have been compatible with Pyboard4, or at least close enough to adapt with minimal effort, but I still need to make a few fixes whenever anyone touches Makefile, mpconfigport or mponfigboard. Thanks! |
@blmorris Sounds like a good idea, to make SD_DETECT configurable as the other pins. We'll try to make sure this happens, but remind us again if it doesn't, or, issue a pull request. |
Okay, the new Cube HAL has been ported and is now working in the stmhal/ directory. Please note that the stmhal 7BA8 / port now supersedes stm/. stm/ is now obsolete. As requested by @blmorris , the SD card detect pin is now configurable in mpconfigport.h. |
esp8266: Actually disable pins when reset on reload.
Two weeks ago, ST released a firmware library that seems to be the answer to many of our problems. It's called STM32CubeF4 and is a HAL firmware library for the STM32 series of microcontrollers. At the moment it only supports the STM32F4xx series, but that's fine for the pyboard.
Here are the main points:
See here http://www.st.com/web/en/catalog/tools/PF259243#
I'd say we move to using this new set of libraries ASAP. I'll work on it.
The text was updated successfully, but these errors were encountered: