cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP1 identify CM4/CA7 assigned periperhals

Jagr
Associate II

Hello,

with CubeMx 6.9.2 i am generating Code for CubeIDE with the goal to figure out which periphery is assigned to the CA7 or the CM4.

With Freemarker it is possible to get information about which IP's are assigned and used but i have no idea how to get information about to which Core (CA7 or CM4) they are assigned.

Example:

With CubeMx i assigned I2C1 to CM4 and I2C4 to CA7. This can be seen in the .ioc file.

 

CortexA7S.IPs=IWDG2,BSEC\:I,DDR,ETZPC\:I,HSEM,PWR\:I,RCC,RNG1\:I,RTC\:I,TAMP,GIC\:I,I2C4
CortexM4.IPs=IPCC\:I,ETZPC,FREERTOS\:I,HSEM,PWR,RCC,SYS\:I,DMA,NVIC\:I,OPENAMP\:I,I2C2\:I,SPI2\:I,USART3\:I

 

Using the Freemarker example for getting the IP list CA7 and CM4 IP's are summarized to one big pool.

 

[#ftl]
[#list configs as dt]
[#assign usedIPs =dt.usedIPs]

/* List of used IPs */
[#list usedIPs as ip]
- ${ip} 
[/#list]
/* List of used IPs */
- RCC
- DEBUG
- ETZPC
- I2C1
- I2C2
- I2C4
- I2C5
- IPCC
- PWR
- SPI1
....
- NVIC

 

Thank in advance for hints or solution

Cheers

 

P.s.:

i mean somewhere inside the Code Generator the information is available otherwise several CM4 specific init  functions could not be generated that way.

Maybe I'm blind, but the code generation process and the .flt templates are not very well documented

0 REPLIES 0