Using the MC9S12 MMC to force hardware reset line to be pulled.

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

Using the MC9S12 MMC to force hardware reset line to be pulled.

604 Views
gman8
Contributor I

The MMC can pull the hardware reset line on a bad memory request, however I can not seem to make it work. I tried doing it using Xgate. Still no dice.

I need to perform a hardware reset without using the COP.  Please give a specific example using 'C'. Thanks

Labels (1)
0 Kudos
2 Replies

409 Views
HSW
NXP Employee
NXP Employee

Hello Gary,

Illegal address resets can only be triggered by the CPU. Illegal accesses performed by the XGATE will result in "XGATE Software Error" interrupts.

0 Kudos

409 Views
iggi
NXP Employee
NXP Employee

Hi,

I assume you mean generation of system reset when CPU accesses an unimplemented address (i.e., an address which does not belong to any of the on-chip modules).

For example, you can try to read or write to a global address of your device memory map which is unimplemented.

/* S12XEP100 device */

void main (void)

{

unsigned char data3, data4;

// Unimplemented RAM area

data3 = *(unsigned char *far)0x000800;

(void) data3;

// Unimplemented FLASH area

   data4 = *(unsigned char *far)0x400000;

(void) data4;

}

After this, ILAF flag is set which is unaffected by system reset. It can be cleared by writing a 1 to CRGFLG register, or cleared by power on or low voltage reset.

Regards,

Ivan

0 Kudos