Skip to content

enable dma for USART in stm32f302. added missing hal! implementation #135

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

Closed
wants to merge 0 commits into from

Conversation

sprhawk
Copy link
Contributor

@sprhawk sprhawk commented Sep 1, 2020

enable DMA for USARTs for stm32f302, stm32f334
added missing implementation of USART3 for stm32f302, stm32f334
added missing implementation of USART4, 5 for stm32f303xb/c/d/e, stm32f302xb/c/d/e, stm32f358, stm32f398

@sprhawk
Copy link
Contributor Author

sprhawk commented Sep 1, 2020

it can build, but failed to run dma serial transfer on my stm32f302r8 device ( transferring garbage data). I think it should not be caused by changes here. I pushed it for reviewing first

@sprhawk sprhawk changed the title enable dma for USART in stm32f302. fix hal! implementation for USART3, 4 for stm32f3 enable dma for USART in stm32f302. added missing hal! implementation for USART3, 4 for stm32f3 Sep 1, 2020
@sprhawk sprhawk changed the title enable dma for USART in stm32f302. added missing hal! implementation for USART3, 4 for stm32f3 enable dma for USART in stm32f302. added missing hal! implementation Sep 1, 2020
@strom-und-spiele
Copy link
Collaborator

Thanks for your work!

it can build, but failed to run dma serial transfer on my stm32f302r8 device ( transferring garbage data). I think it should not be caused by changes here. I pushed it for reviewing first

I don't really get how one can help you here. Do you want a review on the working code or help making the DMA work?

@teskje
Copy link
Collaborator

teskje commented Sep 3, 2020

I also think you'll have an easier time finding people willing to review if you made sure all the CI checks pass first. At least speaking for myself, when I see those failing checks I automatically assume this PR is not worth reviewing yet since I would only find the same issues the CI has already found.

If you have any specific problems we can help you out with, let us know. But as @strom-und-spiele implied, nobody is going to be able to help you much with figuring out what breaks DMA on your F302, since nobody owns that hardware AFAIK.

@sprhawk
Copy link
Contributor Author

sprhawk commented Sep 3, 2020

Thanks for your work!

it can build, but failed to run dma serial transfer on my stm32f302r8 device ( transferring garbage data). I think it should not be caused by changes here. I pushed it for reviewing first

I don't really get how one can help you here. Do you want a review on the working code or help making the DMA work?
Thanks. I'll fix it myself later.

I also think you'll have an easier time finding people willing to review if you made sure all the CI checks pass first. At least speaking for myself, when I see those failing checks I automatically assume this PR is not worth reviewing yet since I would only find the same issues the CI has already found.

If you have any specific problems we can help you out with, let us know. But as @strom-und-spiele implied, nobody is going to be able to help you much with figuring out what breaks DMA on your F302, since nobody owns that hardware AFAIK.

Sure, I'll find the issue myself, I just leave it as a mention.

I'll do tests and fix it later.

Copy link
Collaborator

@teskje teskje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable, just a few style requests.

Copy link
Collaborator

@teskje teskje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Can you also add a changelog entry?

@sprhawk
Copy link
Contributor Author

sprhawk commented Sep 10, 2020

Looks like you accidentally duplicated this one.

They are different PRs, Should I merge them into one with some text?

@teskje
Copy link
Collaborator

teskje commented Sep 10, 2020

No, just remove the second entry for #132 from the changelog. It's already there (two lines above).

@sprhawk
Copy link
Contributor Author

sprhawk commented Sep 10, 2020

I have dropped my last commit and forcely pushed

@teskje
Copy link
Collaborator

teskje commented Sep 10, 2020

Hm, now the diff contains changes from other PRs too, that are actually already in master. Not sure what went wrong here. Let me try if I can fix it once I'm back at a PC.

@sprhawk
Copy link
Contributor Author

sprhawk commented Sep 10, 2020

Hm, now the diff contains changes from other PRs too, that are actually already in master. Not sure what went wrong here. Let me try if I can fix it once I'm back at a PC.

Because I merge from the upstream, or else, github will not allow merge.

@teskje
Copy link
Collaborator

teskje commented Sep 11, 2020

Sorry, I meant to push my fixup changes to your branch but pushed my master branch instead. This caused an empty diff on this PR, which lead Github to automatically close it. As long as the PR is closed I cannot push to your branch to fix my mistake and as long as the diff is empty I cannot re-open the PR. I took the simple solution of opening a new PR with these changes. Please check out #139. If it looks good to you, I will merge it.

@sprhawk
Copy link
Contributor Author

sprhawk commented Sep 11, 2020

Sorry, I meant to push my fixup changes to your branch but pushed my master branch instead. This caused an empty diff on this PR, which lead Github to automatically close it. As long as the PR is closed I cannot push to your branch to fix my mistake and as long as the diff is empty I cannot re-open the PR. I took the simple solution of opening a new PR with these changes. Please check out #139. If it looks good to you, I will merge it.

I think it is fine to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants