Compiler Error mikrobus_gpioInit on PICPLC16 V7a

General discussion on mikroBasic PRO for PIC.
Post Reply
Author
Message
jwolf@benningtonmarine.com
Posts: 1
Joined: 26 Sep 2023 15:13

Compiler Error mikrobus_gpioInit on PICPLC16 V7a

#1 Post by jwolf@benningtonmarine.com » 26 Sep 2023 15:30

I am trying to get Click boards working with PICPLC16 V7a, notably Rs-232 and RS-485 Click boards. I always get the flowing errors:

All of the "mikrobus" items are underlined, and the compiler reports they were "undeclared".

sub procedure system_init()
mikrobus_gpioInit(_MIKROBUS1, _MIKROBUS_INT_PIN, _GPIO_OUTPUT)
mikrobus_gpioInit(_MIKROBUS1, _MIKROBUS_CS_PIN, _GPIO_OUTPUT)
mikrobus_uartInit(_MIKROBUS1, @RS4856_UART_CFG[0])
mikrobus_logInit(_LOG_USBUART, 9600)
Delay_ms(100)
end sub

Please help!

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: Compiler Error mikrobus_gpioInit on PICPLC16 V7a

#2 Post by IvanJeremic » 28 Sep 2023 11:35

Hi,

The problem here is that there is no MikroBUS BDF API library for this board, so you will have to write one on your own if you want to use it:
https://www.mikroe.com/blog/mikrosdk-bo ... tion-files

You can also try using Necto Studio (https://www.mikroe.com/necto), this board is supported there and you can find all the examples for our click boards in the compiler, also the compiler is free as long as you are not using it for commercial purposes.

Regards,

Ivan.

Post Reply

Return to “mikroBasic PRO for PIC General”