2023-11-16 04:48 AM
Hi all,
I am in the process of bringing up a prototype board with a STM32L4R7ZIT6. I'm using CubeMX and use it for generating the startup code. I've configured a lot of peripherals.
When I configure PG10 as an input, the CPU crashes. Exactly at the moment that te confirmation is written in te control register of the io-port. When no other io's are configured, there is no problem. I tried to remove a lot of the peripherals, but the problem still exists. Is this a known issue?
Solved! Go to Solution.
2023-11-17 12:43 AM
Problem solved.
Sorry for keeping you Buzzy. The PG10 has a capacitive coupling with the enable signal of the LDO. When the PG10 is configured as an output, it causes a smal glitch at the EN input, causing to power supply to drop for a short moment. Enough to have the CPU to restart. oeps...
Thank you all for your committment and involvement.
2023-11-16 05:14 AM
>Is this a known issue?
did you read the errata sheet of this chip?
2023-11-16 05:28 AM
Crashes how exactly? Code / MCU ends up where?
Dying in silently in while(1) loops will tell you nothing externally. Instrument the Hard Fault and Error Handlers so you can get actionable data. Stop in the debugger, understand where it is and what it is doing.
Other PG pins working? VCCIO Enabled? EXTI or Interrupts?
2023-11-16 05:43 AM
Hi AScha.3,
Thank you for the tip. I checked it after your message. But no items on this issue, nor on my other issue. DAC via opamp
2023-11-16 06:13 AM
Hi Tesla,
Thans for your rapid reply. i'll answer your questions below:
- The other PG pins are working PG 0 ~PG 6 are unsued, PG 7,8 for the LPUART, PG 9 ~PG 15 are digital inputs and outputs.
Workin in this context means 'can be configurated and initialised' There is no software yet using these io's.
- VCCIO Enabled?: I donot know what that means. I did connect the VDDIO2 pins tot the 3.3V VCC power supply.
- EXTI and Interrupts are not (yet) used.
2023-11-16 06:26 AM
Stop being coy and post an .ioc or code.
2023-11-16 06:43 AM - edited 2023-11-16 09:19 AM
On the L4+ the VDDIO2 on GPIOG bank must be explicitly enabled
/* VddIO2 must be enabled to access GPIO port G[2:15] */
__HAL_RCC_PWR_CLK_ENABLE();
HAL_PWREx_EnableVddIO2();
__HAL_RCC_GPIOG_CLK_ENABLE();
Is the configuration causing the MCU to RESET? Scope the NRESET/NRST pin, review other connectivity on a board level.
Stuck in Default_Handler ?
2023-11-16 08:19 AM
Hi David,
Thank you for your reply. I'd love to send my .ioc file. But the site refuses to accept it.
Has anyone a solution?
2023-11-16 08:21 AM
Thank you Tesla,
I'm sorry, but i cannot find how to enable the VCCIO on GPIOG bank. Could not find it in any manual. So a hint would be apreciated.
Regards,
Geert
2023-11-16 09:15 AM - edited 2023-11-16 09:19 AM
from p. 24/307 -> DS12023 Rev 5
did you connect vddio2 -> vdd