Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

2138 Data Abort Loading SSP Reg

2005-01-23 by dsidlauskas1

This one instruction program creates a Data Abort when setting an SSP
Register. Anyone know what's going on?


int main (void)
{

#define SSPCR0         (*((volatile unsigned char *) 0xE0068000))

SSPCR0   = 0x3f; 
}

The assembly code looks OK and the register address matches the
documentation.

    26:         SSPCR0   = 0x3f;        // SPI Mode, 16 bit frame 
0x000006B2  213F      MOV       R1,#0x3F
0x000006B4  4803      LDR       R0,[PC,#0x000C]
0x000006B6  7001      STRB      R1,[R0,#0x00]

Thanks for your help.

Dave S.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.