Spectral3 Click on Mikromedia P24EP512GU810

General discussion on mikroC PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
marin
Posts: 3
Joined: 04 Aug 2021 15:21

Spectral3 Click on Mikromedia P24EP512GU810

#1 Post by marin » 08 Aug 2021 22:31

Hi,

I'm trying the example from LibStock (written for P33FJ256GP710A & EasyPIC Fusion v7) via Mikro SDK to get to work on Mikromedia P24EP512GU810 + USB UART 2 Click.

When I press Alt+F9, Spectral 3 Click stop at _LOG_USBUART_B and the same problem is with example for Spectrometer Click, it also stop at _LOG_USBUART_A.

I'm asking you for help how to overcome missing LOG_USBUART?

Regards,
Marin

Image

User avatar
Tanja_Kovacevic
mikroElektronika team
Posts: 98
Joined: 09 Aug 2021 11:39

Re: Spectral3 Click on Mikromedia P24EP512GU810

#2 Post by Tanja_Kovacevic » 09 Aug 2021 15:11

Hi Marin,

You did everything right, but the problem is that mikromedia doesn't have a _LOG_USBUART_A nor _LOG_USBUART_B.

Since you want to use USB UART 2 Click, you can place it on MIKROBUS_2 (if Spectral 3 Click is on MIKROBUS_1)
and write that in code instead of _LOG_USBUART (see the picture below)

The same goes for Spectrometer Click.

And don't forget to load the right scheme for your MCU (using the Edit Project option).


Kind regards,
Tanja.
Attachments
Capture.PNG
Capture.PNG (170.54 KiB) Viewed 1329 times

marin
Posts: 3
Joined: 04 Aug 2021 15:21

Re: Spectral3 Click on Mikromedia P24EP512GU810

#3 Post by marin » 11 Aug 2021 13:00

Thank you Tanja so much for right solution and quick answer.
I've successfully generate both .hex file, for Spectral 3 and for Spectrometer.

Seems that I still need your instructions to get data from device.

Readings for Spectral 3 via Uart are strange (as you can see on image down) and for Spectrometer there are no readings at all. Spectr(al 3 or meter are in Mikrobus 1 and UART is all time in Mikrobus 2 connected.

Please, tell me what I missing,

Regards,
Marin

Image

User avatar
Tanja_Kovacevic
mikroElektronika team
Posts: 98
Joined: 09 Aug 2021 11:39

Re: Spectral3 Click on Mikromedia P24EP512GU810

#4 Post by Tanja_Kovacevic » 12 Aug 2021 15:48

You are welcome, Marin.

You have to open the Edit Project option and load the right scheme for your MCU.
When you press the Load button you can choose the file named:
P24EP512GU810_8MHz.cfgsch

And please send us the schematic of how you connected those two click boards with your Mikromedia,
so we can check the interrupt settings for your configuration.

You can write us at: support[att]mikroe[dot]com

Kind regards,
Tanja

marin
Posts: 3
Joined: 04 Aug 2021 15:21

Re: Spectral3 Click on Mikromedia P24EP512GU810

#5 Post by marin » 12 Aug 2021 17:13

Dear Tanja,

I did in Edit Project switch from "Mikromedia P24EP512GU810EP_8MHz" to "P24EP512GU810_8MHz" and mikroC compiler didn't refuse it, bur the results are the same. It shows two unknown signs.

I'll send you the mail as you instructed me.

Thank you again.

Regards,
Marin

Post Reply

Return to “mikroC PRO for dsPIC30/33 and PIC24 General”