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

PWM on A9 is broken on Espruino board #142

Closed
gfwilliams opened this issue Dec 17, 2013 · 3 comments
Closed

PWM on A9 is broken on Espruino board #142

gfwilliams opened this issue Dec 17, 2013 · 3 comments

Comments

@gfwilliams
Copy link
Member

It turns out that STM32F103 parts are insane.

If you have two output peripherals that don't need remapping on a single pin, you have to remap one of them anyway to move it out of the way.

For instance this fixes A9 by moving USART1_TX out of the way.

poke8(0x40010004,peek8(0x40010004)|4)  // enable USART1 alternate fn
@gfwilliams
Copy link
Member Author

The solution for this ought to take into account that on F1 parts, only entire peripherals can be moved (so it should know if it can't put one pin on one port and one on another)

@gfwilliams
Copy link
Member Author

This can also be fixed with:

Serial1.setup(9600,{rx:B7, tx:B6})

Basically jshardware needs to have a much deeper understanding of what's going on. Bug #55 covers this more clearly.

@gfwilliams
Copy link
Member Author

Very little interest in this it seems - Espruino Board is 10+ years old now

@gfwilliams gfwilliams closed this as not planned Won't fix, can't repro, duplicate, stale Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant