Skip to main content
ashutamar
Associate
Mar 12, 2024 11:38 AM UTC
Question

facing system config crystal and RTC Crystal problem in STM32G0B1CET6

Hi Team,
I am currently working with the STM32G0B1CET6 microcontroller and using two Abracon crystal parts, ABL-8.000MHZ-B2 and AB38T-32.768KHZ-B. However, I am encountering issues with the crystal when I use heavy ( like code more than 50% ram & flash of this STM-g0) percent of my code in STM. Attached is the schematic for your reference., 
 

ashutamar_0-1710242909253.png

Thank you,
Ashu Tamar

This topic has been closed for replies.

5 replies

STOne-32
ST Technical Moderator
Mar 12, 2024 7:36 PM UTC

Dear @ashutamar ,

Can you please details what kind of issues , waveforms of signals. Try to output value of the LSE or HSE on MCO pin to understand the case . Also the PCB routing . I would recommend to try to isolate where these issues are coming ?

R10 is not necessarily and may create issues - it is not recommended . For LSE 32,768Khz to know the selected drive level with LSE - I see such crystal is 12,5pF CL and is not compatible with lower drives .

 

this is our reference App Note : https://www.st.com/resource/en/application_note/an2867-oscillator-design-guide-for-stm8afals-stm32-mcus-and-mpus-stmicroelectronics.pdf

hope it helps you .

STOne-32 

Tesla DeLorean
Guru
Mar 12, 2024 7:48 PM UTC

I'm hard pressed to draw a relationship between code size and crystal function.

Focus on other potential issues as more direct causes.

Make sure you actively clear auto/local variables.

Make sure you use appropriate flash wait states for speed and voltage considerations.

 

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
AScha.3
Super User
Mar 12, 2024 8:00 PM UTC

>I'm hard pressed to draw a relationship between code size and crystal function.

:) :)

"crystal " has nothing to do with your  code size.

So you do something in your code, that is very wrong.

+

What are the "issues with the crystal  " ? which crystal (you show both) ?

How you know, its the crystal and not your code ??

If you feel a post has answered your question, please click on " Best Answer ".
waclawek.jan
Super User
Mar 12, 2024 10:02 PM UTC

 

Maybe consequence of this erratum?

What exactly are the symptoms?

JW

Tesla DeLorean
Guru
Mar 12, 2024 10:21 PM UTC

That sounds like linear code execution issue where the data feed to the prefetch wraps within the bank due to lack of broader context. ART related? Or Exception/IRQ has a start address close to the boundary

 

ie 0x08007FFE rolling into 0x08008000 if the banks were 32KB (adjust for architecture..), instead fetching 0x08000000

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..