Hello all.
Can anyone tell me how to initialize the AON GPIO using?
I am trying to run baremetal code on Cortex-R5 of SPE (AON Cluster).
The GPIO I want is in the AO-HV region and the AON GPIO controller clock according to the TRM is the same as APB Clock. So how do I set the AON GPIO clock high and what are the subsequent steps for initialising the AON GPIOs (preferably for baremetal)?
Hello,
Have you ever checked spe-source/spe-freertos-bsp/rt-aux-cpu-demo-fsp/doc/gpio.md?
That should contain the GPI0-related information in SPE firmware.
Hi ChenJian.
My application is nothing but a simple GPIO Toggle thats running directly on the R5, without any OS (baremetal). For this the GPIO Clock initialization is required and hence the question about which Clock to be addressed for the AON GPIOs.
Thank you.
BR
Hello, abelamge:
I’m still unclear your case.
Clocks are controlled in BPMP firmware. SPE firmware is running as part of L4T BSP.
It’s not possible to strip all other processors and just leaves SPE running.
Hello ChenJian.
I quite understand what you are saying.
To put it simply, can I run a program on SPE without the FreeRTOS, or any other OS for that matter (straight up MCU type flashing Cortex - R5)?
Thank you.
BR
Hello, abelamge:
Technically, it’s doable, but the way may be quite difficult and long.
It has nothing to do with GPIO clock control.
SPE firmware also implements TCU function, which will be called by many other entities.
So a raw SPE firmware may need