ROM Event on i.MX8M

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,388件の閲覧回数
spthx
Contributor II

I want to get ROM Event on an RTOS application running on i.MX8MN.
How can I get ROM Event of i.MX8M series?
I read AN12853, but I couldn't figure out which one applies to i.MX8M.

0 件の賞賛
返信
1 解決策
2,327件の閲覧回数
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @spthx 

I hope you are doing very well.

As you can see on the AN12853, the ROM event log buffer is located at a fixed address in the on-chip RAM:

Alejandro_Salas_0-1731425238092.pngAlejandro_Salas_1-1731425305468.pngAlejandro_Salas_2-1731425347877.png

 

Please refer to the Mscale Series.

 

Best regards,

Salas.

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
1,679件の閲覧回数
MB_stek
Contributor III

Hi,

I'm currently trying to get mainline u-boot v2025.01 running on an i.MX8MM on a custom board. However, we're stuck in the boot loader and don't get output via serial interface. So, I connected a J-Link base and read out the registers. Found out that SPL obviously returns to Boot ROM (as the PC is in the Boot ROM range when halting the Cortex-A53), so I wanted to read out the ROM event log buffer to get more info.

Having found this post, I tried also with 0x9E0 as address, but the output doesn't seem to make sense:

---

Cortex-A53 identified.
J-Link>halt
PC = 00000000000160C4
CPSR = 600003CD (AArch64, EL3h (SP_EL3) mode, IRQ masked, FIQ masked)
SP = 0000000000901F40
ELR_EL1 = 2280006102140688 ELR_EL2 = A700010002088A08
ELR_EL3 = 0000000000016390
SP_EL0 = 01C0000202200002 SP_EL1 = 030C001080440040
SP_EL2 = 000000002002F0F3 SP_EL3 = 0000000000901F40
R0 = 000000000090CC90, R1 = 0000000000000006
R2 = 0000000000901DFB, R3 = 0000000000000000
R4 = 000000000000C1DC, R5 = 0000000000901DFC
R6 = 0000000000000000, R7 = 0000000000000000
R8 = 0000000000000000, R9 = 0000000000000180
R10 = 0000000000000047, R11 = 0000000000000000
R12 = 000000000090B5E0, R13 = 000000000090B528
R14 = 0000000000004000, R15 = 000000000090B5E0
R16 = 0000000000000000, R17 = 0000000000000000
R18 = 0000000000000000, R19 = 0000000030350480
R20 = 000000000000000F, R21 = 000000000090E6D8
R22 = 000000000090C000, R23 = 0000000030350480
R24 = 0000000000000002, R25 = 0000000000910000
R26 = 0000000030390070, R27 = 0000000072000000
R28 = 0000000000000000, R29 = 0000000000901F40
R30 = 00000000000160C4, R31 = 0000000000000000
JMISC = 0000000000000008
J-Link>mem32 0x9E0 4
000009E0 = 0090E558 00000000 0090E6D8 00000000
J-Link>

---

Is 0x9E0 the correct buffer address also for ixm8m Mini (not only for Nano)? AN12853 is not very clear in this regard...

If this is correct, the read data doesn't make sense to me since the first 8 bits should be the ROM event ID (starting with 0x01), but were read as 0x00? Or did I make some mistake in interpreting here?

Kind regards,

Markus

0 件の賞賛
返信
1,660件の閲覧回数
spthx
Contributor II

Hi,

Check the OCRAM starting from address 0x90E558.
You should find the ROM event buffer there.

The OCRAM address pointed to by 0x9E0 should correspond to the ROM event buffer.

Regards,

0 件の賞賛
返信
1,603件の閲覧回数
MB_stek
Contributor III

Thanks for clarifying! Could successfully read from 0x0090E558 and the value there seem to make sense.

Kind regards,

Markus

0 件の賞賛
返信
2,328件の閲覧回数
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @spthx 

I hope you are doing very well.

As you can see on the AN12853, the ROM event log buffer is located at a fixed address in the on-chip RAM:

Alejandro_Salas_0-1731425238092.pngAlejandro_Salas_1-1731425305468.pngAlejandro_Salas_2-1731425347877.png

 

Please refer to the Mscale Series.

 

Best regards,

Salas.

