We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

2 posts • Page 1 of 1
tenkoh
Posts: 7
Joined: Sun Jun 21, 2020 3:51 pm

BCM2837のIllegal access type-X IRQについて

Sun Oct 02, 2022 4:41 pm

BCM2837のIllegal access について質問させてください。

"BCM2837 ARM Peripherals"の"Illegal access type-0 IRQ (7)"および"Illegal access type-1 IRQ (6)"には、"That signal is asserted when either an address bit 31 or 30 was high or when an access was seen on the ARM Peripheral bus.", "That can either be an address bit 29..26 was high or when a burst access was seen on the GPU Peripheral bus."と書かれています。
しかし、下記のコードを実行しても、IRQ は発生しませんでした。


--------------------------------------------------------------------------------
icr = _tp_getenareg1(intnum);
icr |= ( 1 << intnum );
_tp_setenareg1(intnum);
--------------------------------------------------------------------------------
_tp_getenareg1:
mov w1, #0x7E00
lsl w1, w1, #16
mov w2, #0xB210
orr w1, w1, w2
ldr w0, [x1, #0x00]
br lr
--------------------------------------------------------------------------------
mov w0, 0x3C00
lsl w0, w0, #16
mov w1, 0x00000001
str w1, [x0, #0x00]
br lr
--------------------------------------------------------------------------------

マニュアルの記述から、29bit 目から26bit 目までに1が立ったアドレスにアクセスするとIllegal access type-1が発生すると考えていたのですが、何か大きな勘違いをしているのでしょうか?

有識者のご意見を頂けると幸いに存じます。

tenkoh
Posts: 7
Joined: Sun Jun 21, 2020 3:51 pm

Re: BCM2837のIllegal access type-X IRQについて

Mon Oct 10, 2022 4:14 am

割り込みを許可するenable register (Enable Basic IRQs)のアドレスを0x7e00b218から0x3f00b218に変更したところ、無事割り込みが発生しました。

たくさんの御高覧、ありがとうございました。

2 posts • Page 1 of 1

Return to "日本語"

AltStyle によって変換されたページ (->オリジナル) /