Arduino_Core_STM32
Arduino_Core_STM32 copied to clipboard
Added STM32G0B1/C1 support, and 3D printer board Big Tree Tech EBB42
Added new Generic support for STM32G0B1/C1 support, and 3D printer board Big Tree Tech EBB42 CANBUS V1.1 motor / hote ned control board
- Could you run Astyle to harmonize formatting
I'm going to try that now, Once I download the ".astyleignore", ".astylerc" and "astyle.py" files, Do i run the py file at the root of the project, and do i need to manually specify in the command to use the definition files?
In fact scripts to ease Astyle are already available when cloning github: https://github.com/stm32duino/Arduino_Core_STM32/tree/main/CI/astyle
But you need to download Astyle itself.
Then all we request is to run Astyle on the sources/headers files you modified.
So you can run for example :
> python3 CI/astyle/astyle.py -p /c/Arduino/AStyle/bin -r ./variants/STM32G0xx/
(suppose Astyle is installed in /c/Arduino/AStyle/bin)
I've run Astyle with the following command
python astyle.py -i .astyleignore -d .astylerc -r /var/home/alextrical/GitHub/Arduino_Core_STM32/variants/STM32G0xx
It looks to have made the required changes to the 'generic_clock.c' files in each file that has been created for this pull :)
Hopefully the requested changes are all now showing up. i.e. Astyle formatting of 'generic_clock.c' / files Values removed from the following for all boards added : RCC_ClkInitStruct = {}; & RCC_OscInitStruct = {}; Readme updated for all MCU's
I will remember these for the next batch ;) and leave it a bit longer between making the changes, and placing a change request to hopefully let it capture the full set of changes, and hopefully i will only create one pull request next time ;)
How do I go about creating a separate commit, I was hoping the last Pull request for the G4 would have been a separate entity from the G0 submission. Is the Close with comment enough?
I'm not sure if the pull request fully checked in, it may need extra approval on your side.
https://docs.github.com/en/actions/managing-workflow-runs/approving-workflow-runs-from-public-forks
once this pull request is closed I will start adding a few other definitions, that are queued up and ready to go. Currently sitting in another repo for safe storage ready to be added. https://github.com/alextrical/STM32-linker-scripts/tree/main/variants
Sorry, I mean separate Pull Request :smile:
Yes, PR needs extra check, and at the end PR needs to be merged to be fully checked in.
Extra check includes CI automatic check which are currently failed (see above)
At first glance there is an error while compiling GENERIC_G0B0CETX, GENERIC_G0B0RETX and GENERIC_G0B0VETX
/github/home/.arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/cores/arduino/stm32/uart.h:120:21: error:
'USART3_4_IRQn' undeclared (first use in this function); did you mean 'USART4_IRQn'?
120 | #define USART3_IRQn USART3_4_IRQn
I will have a look at this issue
ah, well that's a pain that its not compiling :/ Would you be OK with me removing the 3 failed MCU's from the PR? I can see why this should be submitted as multiple smaller Pull requests 😅 unfortunately i made the changes directly into the Main branch of my fork, and now I don't know if its possible to create a branch without causing extra issues for future PR's
I made a fix for the compilation error #1790. So I prefer you don't remove the failed MCU and thus have a complete G0 support. Whatever, we will wait for @fpistm to review before merging.
Nevertheless, you can push other STM32 series in parallel (one per PR would be great). Warning each PR should be independent one from each other, as long as they are not merged. Exemple: if you push a new PR to add MCU for F1, it should not be on top of current G0 PR (as long as it is not merged) nor other potential PR for F0 series you have in the pipe ...
Alternatively, you can wait for this one to be merged, before pushing next PR. This will take more time to reach the end of STM32 series, but it is not an issue. Please note that next week, support will be drastically reduced due to summer holidays.
I prefer you don't remove the failed MCU and thus have a complete G0 support. That's fair enough, I will leave the G0B0xx series in place.
Nevertheless, you can push other STM32 series in parallel (one per PR would be great). As for pushing independent PR's, I'm guessing that needs to be done with branches within my copy of the project, with 1 branch per MCU family.
if you push a new PR to add MCU for F1, it should not be on top of current G0 PR agreed, I hadn't realised what I was doing wrong, I'm hoping to do the future PR's as independent chunks
Unfortunately I did all previous modifications directly in 'Main' so think I have somewhat contaminated the base of my fork
As for pushing independent PR's, I'm guessing that needs to be done with branches within my copy of the project, with 1 branch per MCU family.
Right
Unfortunately I did all previous modifications directly in 'Main' so think I have somewhat contaminated the base of my fork
Thus let's wait for merge of 1st PR before pushing next one.
Hi @alextrical
Could you rebase your PR on top of the main in order to get the fix made by @ABOSTM. Then CI should be OK Thanks.
Pay attention as you made a PR using the main branch.
Hopefully that is now in sync with the main repo. Please give the CI a try
Hi @alextrical I've clean up the branch as I could not simply squash it. Now only 3 commits.
So, please do not push on your main branch while this PR is not merged.