Error Enabling the Periph Clock MPC5748G

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

Error Enabling the Periph Clock MPC5748G

跳至解决方案
2,121 次查看
ailtonlopes
Contributor III

Hi, so Im having some errors setting up the peripheral clock for the DSPI modules, after writing the ME_MC.PCTL registers for the DSPI and SPI and when I try to change the mode by writing the  MC_ME.MCTL register i get the following messages and the PCTL registers gets back to 0.

MPC574xG Device detected.
PE-ERROR: Warning. Can't read memory while part is running. @ffe7007c (16 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @fffb8060 (16 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @ffe70008 (28 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @fffb8048 (4 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @ffe7002c (32 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @fffb81e0 (16 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @fffb8080 (168 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @40006ee4 (4 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @40006ee4 (4 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @40006ecc (4 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @40006ee4 (4 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @0 (4 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @40006ee4 (4 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @40006ee0 (4 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @40006eb8 (4 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @40006ebc (4 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @10033b4 (1 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @fffb8004 (4 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @fffb8004 (4 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @fffb80c0 (104 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @fffb80c0 (100 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @fffb8124 (4 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @fffb80c0 (100 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @fffb8124 (4 bytes)

Kind regards, 

Ailton Lopes.

 

1 解答
1,955 次查看
ailtonlopes
Contributor III

I found out that the problem was that I was accessing the DSPI registers values with the debugger as shown in the figure bellow, and by doing so it was generating the error when I try to setup the clock for the peripheral. 

pastedImage_1.png

By removing the debbuger's access to the peripheral the  code runs with no errors.

在原帖中查看解决方案

1 回复
1,956 次查看
ailtonlopes
Contributor III

I found out that the problem was that I was accessing the DSPI registers values with the debugger as shown in the figure bellow, and by doing so it was generating the error when I try to setup the clock for the peripheral. 

pastedImage_1.png

By removing the debbuger's access to the peripheral the  code runs with no errors.