SPI for SDcard, hardfault ?

Dear Members,

I want to use SDcard with softdevice, when I run fatfs_example()

I got this :

nfo> app: Initializing disk 0 (SDC)...
                                       

rror> hardfault: HARD FAULT at 0x00000000
                                    
<error> hardfault:   R0:  0x20006E50  R1:  0x00000000  R2:  0x00000000  R3:  0x0

00000
                                                                        

rror> hardfault:   R12: 0x20006E60  LR:  0x0004026B  PSR: 0x40000013
         
<error> hardfault: Cause: The processor has attempted to execute an instruction

at makes illegal use of the EPSR.

How can I rectify it ?

Thanks

Related