Undeclared identifier '_SDI1'

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
nikola.vasovic
Posts: 7
Joined: 13 May 2016 16:57

Undeclared identifier '_SDI1'

#1 Post by nikola.vasovic » 13 May 2016 17:40

Hi All,

I using mikroC PRO for DsPIC 6.2.0 and i have problem specifying SDI input while PPS mapping:

code:

Code: Select all

  
...
Unlock_IOLOCK();
PPS_Mapping(23,_INPUT,_SDI1);
PPS_Mapping(25, _OUTPUT, _SDO1);
PPS_Mapping(20, _OUTPUT, _SCK1OUT); 
Lock_IOLOCK();
...
Messages:
315 324 Undeclared identifier '_SDI1' in expression ...

Any idea/suggestion?

Thanks

p.erasmus
Posts: 3391
Joined: 05 Mar 2009 10:28

Re: Undeclared identifier '_SDI1'

#2 Post by p.erasmus » 16 May 2016 10:29

Hi
Did you include the peripheral pin select in the library manager ?
Attachments
16.05.jpg
16.05.jpg (68.56 KiB) Viewed 2292 times
P.Erasmus
Saratov,Russia
--------------------------------------------------------------

nikola.vasovic
Posts: 7
Joined: 13 May 2016 16:57

Re: Undeclared identifier '_SDI1'

#3 Post by nikola.vasovic » 16 May 2016 10:48

Yes I did, it does not complain for _SDO1, _SCK1OUT ... a bit strange,
looks like _SDI1 is not defined?

Thanks
Nikola

nikola.vasovic
Posts: 7
Joined: 13 May 2016 16:57

Re: Undeclared identifier '_SDI1'

#4 Post by nikola.vasovic » 16 May 2016 10:55

Looks like a compiler issue, can someone from mikroelektronika team answer this please?

Regards
Nikola

p.erasmus
Posts: 3391
Joined: 05 Mar 2009 10:28

Re: Undeclared identifier '_SDI1'

#5 Post by p.erasmus » 16 May 2016 15:59

Agreed then it is a compiler issue or a definition that not in the header files
P.Erasmus
Saratov,Russia
--------------------------------------------------------------

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: Undeclared identifier '_SDI1'

#6 Post by lana.arsic » 16 May 2016 16:13

Hi nikola.vasovic,

I'm sorry, but I couldn't reproduce the same behavior.
Can you please tell me which MCU do you use?

Best regards,
Lana

nikola.vasovic
Posts: 7
Joined: 13 May 2016 16:57

Re: Undeclared identifier '_SDI1'

#7 Post by nikola.vasovic » 16 May 2016 16:17

Hi Lana,

I'm using : P24FJ128GA308

Regards
Nikola

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: Undeclared identifier '_SDI1'

#8 Post by lana.arsic » 16 May 2016 16:37

Hi nikola.vasovic,

I'm sorry for the inconvenience.
I suggest you to use Code Assistant in order to see valid identifiers.

You can try this:

Code: Select all

PPS_Mapping(23,_INPUT,_SDI1IN);
Best regards,
Lana

nikola.vasovic
Posts: 7
Joined: 13 May 2016 16:57

Re: Undeclared identifier '_SDI1'

#9 Post by nikola.vasovic » 16 May 2016 17:51

Hi Lana,

It is working now, thanks for the suggestion.

Regards
Nikola

Post Reply

Return to “mikroC PRO for PIC General”