Skip to content

genpinmap doesn't support stm32f10x chips #17

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
RickKimball opened this issue Aug 18, 2017 · 10 comments
Closed

genpinmap doesn't support stm32f10x chips #17

RickKimball opened this issue Aug 18, 2017 · 10 comments

Comments

@RickKimball
Copy link

When I try to use genpinmap with an stm32f103 board I get the message:

"STM32F10xx MCU not supported due to older GPIO IP version"

How did you generate the PeriphalPins.c used with the NUCELO_F103RB and DISCO_F100RB ?

@ghost
Copy link

ghost commented Aug 18, 2017

@RickKimball

STM32F1 chips are not supported due to the alternate functions.
You have 2 ways to generate the PeripheralPins.c:

  • hack genpinmap to force to generate the file with AF field empty (the one I used).
  • generate manually the file from the existing.

I don't have better solutions to propose to you.

@RickKimball
Copy link
Author

Can you give me a hint how to hack it?

@fpistm
Copy link
Member

fpistm commented Aug 18, 2017

Hi @RickKimball
I've pushed a branch on my forked repo with the hack:
fpistm@b406f1c

@RickKimball
Copy link
Author

Thanks! That seems to work.

@fpistm
Copy link
Member

fpistm commented Aug 18, 2017

You're welcome.
I've updated my branch with a parsing for the F1 AF.
It required further study to align value btw core and __HAL_AFIO_REMAP_xxxxx:
https://github.com/stm32duino/Arduino_Core_STM32/blob/master/cores/arduino/stm32/PinAF_STM32F1.h#L67

I think there are some issue in the current PeripheralPins.c used by our F1 variant.
This could be the root cause of the trouble with Serial Recv

@RickKimball
Copy link
Author

I wonder why the NUCLEO_F103RB works then?

@fpistm
Copy link
Member

fpistm commented Aug 18, 2017

If the concerned pins is not impacted it could work. It need further investigations. It's ongoing ;)

@fpistm
Copy link
Member

fpistm commented Aug 18, 2017

I will produce a patch to support all AF for F1 but this will request some core update that I need to validate.
The genpinmap script will be also updated to manage properly AF for F1.

@fpistm
Copy link
Member

fpistm commented Aug 19, 2017

@RickKimball,
here #18 , the PR to be able to extract AF information for F1.
I've also push a PR to the core to be able to handle all AF:
stm32duino/Arduino_Core_STM32#84
If you can give a try with your vldisco, I've some doubt around some AF which could explain issue with Serial Rx
Thanks in advance

@fpistm
Copy link
Member

fpistm commented Aug 21, 2017

PR #18 merged.

@fpistm fpistm closed this as completed Aug 21, 2017
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

No branches or pull requests

2 participants