FLEXCAN register vs. Supervisor-User-Secure-Non-Secure

cancel
Showing results for 
Search instead for 
Did you mean: 

FLEXCAN register vs. Supervisor-User-Secure-Non-Secure

789 Views
davideponzetti
Contributor I

Hi all, pls, I'm working on an iMX6Q platform and when I try to read the FLEXCAN memory map (the MCR register  209_0000 instead the CTRL register 209_0004...) the system generate an exception. From what I read in datasheet "The access type can be Supervisor (S) or Unrestricted (U). Most of the registers can be configured to have either Supervisor or Unrestricted access by programming the SUPV bit in the MCR Register. The MCR register allows only
Supervisor access regardless the SUPV bit state" therefore I need to switch in Supervisor Secure Mode by the CSU_CSLx registers. There registers control teh access for each peripheral.

for additional clarification also in the FLEXCAN chapter is wroten "SUPV bit configures some of the FLEXCAN registers to be either in Supervisor or User Mode. Reset value of this bit is '1', so the affected registers start with Supervisor access allowance only. This bit can only be written in Freeze mode as it is blocked by hardware in other modes.
1 FlexCAN is in Supervisor Mode. Affected registers allow only Supervisor access.

!!!! Unrestricted access behaves as though the access was done to an unimplemented register location !!!!
0 FlexCAN is in User Mode. Affected registers allow both Supervisor and Unrestricted accesses"

Currently the CSU_CSL0 at 021c:0000 and CSU_CSL1 at 021c:0004 are 00330033 that means Supervisor and User Secure Only while I need to force them at 00FF0033 and 003300FF respectively.

I need to find the sentences to punt in the Device Tree customization ... DTB

Does anybody pls hepl me in that item?

Tks for all your time and attention.

Best Regards, Davide

Labels (1)
0 Kudos
3 Replies

480 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Davide

for accessing registers one can try memtool :

imx-test (./test/memtool)
www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz

https://community.nxp.com/thread/388442 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

480 Views
davideponzetti
Contributor I

Pls do you know how can I access to the link below? tks

0 Kudos

479 Views
igorpadykov
NXP TechSupport
NXP TechSupport

this is private thread with restricted access. May be you can

try to get help with access from local nxp marketing office.

0 Kudos