How to use s32k144 aips?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to use s32k144 aips?

跳至解决方案
3,660 次查看
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 项奖励
回复
1 解答
3,634 次查看
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

在原帖中查看解决方案

5 回复数
3,649 次查看
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 项奖励
回复
3,643 次查看
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 项奖励
回复
3,635 次查看
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

255 次查看
minsky
Contributor I

你好,请问外设的访问控制如何确定在哪个寄存器的哪个插槽中?

0 项奖励
回复
223 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @minsky,

Can you create a new thread?

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-1408446%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20s32k144%20aips%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1408446%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHI%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E6%88%91%E9%9C%80%E8%A6%81%E5%8A%A8%E6%80%81%E4%BF%9D%E6%8A%A4%E5%92%8C%E8%A7%A3%E9%99%A4%E4%BF%9D%E6%8A%A4%E9%97%AA%E5%AD%98%E3%80%82%3C%2FP%3E%3CP%3E%E5%9B%A0%E6%AD%A4%EF%BC%8C%E6%88%91%E7%A0%94%E7%A9%B6%E4%BA%86%20MPU%E3%80%81%E9%97%AA%E5%AD%98%E4%BF%9D%E6%8A%A4%E5%AF%84%E5%AD%98%E5%99%A8%E5%92%8C%20AIPS%E3%80%82%3C%2FP%3E%3CP%3E%E6%97%A0%E6%B3%95%E8%A7%A3%E5%86%B3%20MPU%20%E5%92%8C%E9%97%AA%E5%AD%98%E4%BF%9D%E6%8A%A4%E5%AF%84%E5%AD%98%E5%99%A8%E9%97%AE%E9%A2%98%E3%80%82%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E8%80%8C%20AIPS%EF%BC%88%E5%A4%96%E8%AE%BE%E8%AE%BF%E9%97%AE%E4%BF%9D%E6%8A%A4%EF%BC%89%E7%9A%84%E8%A7%A3%E9%87%8A%E4%B8%8D%E8%B6%B3%E4%BB%A5%E5%9C%A8%20RM%20%E4%B8%AD%E4%BD%BF%E7%94%A8%E3%80%82%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E6%88%91%E8%AE%A4%E4%B8%BA%20OPACR%20%E4%B8%AD%E7%9A%84%20wp%20bits%20%E4%B8%8E%E6%AD%A4%E6%9C%89%E5%85%B3%E3%80%82%3C%2FP%3E%3CP%3E%E4%BD%86%E6%88%91%E4%B8%8D%E7%9F%A5%E9%81%93%E6%AF%8F%E4%B8%AA%20wp%20%E4%BD%8D%E9%83%BD%E6%8C%87%E5%90%91%E5%93%AA%E9%87%8C%E3%80%82%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E8%AF%B7%E8%AF%A6%E7%BB%86%E8%AF%B4%E6%98%8E%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20AIPS%EF%BC%9F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E8%B0%A2%E8%B0%A2%EF%BC%81%3C%2FP%3E%3CP%3E%E9%A1%BA%E7%A5%9D%E5%95%86%E7%A5%BA%EF%BC%81%3C%2FP%3E%3CP%3E%E8%8F%B2%E5%88%A9%E6%99%AE%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2201630%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20use%20s32k144%20aips%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2201630%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F254381%22%20target%3D%22_blank%22%3E%40minsky%3C%2FA%3E%E3%80%81%3C%2FP%3E%0A%3CP%3E%E6%82%A8%E8%83%BD%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AA%E6%96%B0%E7%9A%84%E4%B8%BB%E9%A2%98%E5%90%97%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2201350%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20use%20s32k144%20aips%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2201350%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%E8%AF%B7%E9%97%AE%E5%A4%96%E8%AE%BE%E7%9A%84%E8%AE%BF%E9%97%AE%E6%8E%A7%E5%88%B6%E5%A6%82%E4%BD%95%E7%A1%AE%E5%AE%9A%E5%9C%A8%E5%93%AA%E4%B8%AA%E5%AF%84%E5%AD%98%E5%99%A8%E7%9A%84%E5%93%AA%E4%B8%AA%E6%8F%92%E6%A7%BD%E4%B8%AD%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1408901%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20use%20s32k144%20aips%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1408901%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%E8%8F%B2%E5%88%A9%E6%99%AE%E3%80%81%3C%2FP%3E%0A%3CP%3EX%20%22%E8%A1%A8%E7%A4%BA%20S32K1%20%E8%A1%8D%E7%94%9F%E5%9E%8B%E5%8F%B7%E4%B8%8A%E6%9C%89%E5%A4%96%E8%AE%BE%E8%AE%BF%E9%97%AE%E6%8E%A7%E5%88%B6%E3%80%82%3C%2FP%3E%0A%3CP%3EFTFC%20%E7%9A%84%E5%A4%96%E8%AE%BE%E8%AE%BF%E9%97%AE%E6%8E%A7%E5%88%B6%E4%BD%8D%E4%BA%8E%20OPACRA%20%E7%9A%84%200%20%E5%8F%B7%E6%8F%92%E6%A7%BD%E3%80%82%3C%2FP%3E%0A%3CP%3E%E8%BF%99%E5%8F%96%E5%86%B3%E4%BA%8E%E6%82%A8%E7%9A%84%E8%A6%81%E6%B1%82%EF%BC%8C%E5%A6%82%E6%9E%9C%E6%82%A8%E6%83%B3%E4%BF%9D%E6%8A%A4%20FTFC%20%E5%AF%84%E5%AD%98%E5%99%A8%E4%B8%8D%E8%A2%AB%E5%86%99%E5%85%A5%EF%BC%8C%E5%88%99%E8%AE%BE%E7%BD%AE%20OPACRA%5BWP0%5D%20%3D%201%E3%80%82%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E6%AD%A4%E8%87%B4%EF%BC%8C%3C%2FP%3E%0A%3CP%3E%E4%B8%B9%E5%B0%BC%E5%B0%94%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1408787%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20use%20s32k144%20aips%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1408787%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%E4%B8%B9%E5%B0%BC%E5%B0%94%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22kmh48301_0-1643929795415.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22kmh48301_0-1643929795415.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F169534i7F926AF5896C7FC2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22kmh48301_0-1643929795415.png%22%20alt%3D%22kmh48301_0-1643929795415.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EX'%E6%98%AF%E4%BB%80%E4%B9%88%E6%84%8F%E6%80%9D%EF%BC%9F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3E%E6%82%A8%E6%83%B3%E5%AF%B9%E5%93%AA%E4%BA%9B%E5%A4%96%E8%AE%BE%E5%AF%84%E5%AD%98%E5%99%A8%E8%BF%9B%E8%A1%8C%E5%86%99%E4%BF%9D%E6%8A%A4%EF%BC%9F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3A%E6%88%91%E6%83%B3%E5%AF%B9%20FTFC%20%E8%BF%9B%E8%A1%8C%E5%86%99%E4%BF%9D%E6%8A%A4%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3E%E5%9B%A0%E6%AD%A4%EF%BC%8C%E5%BA%94%E8%AF%A5%E6%98%AF%20OPACR%20Slot1%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E4%BD%86%E6%88%91%E8%AF%A5%E5%A6%82%E4%BD%95%E4%BF%9D%E6%8A%A4%E5%91%A2%EF%BC%9F%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E8%B0%A2%E8%B0%A2%EF%BC%81%3C%2FP%3E%3CP%3E%E9%A1%BA%E7%A5%9D%E5%95%86%E7%A5%BA%EF%BC%81%3C%2FP%3E%3CP%3E%E8%8F%B2%E5%88%A9%E6%99%AE%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1408605%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20use%20s32k144%20aips%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1408605%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%E8%8F%B2%E5%88%A9%E6%99%AE%E3%80%81%3C%2FP%3E%0A%3CP%3E%E6%82%A8%E6%83%B3%E5%AF%B9%E5%93%AA%E4%BA%9B%E5%A4%96%E8%AE%BE%E5%AF%84%E5%AD%98%E5%99%A8%E8%BF%9B%E8%A1%8C%E5%86%99%E4%BF%9D%E6%8A%A4%EF%BC%9F%3C%2FP%3E%0A%3CP%3E%E8%AF%B7%E5%8F%82%E9%98%85%20RM%20%E9%9A%8F%E9%99%84%E7%9A%84%3CSTRONG%3ES32K1xx_Mamory_Map.xlsx%3C%2FSTRONG%3E%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_0-1643893300395.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_0-1643893300395.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F169500i6C601D667C7A564A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22danielmartynek_0-1643893300395.png%22%20alt%3D%22danielmartynek_0-1643893300395.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_1-1643893329578.png%22%20style%3D%22width%3A%20632px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_1-1643893329578.png%22%20style%3D%22width%3A%20632px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F169501iDCEC3CDF072E3B37%2Fimage-dimensions%2F632x520%3Fv%3Dv2%22%20width%3D%22632%22%20height%3D%22520%22%20role%3D%22button%22%20title%3D%22danielmartynek_1-1643893329578.png%22%20alt%3D%22danielmartynek_1-1643893329578.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_3-1643893452245.png%22%20style%3D%22width%3A%20793px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_3-1643893452245.png%22%20style%3D%22width%3A%20793px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F169503iF6E8DDD3060D5A7B%2Fimage-dimensions%2F793x539%3Fv%3Dv2%22%20width%3D%22793%22%20height%3D%22539%22%20role%3D%22button%22%20title%3D%22danielmartynek_3-1643893452245.png%22%20alt%3D%22danielmartynek_3-1643893452245.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E6%AD%A4%E8%87%B4%EF%BC%8C%3C%2FP%3E%0A%3CP%3E%E4%B8%B9%E5%B0%BC%E5%B0%94%3C%2FP%3E%3C%2FLINGO-BODY%3E