asked about temp hum 3 click in fusion for ARM v8

mikroC, mikroBasic and mikroPascal for PRO ARM® MCUs, supporting STM32, Tiva, Kinetis, & CEC devices
Author
Message
Tia300104
Posts: 14
Joined: 31 Mar 2020 02:28

asked about temp hum 3 click in fusion for ARM v8

#1 Post by Tia300104 » 08 Apr 2020 03:56

I'm trying to use temp hum 3 click with fusion for ARM v8, but it always fails. Error statement ' undeclare identifier _LOG_USBUART_A...Could anyone help me to solve it.....Thanks a lot

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

Re: asked about temp hum 3 click in fusion for ARM v8

#2 Post by jovana.medakovic » 08 Apr 2020 09:25

Hello,

This example is written for EasyMx PRO v7 for STM32 development board which has two USB UART ports (USB UART A and USB UART B).
Fusion for ARM v8 has one port, so in the code, you need to write _LOG_USBUART instead of _LOG_USBUART_A.

Kind regards,
Jovana

Tia300104
Posts: 14
Joined: 31 Mar 2020 02:28

Re: asked about temp hum 3 click in fusion for ARM v8

#3 Post by Tia300104 » 09 Apr 2020 13:48

thank you...it's work

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

Re: asked about temp hum 3 click in fusion for ARM v8

#4 Post by jovana.medakovic » 10 Apr 2020 09:23

Hi,

You're welcome.

Kind regards,
Jovana

Tia300104
Posts: 14
Joined: 31 Mar 2020 02:28

Re: asked about bluetooth click in fusion for ARM v8

#5 Post by Tia300104 » 11 Apr 2020 11:58

I use Bluetooth Click by using Mikromedia dspic33EP .... Microbus BDF API that I use is Mikromedia Shield dspIC33EP, but I still find the same thing....305 324 Undeclared identifier '_log_initUart' in expression mikromedia_shield_dsPIC33EP.c............308 324 Undeclared identifier '_log_initUartA' in expression mikromedia_shield_dsPIC33EP.c.............311 324 Undeclared identifier '_log_initUartB' in expression mikromedia_shield_dsPIC33EP.c...........what do I have to do.?

Tia300104
Posts: 14
Joined: 31 Mar 2020 02:28

Re: asked about temp hum 3 click in fusion for ARM v8

#6 Post by Tia300104 » 11 Apr 2020 12:00

Sorry..not in fusion for ARM v8 but in mikromedia workstation V7 for dspIC33EP

ACPUK
Posts: 45
Joined: 24 Apr 2018 00:29

Re: asked about temp hum 3 click in fusion for ARM v8

#7 Post by ACPUK » 12 Apr 2020 17:05

If you are querying for the dsPIC I would re-post in the appropriate compiler as this is clearly not for ARM Pro.
We don't know what Compiler you are using.
Is this an example you are trying? If it is, state the example.
How have you configured the Peripheral Pin Select for UART?

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

Re: asked about temp hum 3 click in fusion for ARM v8

#8 Post by jovana.medakovic » 13 Apr 2020 13:08

Hello,

The board def is written for mikroBUS Shield for mikromedia which does not have USB UART port like mikromedia workStation v7, because of that it is not defined and you get this error.
Bluetooth click board uses UART communication, so if you place click on any mikroBUS on mikromedia workStation v7, G4.4 and G4.5 (RD3 and RD1) pins are used for UART communication, therefore you cannot use them for logging data on the terminal.

On the following link, you can find pinout of your mikromedia:
https://download.mikroe.com/documents/s ... t-v100.pdf
You can remap UART using some of Digital I/O pins and instead mikrobus_logInit function, you can use UART_Init and UART_Write_Text and connect some USB to UART converter on these pins with the mikromedia workStation v7.

Kind regards,
Jovana

Tia300104
Posts: 14
Joined: 31 Mar 2020 02:28

Re: asked about temp hum 3 click in fusion for ARM v8

#9 Post by Tia300104 » 13 Apr 2020 13:33

Thank you, I will try....

Tia300104
Posts: 14
Joined: 31 Mar 2020 02:28

Re: asked about temp hum 3 click in fusion for ARM v8

#10 Post by Tia300104 » 23 Apr 2020 06:47

Result of temp-hum 3 click that I read in hyperterminal is Temperature : 30.93872 and Huminidy : -28.80249. Why humidity always negative...Thank you...

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

Re: asked about temp hum 3 click in fusion for ARM v8

#11 Post by jovana.medakovic » 23 Apr 2020 11:26

Hi,

Can you zip and send me your project for review?

Kind regards,
Jovana

Tia300104
Posts: 14
Joined: 31 Mar 2020 02:28

Re: asked about temp hum 3 click in fusion for ARM v8

#12 Post by Tia300104 » 24 Apr 2020 01:16

Here is the file...TempHum3.zip
Attachments
TempHum3.zip
(419.48 KiB) Downloaded 107 times

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

Re: asked about temp hum 3 click in fusion for ARM v8

#13 Post by jovana.medakovic » 24 Apr 2020 09:14

Hello,

It all looks good.
I will test it on Monday and let you know about the results.

Kind regards,
Jovana

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

Re: asked about temp hum 3 click in fusion for ARM v8

#14 Post by jovana.medakovic » 27 Apr 2020 10:52

Hello,

First, try to load hex file from the attachment and let me know the result.
If it works fine, try to program the project from the attachment and let me know if it works.

Kind regards,
Jovana
Attachments
Hex.zip
(11.95 KiB) Downloaded 106 times
TempHum3Click.zip
(398.78 KiB) Downloaded 110 times

Tia300104
Posts: 14
Joined: 31 Mar 2020 02:28

Re: asked about temp hum 3 click in fusion for ARM v8

#15 Post by Tia300104 » 29 Apr 2020 04:38

I use both file, result still negative for humanidy

Post Reply

Return to “ARM PRO Compilers”