Retargeting Example to FlipClick board

General discussion on mikroC PRO for PIC32.
Post Reply
Author
Message
josephbarrymore
Posts: 5
Joined: 27 Nov 2018 23:28

Retargeting Example to FlipClick board

#1 Post by josephbarrymore » 05 Dec 2018 00:15

Hello,

I am retargeting the Click Heart Rate 5 example to the FlipClick board. I am stuck on the error:

Code: Select all

Undeclared identifier '_log_initUartA' in expression
1) How can the uart printing be enabled for the P32MZ2048EFH100 (which is the processor on the Flip Click Board)?
I changed the file "clicker_2_PIC32MZ.h" by uncommenting this line:

Code: Select all

#define __LOG_USBUART_A

2) Are there any examples targeted to the the FlipClick board which use UART printing?

User avatar
filip.grujcic
Posts: 822
Joined: 14 May 2018 08:34

Re: Retargeting Example to FlipClick board

#2 Post by filip.grujcic » 05 Dec 2018 11:38

Hi,

There is no official board def for Flip n Click.
You will have to modify the Generic one for PIC32MZ so it matches the pins on Flip n Click.

Kind regards,
Filip Grujcic

josephbarrymore
Posts: 5
Joined: 27 Nov 2018 23:28

Re: Retargeting Example to FlipClick board

#3 Post by josephbarrymore » 05 Dec 2018 18:53

So how would I create the definitions for "_log_initUartA"?
I can't find an example of that function for any board. If it is in a pre-compiled library, could you provide the source for that function?

josephbarrymore
Posts: 5
Joined: 27 Nov 2018 23:28

Re: Retargeting Example to FlipClick board

#4 Post by josephbarrymore » 05 Dec 2018 19:01

Or which files should I modify to match the pin definitions?

User avatar
filip.grujcic
Posts: 822
Joined: 14 May 2018 08:34

Re: Retargeting Example to FlipClick board

#5 Post by filip.grujcic » 06 Dec 2018 09:49

Hi,

The _LOG_USBUART_A variable refers to USB UART A that is on some of our last generation development systems (like EasyMxPro v7 for STM32/Tiva) and you can't use it for Flip n Click because it doesn't have such UART on it.

Here is the link to programmer's manual for mikroSDK:
https://download.mikroe.com/documents/m ... l-v100.pdf

Kind regards,
Filip Grujcic

Post Reply

Return to “mikroC PRO for PIC32 General”