click, error 340

Post Reply
Author
Message
xallitic47
Posts: 25
Joined: 07 Dec 2020 23:59

click, error 340

#1 Post by xallitic47 » 12 Apr 2024 04:56

I have installed some click cards such as Led_Ring_R click, 7x10 Y click and GNSS 4 click and I get the same error (error 340) I don't know how to solve it.
error.png
error.png (114.82 KiB) Viewed 155 times
I have doubts about Mikrobus. I have version 1.0 installed and the EasyPicV7 connectivity development board.
On this Board, I found only mikrobus available for the pic18f45k22.
Is it possible to use another microcontroller such as pic18f4620?
The manual does not give details about these compatibilities.

Sos.
Thanks

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

Re: click, error 340

#2 Post by IvanJeremic » 12 Apr 2024 09:35

Hi,

You need to find the path to the EasyPIC v7 BDF API.

Go to Project and Edit Search Paths.
Seacrh1.png
Seacrh1.png (29.76 KiB) Viewed 149 times
Now you need to click on the three dots and add the Uses file in Projects MikroBus BDF API folder (for both c and h).
Seacrh2.png
Seacrh2.png (26.23 KiB) Viewed 149 times
Seacrh3.png
Seacrh3.png (20.45 KiB) Viewed 149 times
Click APPLY and then OK.

Regards,

Ivan.

xallitic47
Posts: 25
Joined: 07 Dec 2020 23:59

Re: click, error 340

#3 Post by xallitic47 » 13 Apr 2024 22:49

Thank you in advance for your help. That's OK, it works. Nice.

I have a lot of questions.

The first one:
Hi, I’m trying the example from libstock for Click_GNSS 4. The example says "MCU : P18F87K22, Dev, Board :EasyPicPRO V7", but I have Dev. Board EasyPic V7 Connectivity with Pic 45K22.

In the figures show some attempts where I change the checkbox in mikroBus BDF API and I get different errors.

The first figure shows the errors I got because there is not enough memory.

In the second figure I got 'Undeclared identifier mikrobus_logWrite'. But 'mikrobus_logWrite' is not in mikroBUS API BDF.

gnss4.png
gnss4.png (116.53 KiB) Viewed 130 times
gnss4 b.png
gnss4 b.png (118.26 KiB) Viewed 130 times

The second one:
In another case I also got the error Undeclared identifier 'mikrobus_uartInit'. I have checked the pld file and ENABLE_LOG and ENABLE_UART are found there.

The last one:
And the biggest question I have. in Library Manager, -> mikroBUS BDF API there are not all the commands such as mikrobus_uartInit and mikrobus_logWrite
All commands should be in the Mikrobus BDF API. That depends on the support on the development board, on the Microntroller. I don't understand that.

Thank you in advance for your help.
Attachments
gnss4c.png
gnss4c.png (107.33 KiB) Viewed 130 times

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

Re: click, error 340

#4 Post by IvanJeremic » 15 Apr 2024 08:42

Hi,

When building try to use Rebuild all sources, also try downloading the mikroSDK library.
https://libstock.mikroe.com/projects/view/2249/mikrosdk

You will need to Package Manager to install the library, you can also use the Package Manager to install the library for an MCU that might not be covered by the library, you just find the MCU in the list and check it.
https://www.mikroe.com/package-manager

The libraries will not work for every MCU.

The not enough RAM just means that your MCU does not have enough RAM for the given example, you can try to remove some parts of the example to make it fit.

Regards,

Ivan.

Post Reply

Return to “Click Boards release”