Hello!
It seems that I can't use I2C on the hardware support of the pic, I get an error when compiling. If I select I2C software, it compiles correctly, but the display moves very slowly. In FC8 this doesn't happen, but I can't use the fonts from FC10...
I'm using the pic 18F26K20, with the clock and internal mclr, at a frequency of 64 MHz.
I appreciate any help!
I2C Chanel Err (SOLVED)
-
- Posts: 9
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 9:21 pm
- Location: Romania
- Has thanked: 7 times
I2C Chanel Err (SOLVED)
- Attachments
-
- test_blue_10_TMP.fcfx
- (16.65 KiB) Downloaded 21 times
-
- err.png (238.71 KiB) Viewed 490 times
-
- I2C_Ch1.png (285.43 KiB) Viewed 490 times
Last edited by bercioiu on Tue Aug 05, 2025 4:18 pm, edited 1 time in total.
-
- Matrix Staff
- Posts: 2080
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 642 times
- Been thanked: 697 times
Re: I2C Chanel Err
Hello.
I have fixed the CAL, so you can now use I2C on 18F26K20.
Hopefully I have not broken any other targets in the process.
Browse to this location using file explorer, it's hidden by default so just paste the link into your address bar.
Place the attached C file.
You will need to reload your project file for the fix to take place.
If you run any library updates, then the PIC_CAL_I2C.c you added will be overwritten, so it will stop working again (unless the PIC_CAL_I2C.c update has been pushed).
I have fixed the CAL, so you can now use I2C on 18F26K20.
Hopefully I have not broken any other targets in the process.
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\CAL\PIC
You will need to reload your project file for the fix to take place.
If you run any library updates, then the PIC_CAL_I2C.c you added will be overwritten, so it will stop working again (unless the PIC_CAL_I2C.c update has been pushed).
- Attachments
-
- PIC_CAL_I2C.c
- (31.34 KiB) Downloaded 31 times
Martin
Re: I2C Chanel Err
Thank you, Martin!
You helped me for the thousandth time! Compiles correctly now.
You helped me for the thousandth time! Compiles correctly now.