Hi David and rweiss,
I have updated the cmm script according to the c code that you have shared for initializing the EBI (attached below) but, few issues I am facing are mentioned below:
- After running the cmm script I am getting a warning of "data alignment error". Refer attached screenshot.
- Through script, I am initializing the PCR 278 to PCR 293 with 0x0440 (as mentioned in the C code) but it is initializing to 0x400. Refer attached screenshot.
- After running the updated "ebi_init.cmm" I am running our cmm scripts to load the elfs of CORE0 and CORE1 (Scripts attached below) then I am seeing the unusual behavior in the memory.
- Seeing all zeros (0x00000000) from the starting address of the external memory i.e., 0x20000000, even from the linker file the code, data, and stack are using the external SRAM i.e., from 0x20000010 (code section)...and so on. Refer attached linker files for CORE0 and CORE1 for your reference.
- From code, I am trying to write some random data to external SRAM location i.e., 0x2000E000 but I am seeing some abrupt values toggling only when the execution is in paused state. Refer attached screenshot.
- When trying to write any values manually from Trace32 then on writing any value at one location, automatically it writes the same value to the next 4 locations. Refer attached screenshot.
- After loading both elfs of CORE0 and CORE1, so when I pause the execution I am getting one warning of "NEXUS-AF preprocessor: message conversion overflow occurred". Refer attached screenshot.
Request you to please provide your inputs on the above-mentioned issues.
If possible can we connect over a call for better clarification on the issues.?
Note: Linker and cmm files are attached below in a zip file.
- After running the ebi_init.cmm:
parth_rastogi10_0-1624604917984.png
- Value of PCR 278 to PCR 293:
parth_rastogi10_1-1624605046197.png
parth_rastogi10_3-1624605149364.png
- After loading both the elfs:
parth_rastogi10_0-1624604296232.png
- Pausing the execution after loading both elfs:
parth_rastogi10_4-1624605334117.png
- When tried to write manually any value to external memory: (wrote only at 0x20000000, 0x20000010, and 0x20000020 at rest location it wrote automatically the same values)
parth_rastogi10_5-1624605427598.png
- From code writing random values to 0x2000E000, but seeing below values at a different location and some bits are toggling:
parth_rastogi10_6-1624605700424.png
Hoping for your quick response. @davidtosenovjan @rweiss
Regards,
Parth Rastogi