0 件の賞賛
返信
2,312件の閲覧回数
spthx
Contributor II

Thanks for the reply.
I was able to check the logs.

Is there any documentation with details of the parameters?
I am trying HAB and I found a log of 0xA0:Image authentication result in the ROM Event ID definition version 2, but I would like to know what that Parameter0 value means.
Currently I only know that it is not 0xF0 and that it does not pass.

0 件の賞賛
返信
%3CLINGO-SUB%20id%3D%22lingo-sub-1989877%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei.MX8M%E3%81%AEROM%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1989877%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ei.MX8MN%E4%B8%8A%E3%81%A7%E5%8B%95%E4%BD%9C%E3%81%99%E3%82%8BRTOS%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%A7ROM%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88%E3%82%92%E5%8F%96%E5%BE%97%E3%81%97%E3%81%9F%E3%81%84%E3%81%A7%E3%81%99%E3%80%82%3CBR%20%2F%3Ei.MX8M%E3%82%B7%E3%83%AA%E3%83%BC%E3%82%BA%E3%81%AEROM%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88%E3%81%AF%E3%81%A9%E3%81%AE%E3%82%88%E3%81%86%E3%81%AB%E5%85%A5%E6%89%8B%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%81%8B%3F%3CBR%20%2F%3EAN12853%E3%82%92%E8%AA%AD%E3%82%93%E3%81%A0%E3%81%AE%E3%81%A7%E3%81%99%E3%81%8C%E3%80%81i.MX8M%E3%81%AB%E5%BD%93%E3%81%A6%E3%81%AF%E3%81%BE%E3%82%8B%E3%82%82%E3%81%AE%E3%81%8C%E3%81%A9%E3%82%8C%E3%81%AA%E3%81%AE%E3%81%8B%E3%82%8F%E3%81%8B%E3%82%89%E3%81%AA%E3%81%8B%E3%81%A3%E3%81%9F%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1993185%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei.MX8M%E3%81%AEROM%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1993185%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E8%BF%94%E4%BF%A1%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3E%E3%83%AD%E3%82%B0%E3%82%92%E7%A2%BA%E8%AA%8D%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3C%2FP%3E%3CP%3E%E3%83%91%E3%83%A9%E3%83%A1%E3%83%BC%E3%82%BF%E3%81%AE%E8%A9%B3%E7%B4%B0%E3%81%8C%E8%A8%98%E8%BC%89%E3%81%95%E3%82%8C%E3%81%9F%E3%83%89%E3%82%AD%E3%83%A5%E3%83%A1%E3%83%B3%E3%83%88%E3%81%AF%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%81%8B%3F%3CBR%20%2F%3EHAB%20%E3%82%92%E8%A9%A6%E8%A1%8C%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E3%81%A8%E3%81%93%E3%82%8D%E3%80%81ROM%20%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88%20ID%20%E5%AE%9A%E7%BE%A9%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%202%20%E3%81%AB%200xA0%3AImage%20%E8%AA%8D%E8%A8%BC%E7%B5%90%E6%9E%9C%E3%81%AE%E3%83%AD%E3%82%B0%E3%81%8C%E8%A6%8B%E3%81%A4%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8C%E3%80%81%E3%81%9D%E3%81%AE%20Parameter0%20%E5%80%A4%E3%81%8C%E4%BD%95%E3%82%92%E6%84%8F%E5%91%B3%E3%81%99%E3%82%8B%E3%81%AE%E3%81%8B%E7%9F%A5%E3%82%8A%E3%81%9F%E3%81%84%E3%81%A7%E3%81%99%E3%80%82%3CBR%20%2F%3E%E7%8F%BE%E5%9C%A8%E7%A7%81%E3%81%8C%E7%9F%A5%E3%81%A3%E3%81%A6%E3%81%84%E3%82%8B%E3%81%AE%E3%81%AF%E3%80%81%E3%81%9D%E3%82%8C%E3%81%8C0xF0%E3%81%A7%E3%81%AF%E3%81%AA%E3%81%8F%E3%80%81%E9%80%9A%E9%81%8E%E3%81%97%E3%81%AA%E3%81%84%E3%81%93%E3%81%A8%E3%81%A0%E3%81%91%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E