PIC18F15Q41

For general Flowcode discussion that does not belong in the other sections.
medelec35
Matrix Staff
Posts: 2132
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 660 times
Been thanked: 720 times

Re: PIC18F15Q41

Post by medelec35 »

Hi Dirk.
I 'm not sure when it will be ready, as its for other target devices as well.
It will be done as soon as possible.
Martin

DirkB
Posts: 94
Joined: Thu Dec 10, 2020 3:55 pm
Has thanked: 1 time
Been thanked: 4 times

Re: PIC18F15Q41

Post by DirkB »

Hi Martin,
PWM cannot be mapped to port C, only to ports A and B. Port C is not displayed. I have ported a project to the 18F15Q41. I2C software then gives an error. If I create a new project with the 18F15Q41, the compiler runs without errors. What can this be?

Best regards
Dirk

DirkB
Posts: 94
Joined: Thu Dec 10, 2020 3:55 pm
Has thanked: 1 time
Been thanked: 4 times

Re: PIC18F15Q41

Post by DirkB »

Hello,

any news about I2C?

medelec35
Matrix Staff
Posts: 2132
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 660 times
Been thanked: 720 times

Re: PIC18F15Q41

Post by medelec35 »

Hello.
I2C is not an easy fix.
We need to allocate time for this.
We do plan on fixing it as soon as we can.
As for the PWM, I have attached a temporary fix.


For the fcdx file:
If you browse to this location using File Explorer, it's hidden by default so just paste the link into your address bar.

Code: Select all

%ProgramData%\MatrixTSL\FlowcodeV10\FCD\PIC\
Replace the original file with the attached version.
If Flowcode is already open, then you will need to reload your project.
If you run any component updates, then the fcdx you added will be overwritten.

For the fcpx file.
the path is

Code: Select all

%ProgramData%\MatrixTSL\FlowcodeV10\Components\
I Would suggest you close Flowcode before adding the files.
Attachments
cal_pwm.fcpx
(12.96 KiB) Downloaded 86 times
18F15Q41.fcdx
(51.91 KiB) Downloaded 78 times
Martin

DirkB
Posts: 94
Joined: Thu Dec 10, 2020 3:55 pm
Has thanked: 1 time
Been thanked: 4 times

Re: PIC18F15Q41

Post by DirkB »

Hi Martin,

When can we expect full support for I2C and Midi hardware functionality? With software functionality alone, there are no interrupts or other necessary functions.

regards

DirkB
Posts: 94
Joined: Thu Dec 10, 2020 3:55 pm
Has thanked: 1 time
Been thanked: 4 times

Re: PIC18F15Q41

Post by DirkB »

Hi Ben, Hi Steve,
here's a comment about the I2C component to bump up the thread and make sure it's not forgotten. I'm including Ben's post so that it's clear what this is about.

Thanks
Hello,

I think we've looked at this I2C before and ran into issues however on having another look I've spotted more information in the form of additional helper manuals from Microchip and so I'm happy to have another go. Just seeing if I can get my hands on some hardware to help with the testing.

BenR
Matrix Staff
Posts: 1980
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 519 times
Been thanked: 707 times

Re: PIC18F15Q41

Post by BenR »

Hi Dirk,

We're certainly making progress with I2C but not quite there just yet.

What's the problem with MIDI?

DirkB
Posts: 94
Joined: Thu Dec 10, 2020 3:55 pm
Has thanked: 1 time
Been thanked: 4 times

Re: PIC18F15Q41

Post by DirkB »

Hello Ben,

Midi seems OK, the compiler runs without errors. PWM too. I will test it with a chip next week and report back.

Many thanks

DirkB
Posts: 94
Joined: Thu Dec 10, 2020 3:55 pm
Has thanked: 1 time
Been thanked: 4 times

Re: PIC18F15Q41

Post by DirkB »

Hello Ben,

it looks very good. I2C, midi and pwm hardware now compiles without errors. However, there is a problem with the eeProm.
Could you please take another look at it? Then I will run the test with the chip and post the results here.
One more question:
What is the flash eprom component? With this component, the compiler also runs without errors.

Thank you

Code: Select all

C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_EEPROM.c:321:19: error: (255) not a member of the struct/union ""
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_EEPROM.c:321:22: error: (182) illegal conversion between types
int -> volatile union S9
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_EEPROM.c:326:16: error: (255) not a member of the struct/union ""
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_EEPROM.c:326:19: error: (182) illegal conversion between types
int -> volatile union S14
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_EEPROM.c:333:19: error: (255) not a member of the struct/union ""
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_EEPROM.c:333:22: error: (182) illegal conversion between types
int -> volatile union S9
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_EEPROM.c:347:19: error: (255) not a member of the struct/union ""
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_EEPROM.c:347:22: error: (182) illegal conversion between types
int -> volatile union S9
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_EEPROM.c:352:1: error: (192) undefined identifier "NVMCON2"
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_EEPROM.c:354:16: error: (255) not a member of the struct/union ""
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_EEPROM.c:354:19: error: (182) illegal conversion between types
int -> volatile union S14
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_EEPROM.c:357:23: error: (255) not a member of the struct/union ""
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_EEPROM.c:357:27: error: (207) simple type required for "=="
NOT volatile union S14
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_EEPROM.c:361:19: error: (255) not a member of the struct/union ""
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_EEPROM.c:361:22: error: (182) illegal conversion between types
int -> volatile union S9
(908) exit status = 1

Error returned from [xc8.exe]

DirkB
Posts: 94
Joined: Thu Dec 10, 2020 3:55 pm
Has thanked: 1 time
Been thanked: 4 times

Re: PIC18F15Q41

Post by DirkB »

Hello Ben,
I forgot to mention that the compiler runs without errors with the PIC18F05Q41 and the EEPROM component.

Post Reply