microsd_cardDetection() crashes the debugger

General discussion on Libstock website & codes posted on this website.
Post Reply
Author
Message
tsadowski_wn
Posts: 24
Joined: 18 Feb 2019 15:50

microsd_cardDetection() crashes the debugger

#1 Post by tsadowski_wn » 30 Jan 2020 09:58

Hi,

I have a Clicker2 PIC32MZ with a MicroSD Click in MikroBus 1. When I try to detect the card, the debugger crashes with "PC out of scope". Simply checking the pin works and Mmc_Init(), Mmc_ReadCid() and Mmc_ReadCsd() work as well, so the bus is initialized.

Any ideas what is happening?

Cheers,
Torsten
Attachments
Debugger Crash.jpg
Debugger Crash.jpg (46.7 KiB) Viewed 2122 times

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: microsd_cardDetection() crashes the debugger

#2 Post by jovana.medakovic » 31 Jan 2020 17:32

Hello,

Please, can you zip and send me your project for review?

Kind regards,
Jovana

tsadowski_wn
Posts: 24
Joined: 18 Feb 2019 15:50

Re: microsd_cardDetection() crashes the debugger

#3 Post by tsadowski_wn » 13 Feb 2020 15:26

Hello Jovana,

it was my fault in the end. There was still an initialization error which had its effect at this point and sent the processor into the nirvana.

Best Regards,
Torsten

Post Reply

Return to “Libstock Discussion”