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

trying to add support stm32g070kb uC #1286

Closed
King-anderson opened this issue Jan 26, 2021 · 6 comments
Closed

trying to add support stm32g070kb uC #1286

King-anderson opened this issue Jan 26, 2021 · 6 comments
Labels
duplicate This issue or pull request already exists

Comments

@King-anderson
Copy link

I have tried to add stm32g070kb support to the project. I have created the variant steps as is said in wiki, but I see below error during compilation
note that the stm32g070kb doesn't support LPTIM at all but stm32duino mistaken the supportability. when or how can check configuration header files to fix this issue?

In file included from C:\Users\Sadegh\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\timer.c:14:
C:\Users\Sadegh\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\timer.c: In function 'getTimerUpIrq':
C:\Users\Sadegh\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/timer.h:79:19: error: 'TIM7_LPTIM2_IRQn' undeclared (first use in this function)
   79 | #define TIM7_IRQn TIM7_LPTIM2_IRQn
      |                   ^~~~~~~~~~~~~~~~
C:\Users\Sadegh\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\timer.c:404:16: note: in expansion of macro 'TIM7_IRQn'
  404 |         IRQn = TIM7_IRQn;
@King-anderson King-anderson added the new variant Add support of new bard label Jan 26, 2021
@fpistm
Copy link
Member

fpistm commented Jan 26, 2021

Hi @msadeghz
I guess you try on top of the master?
G0 has some issues and will be corrected with the next HAL/LL update, see #1253
anyway I'm surprised you got this issue on top of the master with the TIMER.

@fpistm fpistm added the waiting feedback Further information is required label Jan 26, 2021
@King-anderson
Copy link
Author

King-anderson commented Jan 30, 2021

all right,
can you give me some information to I fix it temporarily.
how do header files work in path stm32\1.9.0\cores\arduino/stm32/? how can I edit them based on headers in path stm32\1.9.0\system\Drivers

@fpistm fpistm added duplicate This issue or pull request already exists and removed new variant Add support of new bard waiting feedback Further information is required labels Jan 30, 2021
@fpistm
Copy link
Member

fpistm commented Jan 30, 2021

In fact this is already solved in the master:
#1141

@fpistm fpistm closed this as completed Jan 30, 2021
@King-anderson
Copy link
Author

another question,
in modifying the PeripheralPins.h file, how can I calculate GPIO_AFx_xxxxx variable?

@fpistm
Copy link
Member

fpistm commented Jan 30, 2021

You don't have to modifying yourself the file it is automatically generate.
It is provided thanks the STM32 Tools package.
Or online:
https://github.com/stm32duino/Arduino_Tools/tree/master/src/genpinmap/Arduino/STM32G0

And please use the forum. 😉

@King-anderson
Copy link
Author

King-anderson commented Jan 30, 2021

thank you very much,
I'm not familiar with the stm32duino ecosystem and forum, I have just googled and didn't find anything.
but still I can't get anything from Serial.print on uart1! :)

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants