cancel
Showing results for 
Search instead for 
Did you mean: 

SR5E1E7 DCF programming

sacha
Associate

Hi !

We are using an SR5E1E7. We want to put it as LockStep (both core and dma).
So we have to setup the register 'Global System Configuration' / SYS_CFG_REG.
We seen that we need to use the DCF.

Do you have any example / file to setup this mcu like this ? We couldn't find any document on the web, execpt the MPC5xxx DCF configuration from NXP.

Here some question we had:
- How can we calculate this ? Have you any DCF configurator xsl like NXP are doing ?
- To set the Cores as Lock Step and the DMA as Lock Step, we need to only write to the 'Core Enable and LS
Configuration' of the DCF ? With the value being the one we want in the 'Global System Configuration DCF' with the exact same mapping. '0b00000000000000010000000100000011' in our case, all core enabled and all lock step set


- Does this step can be done at runtime ? By directly addressing the adr 0x1FF80398 ?
- Or is this only accessible during JTAG programming ? So we can create the dcf_map in a specific .dcf section that will be flash using openocd to the right section ?

We are a little bit confused on how to do this, If you could gave us some hint or redirect us to the right example that would be nice.

Thanks in advance,
Sacha



1 REPLY 1
sacha
Associate

From the datasheet, the DCF can be programmed when the application code is written:

sacha_0-1741789366068.png

And the UTest partition can be access through the partition 0 of the flash array memory:

sacha_1-1741789499085.png

Which tell that the BOF-UT contain all the 16K of the UTEST memory map. In the Partition 0 ('0x18000000'). BOF-UT is located at 0x1FF80000. Does that means that I have to flash to the address 0x1FF80000 or do I have to flash to the address 0x18000000 + 160K (If the memory where continous)

 

But in any case:

This is from openocd running "flash banks"

sacha_2-1741789627295.png

I have to flash to the `0x18000000` section which correspond to the sr5e1.3.flash. but that section has a size of only 0x28000 aka the 32K +  64K + 64K of BOF0, BOF1, BOF2.

Can I really use openocd to flash that UTEST partition ? It seems that UTEST is not accessible to openocd ?