Skip to content
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

Add preliminary support for some STM32G0 chips. (closes #759) #760

Merged
merged 2 commits into from
Jan 24, 2019
Merged

Add preliminary support for some STM32G0 chips. (closes #759) #760

merged 2 commits into from
Jan 24, 2019

Conversation

WRansohoff
Copy link
Contributor

This is just a starting point and I've only tested it with a small 'hello world' example on one STM32G071GB board, but I ordered one of ST's Nucleo boards now that they're back in stock, so hopefully I can try it with some STCube examples before long.

TODO:

  • Use the MER 'mass erase' option for erasing flash instead of going page-by-page.
  • The STM32G0 reference manual mentions a 'fast programming' mode which I haven't looked at.
  • It would probably be easier to read if I updated and used the methods like 'wait_flash_busy', 'unlock_flash', etc.
  • Some of the flash register definitions are not used.

@WRansohoff WRansohoff mentioned this pull request Jan 13, 2019
6 tasks
@WRansohoff WRansohoff changed the title Add preliminary support for some STM32G0 chips. Add preliminary support for some STM32G0 chips. (closes #759) Jan 13, 2019
When I flashed a program with more than one page, I noticed that this logic did not un-set previously-set 'PNG' bits. So it would erase page 1, then page 3, then page 3...
@WRansohoff
Copy link
Contributor Author

I found a bug in the flash-erasing section which caused some pages to not be erased; sorry. I think it works now, though.

@xor-gate xor-gate added this to the Next milestone Jan 24, 2019
@xor-gate xor-gate merged commit 0f1fc50 into stlink-org:master Jan 24, 2019
@xor-gate
Copy link
Member

Thanks!

@Nightwalker-87 Nightwalker-87 removed this from the General milestone Feb 21, 2020
@Nightwalker-87 Nightwalker-87 self-assigned this Feb 21, 2020
@Nightwalker-87 Nightwalker-87 added this to the v1.6.0 milestone Feb 21, 2020
@Nightwalker-87 Nightwalker-87 linked an issue Mar 20, 2020 that may be closed by this pull request
6 tasks
@stlink-org stlink-org locked as resolved and limited conversation to collaborators Apr 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for STM32G0 chips
3 participants