How to use s32k144 aips?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use s32k144 aips?

Jump to solution
1,463 Views
kmh48301
Contributor IV

Hi

 

I need to protect and unprotect the flash memory dynamicaly.

So I studied MPU and Flash protection register and AIPS.

MPU and Flash protection register cannot be solution.

 

And the AIPS(peripheral access protection) explanation is not enough to use in RM.

 

I think wp bits in OPACR is something related.

But I can't figure out that each wp bits indicate to where.

 

Can you please explain how to use AIPS in detail?

 

Thanks

Best Regards

Phillip

0 Kudos
1 Solution
1,437 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Phillip,

the 'X' means that the Peripheral Access Control is present on the S32K1 derivative.

The Peripheral Access Control for FTFC is in OPACRA, Slot 0.

It depends on your requirements, if you want to write-protect the FTFC registers agains any write, set OPACRA[WP0] = 1.

 

Regards,

Daniel

View solution in original post

3 Replies
1,452 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Phillip,

Which peripheral registers do you want to write-protect?

Please refer to the S32K1xx_Mamory_Map.xlsx that is attached to the RM.

danielmartynek_0-1643893300395.png

 

danielmartynek_1-1643893329578.png

danielmartynek_3-1643893452245.png

 

Regards,

Daniel

0 Kudos
1,446 Views
kmh48301
Contributor IV

Hi Daniel

 

kmh48301_0-1643929795415.png

 

What does the 'x's mean?

 

Which peripheral registers do you want to write-protect?

: I want to write-protect the FTFC.

 

So OPACR Slot1 would be the one.

But how can I protect?

 

Thanks

Best Regards

Phillip

0 Kudos
1,438 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Phillip,

the 'X' means that the Peripheral Access Control is present on the S32K1 derivative.

The Peripheral Access Control for FTFC is in OPACRA, Slot 0.

It depends on your requirements, if you want to write-protect the FTFC registers agains any write, set OPACRA[WP0] = 1.

 

Regards,

Daniel