mcxn947 : How to unlock peripheral addresses on zephyr

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

mcxn947 : How to unlock peripheral addresses on zephyr

ソリューションへジャンプ
450件の閲覧回数
Louis-HQ
Contributor I

Hi,

I'm trying to tweak the QDEC_MCUX driver so that it can be used by the mcxn947 on zephyr. The driver is not supported on zephyr for the mcxn947, it compiles after stripping the xbar switch stuff from the zephyr driver (qdec signals are not routed though an xbar switch on the mcxn947) and adding the necessary to the mcxn947 in the NXP HAL so that the memory mapping and interrupt numbers are known for this particular SOC.

Problem is, the app just freezes as soon as the driver tries to access the memory range  of the QDEC peripheral. Ex. :

uint16_t tmp16 = *(volatile uint16_t *)(0x400cf000);

while the same operation works just fine on the range of an other peripheral which is already supported. Ex. :

uint16_t tmp16 = *(volatile uint16_t *)(0x40100000);

for the ENet driver. I assume the issue has to do with trusted execution, but I can't find where the address ranges have been unlocked in the first place for the peripherals which are already supported.

Thanks.

 

ラベル(1)
0 件の賞賛
返信
1 解決策
388件の閲覧回数
Omar_Anguiano
NXP TechSupport
NXP TechSupport

There is no lock that prevents accessing the QDC registers and you are accessing through non-secure area with that direction. Please check that the module clock is enabled before accesing any module register.

Best regards,
Omar

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
389件の閲覧回数
Omar_Anguiano
NXP TechSupport
NXP TechSupport

There is no lock that prevents accessing the QDC registers and you are accessing through non-secure area with that direction. Please check that the module clock is enabled before accesing any module register.

Best regards,
Omar

0 件の賞賛
返信
375件の閲覧回数
ilcvsrtbpul1
Contributor I
ARGUS G2:更順滑
ARGUS G2 是 ARGUS G 的升級版,延續了前代產品的順滑口感和質感,同時帶來了增強的性能和全新的靈活互動體驗。與ARGUS P2一樣,ARGUS G2擁有五大「超能力」-超大容量、超長壽命、超強輸出、超快充電、卓越口感,帶來非凡的電子煙體驗。

ARGUS G2配備0.96吋TFT彩色螢幕,提供使用者清晰直覺的介面來監控設備參數。 UI互動更加豐富,擁有SMART、SUPER、ECO三種電量調節模式,並有對應的視覺動畫。裝置上的兩個 RGB LED 燈允許使用者自訂燈條的狀態,而內建的高頻振動馬達可以對任何異常的墨盒或裝置狀態及時發出警報。

ARGUS G2 pod vape 套件配備全面升級的 ARGUS 頂部填充墨盒,具有 3 毫升電子液體容量、30 天無洩漏使用和 90 毫升線圈壽命。 ARGUS G2 與整個 ARGUS POD 系列相容,為使用者提供 iCOSM CODE,實現從 MTL 到 RDL 的多樣化電子煙體驗。 ARGUS G2 由 1000 mAh 內建電池供電,可提供高達 30W 的穩定功率輸出,帶來一致且美味的電子煙體驗。https://www.relx-taiwan.com/relx/
0 件の賞賛
返信