Error Enabling the Periph Clock MPC5748G

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

Error Enabling the Periph Clock MPC5748G

Jump to solution
1,285 Views
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 Solution
1,119 Views
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.

View solution in original post

1 Reply
1,120 Views
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.