Cannot initialize ADC1 in STM32G071RB on EWARM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-01 11:58 PM
I'm debugging STM32G071RB by using Nucle-G071.
The code I use is generated by STM32CubeMX, and I try to put break point to variable in "static void MX_ADC1_Init" but it semms like not to initialize because I cannot put break point there.
I confirmed that sample code in L0 is fine without any trouble.
I only generated initial code and never write user code.
Does anyone find this problem before?
If you have any advice please teach me, thank you.
Solved! Go to Solution.
- Labels:
-
ADC
-
DEBUG
-
IAR
-
STM32CubeMX
-
STM32G0 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-21 3:45 AM
Hi Nesrine.JLASSI (ST Employee)
Thanks for your comment.
I have already figured this out.
This problem is coming from setting of develop environment (EWARM).
"Optimization level" was in the highest level. This is why I could not put break point.
​
Thank for your cooperation
Best regards,
Hayato EHATA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-21 3:25 AM
Hi @HEhat.1​
Thanks for the feedback, i did the same scenario and i had no issue. So, could you please share your .ioc file to check with.
Best regards,
Nesrine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-21 3:45 AM
Hi Nesrine.JLASSI (ST Employee)
Thanks for your comment.
I have already figured this out.
This problem is coming from setting of develop environment (EWARM).
"Optimization level" was in the highest level. This is why I could not put break point.
​
Thank for your cooperation
Best regards,
Hayato EHATA
