ST意法半导体
直播中

何柳青

7年用户 205经验值
私信 关注
[问答]

如何查找SPC MCU中的内存FLASH损坏?

嗨团队,
我正在使用SPC560b-Discover板
IDE-SPC5 Studio,版本:5.2.1
我想查找Flash(dataFlash或CodeFlash)和RAM中是否有任何内存损坏。
你能帮我找一下记忆腐败的方法,
据我所知,将会有一种搁浅的方式来启用ECC,或者默认启用它,
如果只是ECC的方式,
如何在SPC560B系列MCU中启用ECC,如果启用ECC,我们将如何知道存在内存损坏。
---
提前致谢,
谢谢&问候,
Mujeeb Shaik。

以上来自于谷歌翻译


以下为原文




Hi Team,
I am using SPC560b-Discover board
IDE-SPC5 Studio, version: 5.2.1
I want to find if any memory corruptions in Flash(dataFlash or CodeFlash) and RAM.
Can you please help me to find the ways of memory corrupt happened,
As i know there will be one stranded  way to find is enable ECC or by default it will be enabled,
If ECC is only the way,
how to enable the ECC in SPC560B family MCUs,If ECC is enabled how we will come to know there is memory corruption is happened.
---
Thanks in advance,
Thanks & Regards,
Mujeeb Shaik.

回帖(3)

刘鑫

2018-11-9 10:10:39
你好Mujeeb,
这有中断
Vector35 0x088C 4
 
ECC_DBD_PlatformFlash | ECC_DBD_PlatformRAM
平台ECC双位检测
Vector36 0x0890 4
ECC_SBC_PlatformFlash | ECC_SBC_PlatformRAM
平台ECC单比特校正您可以启用它。
 最好的祝福
 二万

以上来自于谷歌翻译


以下为原文




Hello Mujeeb ,
there is an interruption for that
Vector35 0x088C 4

ECC_DBD_PlatformFlash | ECC_DBD_PlatformRAM
Platform ECC Double Bit Detection
Vector36 0x0890 4
ECC_SBC_PlatformFlash | ECC_SBC_PlatformRAM
Platform ECC Single Bit Correctionyou can enable it.
   Best regards
                   Erwan
举报

何柳青

2018-11-9 10:16:36
嗨二湾,
 
感谢您的回复,我理解这一点,但我需要帮助使用SPC5 studio为此中断生成回调代码,能否指导我如何生成此中断的代码。
提前致谢,
---
谢谢&问候,
Mujeeb Shaik。

以上来自于谷歌翻译


以下为原文




Hi Erwan,


Thanks for your reply,I understand this,but i need help to generate call backs code for this Interrupts using SPC5 studio,Can you please guide me how to generate the code for this interrupts.
Thanks in advance,
---
Thanks & Regards,
Mujeeb Shaik.
举报

刘鑫

2018-11-9 10:36:02
嗨Mujeeb,
有一个有用的应用笔记
http://www.st.com/content/ccc/resource/technical/document/application_note/57/02/dc/4a/8e/66/43/ad/DM00080495.pdf/files/DM00080495.pdf/jcr:内容/翻译/ en.DM00080495.pdf
 
应该调用来自IVOR4的处理程序vector36和vector35。
建议也检查IVOR2(参见文件)
 最好的祝福
 二万

以上来自于谷歌翻译


以下为原文




Hi Mujeeb ,
There is a useful application notes for

http://www.st.com/content/ccc/resource/technical/document/application_note/57/02/dc/4a/8e/66/43/ad/DM00080495.pdf/files/DM00080495.pdf/jcr:content/translations/en.DM00080495.pdf


  • /* you can set the priority like that */








  • INTC_PSR


  • (


  • 35


  • )




  • =




  • 5


  • ;





  • INTC_PSR


  • (


  • 36


  • )




  • =




  • 5


  • ;








  • /* enable ECC error reporting (cf RM)*/





  • ECSM

  • .


  • ECR

  • .


  • R

  • =


  • xxx








  • â€�


  • â€�


  • â€�


  • â€�


  • â€�


  • â€�


  • â€�


  • â€�

the handler vector36 and vector35 from IVOR4 should be called.
it is recommended to check IVOR2 too (cf document)
  Best Regards
                     Erwan
举报

更多回帖

发帖
×
20
完善资料,
赚取积分