Skip to content

stm32_min_dev board no console output #12594

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
explora26 opened this issue Jan 19, 2019 · 6 comments · Fixed by #12636
Closed

stm32_min_dev board no console output #12594

explora26 opened this issue Jan 19, 2019 · 6 comments · Fixed by #12636
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32 priority: medium Medium impact/importance bug

Comments

@explora26
Copy link
Collaborator

I'm trying to test hello world example with stm32_min_dev board, but the UART didn't output anything.

I found that the last workable commit SHA is 9612f9d, maybe this issue cause by 2fb616e

@explora26 explora26 added the bug The issue is a bug, or the PR is fixing a bug label Jan 19, 2019
@erwango
Copy link
Member

erwango commented Jan 21, 2019

@explora26 , if you have access to gdb, can you do the following before and after the change?

(gdb)x /4x 0x40010800
0x40010800:	0x44444944	0x88844444	0x0000dfdc	0x0000a000

@erwango erwango added platform: STM32 ST Micro STM32 priority: medium Medium impact/importance bug labels Jan 21, 2019
@erwango erwango self-assigned this Jan 21, 2019
@erwango
Copy link
Member

erwango commented Jan 21, 2019

^^@cybertale

@explora26
Copy link
Collaborator Author

Here is the registers dump:
Before revert 2fb616e :

(gdb)x /4x 0x40010800
0x40010800:	0x44444444	0x88844444	0x0000dfff	0x0000a000

After revet 2fb616e :

(gdb)x /4x 0x40010800
0x40010800:	0x44444444	0x88844494	0x0000dfff	0x0000a000

Looks like the port configuration register incorrect.

@explora26
Copy link
Collaborator Author

Ok, I fixed it.
Please see my change:
https://github.com/explora26/zephyr/commits/fix_gpio

@erwango
Copy link
Member

erwango commented Jan 22, 2019

@explora26, great txs! This piece of code was indeed my suspect number 1, but I couldn't spot the issue.
Would you push a PR to fix it?

@explora26
Copy link
Collaborator Author

@erwango , the pull request have been created, , thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32 priority: medium Medium impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants