-
Notifications
You must be signed in to change notification settings - Fork 143
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
[stm32] Add support for STM32L0 #602
Conversation
It is caused by G0 shared irq ids not matching the format the lbuild file expects. |
Yup, there are more issues with shared IRQs with I2C and SPI. See #566. The fix is not trivial, I would recommend upgrading modm-devices (and STM32 CMSIS headers) and adding the G0Cx and G0Bx devices to ignored.txt. Then we can fix the problems in a separate PR. Alternatively we first fix/test #566 and then continue with this PR. Depends on how quick you need L0 support in upstream modm (and if you want to fix the I2C/SPI shared IRQ problems). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, I like it (so far).
I will put the failing G0 controllers in the ignore list for now since a colleague of mine at work needs L0 support soon. |
I fixed a problem in the UART driver that occurs when there is a tx buffer but no rx buffer. The controller got stuck on reception of data because the RX interrupt was enabled but the flag was never acknowledged. |
cea91b2
to
5574adc
Compare
Is there any documentation that needs a manual update after adding the L0 series? |
9f83967
to
5ed1c17
Compare
@salkinium The files generated by synchronize_docs.py in the CI and my computer don't agree. I get from the CI:
|
More G0 issues (stm32g051k8u6, stm32g061k8u6, stm32g050k8t6):
|
The G0{5, 6}* issue should be fixed by updating the ST CMSIS submodule. |
😱😱😱😱😱😱😱😱 That's quite horrifying…
You also need to add these header patches (ST decided to remove these definitions, but only for G0 wtf). |
2b52ba2
to
fd7ff12
Compare
I cherry-picked your commit and removed mine that updates the CMSIS headers. Let's see what the CI says. |
fd7ff12
to
4c1031d
Compare
@salkinium There is something weird going on with synchronize_docs.py. The output on my system is different to the CI. Both are running Ubuntu 20.04. |
I have the same problem… I'll check what I can do. |
May I force-push to fix the two typos? |
Absolutely, it's your branch. |
Thanks, will also split the |
aea4dd6
to
fe9bc9e
Compare
The split |
That worked, thanks. |
Ideally I'd want a button that the reviewers but also the PR owner can press. But I guess we cannot have nice things… |
We are doing embedded on microcontrollers here. Since when are we the people who can have nice things 😉 |
The compile-all workflow now has 20 jobs, which is the parallism limit from GHA, so it'll block all progress until it has finished running… |
It seems modm-io/modm-devices#58 is ready for merging. |
I still cannot fix the dox sync problem. I'm going to do the release 2021q1 now, and I'm cherry-picking the UART fix, since that's really important. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I approve the L0 releated changed, so thanks!
However, the CI is still broken, so I'm going to rebase and force push your branch some. Sorry for the emails…
Should I look into finding out why the CI is broken or will you? I am working on different stuff right now, but I might get to it later. My idea would be to get the build docker container and debug it in there. |
No, I will, hence a few commits. I suspect some issues with Python 3.8 (CI) vs 3.9 (local), but I'm not sure yet. |
I have 3.8 as well as I am running the same OS version (Ubuntu 20.04) on the machine I am writing this from. My suspicion is right now some python package version. |
9860926
to
178d16d
Compare
The |
178d16d
to
5aec5b6
Compare
I rebased onto develop and now the script does indeed return the right thing, but now the CI is broken… |
Docker pull gets an HTTP 500 from ghcr.io:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
https://www.githubstatus.com/: |
5aec5b6
to
0cf1c65
Compare
Now even the arm.com download server fails in travis ci. Microsoft cloud has network issues: https://status.azure.com/en-us/status. |
Yay, let's merge this! |
This adds support for STM32L0 devices.
Fix G0 usart shared interrupt problem due to updating device files(fix postponed, device are ignored for now)