2023-05-03 09:03 AM
We can use devmem to read/write all gpio port registers except for portZ.
We know this port relates to secure. is there any way to remove secure feature on this port so we can use devmem on this port?
Thanks
Solved! Go to Solution.
2023-05-03 11:17 AM
I got it working,
The was because I did not enable GPIOZ in RCC_MP_AHB5ENSETR.
2023-05-03 09:15 AM
What chip are you talking about?
JW
2023-05-03 09:30 AM
Hi, STM32MP151AAC3
we are using SPL uboot see that uboot already have these code.
/* GPIOZ: deactivate the security */
writel(BIT(0), RCC_MP_AHB5ENSETR);
writel(0x0, GPIOZ_SECCFGR);
We also use " /sys/class/gpio/" and turn on /off PZ5 just fine. But use devmem to read 0x54004000 which is portZ base then system crashed.
2023-05-03 11:17 AM
I got it working,
The was because I did not enable GPIOZ in RCC_MP_AHB5ENSETR.