Part Number: AM5728
Tool/software: TI-RTOS
I'm using idkAM5728(using only one main cpu0)
I've done pci-e ep mode initialization based on ti-rtos application and test with windows PC.
Now, I need to initialize pci-e as soon as possible to make any windows PC can detect the board.
So, I'm planning to add pci-e initialization part into SBL. and my application will use pci-e with edma.
My system process is like this...
#1. SBL initialize pci-e ep until link is up. SBL doesn't do anything about edma.
Then, load my application.
SBL is based on bare-metal. so, pci-e initialization code will be similar to pci-e example in csl folder.
#2. My application initialize only edma for pci-e.
My app is based on ti-rtos. I'll use sys-bios edma and this code will be similar to example in MyExample\pci-e wSocLib.
My appl doesn't initialize pci-e, because SBL's done it already.
Q1. Is this correct process for my usage?
Q2. Are there better way for this?
Q3. What if SBL initialize both pci-e and edma. Then my application just access/read/write memory block without any initialization for pci-e or edma? Is this okay?
TI always help me a lot. Thank you.