K42 Problem initialising SPI for MMC

General discussion on mikroBasic PRO for PIC.
Post Reply
Author
Message
davegsm82
Posts: 156
Joined: 29 Mar 2011 20:35

K42 Problem initialising SPI for MMC

#1 Post by davegsm82 » 09 Apr 2020 18:19

Picked up my K42 project again which writes log files to an MMC (Micro-SD) fine on a K22.

Trying to get the MMC working on the K42, however the compiler simply returns 'Pointer required' four times for the init routine, the correlation being that there are 4 initialisation vectors for the function. Please see the attached picture;
k42 spi init.png
k42 spi init.png (34 KiB) Viewed 945 times
The help file states that you need to specify SPIx for processors with multiple SPI's, the K42 only has 1x SPI but if you remove the '1' from SPI it reports it as undeclared identifier, same as if you specify SPI2.

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

Re: K42 Problem initialising SPI for MMC

#2 Post by jovana.medakovic » 10 Apr 2020 10:26

Hello,

Can you zip and send me your project for review?

Kind regards,
Jovana

Post Reply

Return to “mikroBasic PRO for PIC General”