Code generation problem for RTC with STM32WL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-05-20 5:28 AM
I'm currently having problems with the code generated by CubeMx for the RTC on my STM32WL MCU. Indeed, after generating the code and building the project, there are errors in the timer_if.c file. Each time the rtc handler is used, it says that the reference to "h" (which is the name of the handler generated by CubeMx) is unknown. The problem disapears when I rename the handler and call it "hrtc", which is the same name as the rtc handler generated in the main.c file. Does anyone know where the problem comes from?
Thank you !
ML
Solved! Go to Solution.
- Labels:
-
RTC
-
STM32CubeMX
-
STM32WL series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-08-18 7:29 AM
Hello @AZube.2​ & @AAlat.1​,
Thank you both for your contributions and for your detailed explanations,
I confirm the issue on my side, it has been reported to STM32CubeMX development team .
Internal ticket number: 133317 (This is an internal tracking number and is not accessible or usable by customers).
I will keep you posted with updates.
Regards,
Aziz
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-05-23 2:27 AM
Hello @MLour.1​ ,
Thank you for your feedback,
Could you please provide your IOC file so that we can reproduce the issue.
Best regards,
Aziz
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-06 3:31 AM
Hello ST members and employees,
I am having the exact same problem. I modified each "h" instance with "hrtc" and the undefined reference errors disappeared when building the project. However, I would like to understand and solve this problem from its root.
Since @MLour.1​ did not answer you, here I attach my IOC file. Just to inform, I am trying to adapt the end_node application to my custom board, where I use a IS2MDC magnetic sensor.
Thanks for the support and best regards,
Asier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-08-14 4:22 AM
I think I had the same issue.
Short answer:
Check your Middleware->LoRaWAN->Platform Settings -> TimeServer.
It may be that it glitched to "Undefined". Change it back to "RTC" and it may work.
Long answer: https://community.st.com/s/question/0D53W00001jmefXSAQ/code-generation-glitch-for-rtc-with-stm32wl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-08-18 7:29 AM
Hello @AZube.2​ & @AAlat.1​,
Thank you both for your contributions and for your detailed explanations,
I confirm the issue on my side, it has been reported to STM32CubeMX development team .
Internal ticket number: 133317 (This is an internal tracking number and is not accessible or usable by customers).
I will keep you posted with updates.
Regards,
Aziz
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-23 1:16 PM
This fixed my issue, thank you
