PIC18F15Q41

For general Flowcode discussion that does not belong in the other sections.
DirkB
Posts: 78
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 3:55 pm
Has thanked: 1 time
Been thanked: 4 times

Flowcode v10 PIC18F15Q41

Post by DirkB »

Hello Martin, hello Ben,

anny news about the PIC18F04/05/06/14/15/16Q41 family?
As as already written, it is very urgent for some of my company's
products!

thanks
Dirk

medelec35
Matrix Staff
Posts: 1913
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 619 times
Been thanked: 644 times

Re: Suggestions for new microcontroller support

Post by medelec35 »

Hi Dirk.
UART, PWM and interrupts work well.
There is an issue with I2C so you will need to use I2C in SW mode.
Have you tried using 18F15Q41?
Martin

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

Re: Suggestions for new microcontroller support

Post by DirkB »

Hello Martin,

yes, but there are 2 error messages. I have used the uart as midiinterface. Is that a problem?

::: error: (1504) the PIC18 extended instruction set was enabled but is not supported by this compiler
(908) exit status = 1

Error returned from [xc8.exe]

And,
I can't compile without midi components. I have extendet cpu disabled!

C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_UART.c:585:17: error: (255) not a member of the struct/union ""
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_UART.c:585:20: error: (182) illegal conversion between types
int -> volatile union S1746
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_UART.c:1146:28: error: (255) not a member of the struct/union ""
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_UART.c:1146:29: error: (182) illegal conversion between types
volatile union S1770 -> unsigned char
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_UART.c:1146:29: error: (181) non-scalar types can't be converted to other types
(908) exit status = 1

Error returned from [xc8.exe]


In the simulation the components work!

Dirk

medelec35
Matrix Staff
Posts: 1913
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 619 times
Been thanked: 644 times

Flowcode v10 PIC18F15Q41

Post by medelec35 »

Hi Dirk, before I will investigate,
Can you Run component updates but change Files in-use to Full database.
Then reload your project and try again.
If you still have an issue then can you attach your project .fcf and . c files.
Martin

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

Re: Suggestions for new microcontroller support

Post by DirkB »

Hello Martin,

here is my test project. An update has yielded nothing.

Thank you
Dirk
Attachments
Test18F15Q41.h
(10.11 KiB) Downloaded 10 times
Test18F15Q41.c
(48.94 KiB) Downloaded 16 times
Test18F15Q41.fcfx
(16.53 KiB) Downloaded 12 times

medelec35
Matrix Staff
Posts: 1913
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 619 times
Been thanked: 644 times

Re: Suggestions for new microcontroller support

Post by medelec35 »

Hi Dirk.
I have moved some of the latests posts to the general sections as was hijacking Suggestions for new microcontroller support section.

Can you try the attached.
PWM is working for me.
Attachments
Test18F15Q41 v2.fcfx
(17.27 KiB) Downloaded 16 times
Martin

medelec35
Matrix Staff
Posts: 1913
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 619 times
Been thanked: 644 times

Re: PIC18F15Q41

Post by medelec35 »

Hi Dirk.
Ben has sorted the SPI for q41 devices.
I2C still needs to be software mode.
PWM, Timers, UART and interrupts work.
Anything else?
Martin

medelec35
Matrix Staff
Posts: 1913
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 619 times
Been thanked: 644 times

Re: PIC18F15Q41

Post by medelec35 »

Hi Dirk.
DirkB wrote:
Fri Mar 28, 2025 4:28 pm
Unfortunately there is an error message.

::: error: (1504) the PIC18 extended instruction set was enabled but is not supported by this compiler
(908) exit status = 1

Where can I switch it on and off? Where can I switch it on and off? I have not switched it on. And can I expect
the PIC18F04/05/06 - 14/15/16Q41 family to be ready soon?

Thanks

Dirk
I will See if I can sort this issue on Monday, when I am next at work
Martin

medelec35
Matrix Staff
Posts: 1913
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 619 times
Been thanked: 644 times

Re: PIC18F15Q41

Post by medelec35 »

Hi Dirk.
Configuration setting should now be working well.
The fdcx updates have now been push on to the database and are available to download via Help >Library Updates. Change Files in-use to Full database.
Martin

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

Re: PIC18F15Q41

Post by DirkB »

Hi Martin,

with UART, PWM and i2c software the compiler now runs without errors.
Is i2c software slower if only data is sent and when will i2c hardware be ready?

many thanks
Dirk

Post Reply