issue using LCD with I2C backpack
Posted: Fri Nov 29, 2024 3:45 am
After a break I have comeback to flowcode, upgraded to V10 . I dug out an old board I'd designed which uses a 16F690. I added the usual LED as all i wanted to do is test the ICSP was working and it seemed fine. So I then decided to try a 20x4 LCD (with I2C backpack) just wrote my name on it. I changed the address to 27. When I tried to program it cane back with this:
Using <PICkit2 PK2CMD External Power> inbuilt settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat "C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\" 16F690 "C:\Users\peter\Documents\flowcode\" "PICBOT test"
C:\Users\peter\Documents\flowcode>REM CRC: 90CF26913586BBA787FE92D553771933222DCF72B25FEB4608E17FBD060500D8A6D7AF8357042D9E8B5C2E833010A32BE2214988CBC1BB00301ECF6745983589807C95A2F1C2769D70BE3AA931A3F48B38E582CFD8E4085DD8DA408700E5719BB0FE44B686FBBF4050CACCEB0B5A8E521002EAF3D15174CD20633AD186EC562DBEEF6112EA5AA5CF5041CCE14E8D252BC416ECB8EC7761E4FD518969900F56C6C8F36CE7BEFFD91E73F563CBE7F64B8A69F01B3F3C0F45102C3050DA273BE4EE1468065B86E00B2487B7DE8D413948019019AFB8908E26D0AE50ACE3D7DDA2D28E9421B336835453
C:\Users\peter\Documents\flowcode>REM REVISION: 3.0
C:\Users\peter\Documents\flowcode>REM GUID: 50CB4B58-ED9C-4591-8D65-A87DE810E8CC
C:\Users\peter\Documents\flowcode>REM DATE: 09\01\2024
C:\Users\peter\Documents\flowcode>REM DIR: FCD\PIC\batch\pic_xc8_comp.bat
C:\Users\peter\Documents\flowcode>"C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\bin\xc8-cc.exe" -mcpu=16F690 "PICBOT test.c" -w=359,1273,1388 -fno-short-float -fno-short-double -std=c90 -Os
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_I2C.c:268:99: error: (103) #error: "This chip does not have Master I2C capability or Flowcode does not currently support it"
(908) exit status = 1
Error returned from [xc8.exe]
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat reported error code 0x1
I then spotted you can also set the address in the component macro but still no joy. I went back to the LED to make sure that was OK and it was.
So I am now wondering is there an issue with the component in flowcode (unlikely) or more likely what schoolboy error have I made?
Any help always appreciated
Pete
Using <PICkit2 PK2CMD External Power> inbuilt settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat "C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\" 16F690 "C:\Users\peter\Documents\flowcode\" "PICBOT test"
C:\Users\peter\Documents\flowcode>REM CRC: 90CF26913586BBA787FE92D553771933222DCF72B25FEB4608E17FBD060500D8A6D7AF8357042D9E8B5C2E833010A32BE2214988CBC1BB00301ECF6745983589807C95A2F1C2769D70BE3AA931A3F48B38E582CFD8E4085DD8DA408700E5719BB0FE44B686FBBF4050CACCEB0B5A8E521002EAF3D15174CD20633AD186EC562DBEEF6112EA5AA5CF5041CCE14E8D252BC416ECB8EC7761E4FD518969900F56C6C8F36CE7BEFFD91E73F563CBE7F64B8A69F01B3F3C0F45102C3050DA273BE4EE1468065B86E00B2487B7DE8D413948019019AFB8908E26D0AE50ACE3D7DDA2D28E9421B336835453
C:\Users\peter\Documents\flowcode>REM REVISION: 3.0
C:\Users\peter\Documents\flowcode>REM GUID: 50CB4B58-ED9C-4591-8D65-A87DE810E8CC
C:\Users\peter\Documents\flowcode>REM DATE: 09\01\2024
C:\Users\peter\Documents\flowcode>REM DIR: FCD\PIC\batch\pic_xc8_comp.bat
C:\Users\peter\Documents\flowcode>"C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\bin\xc8-cc.exe" -mcpu=16F690 "PICBOT test.c" -w=359,1273,1388 -fno-short-float -fno-short-double -std=c90 -Os
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_I2C.c:268:99: error: (103) #error: "This chip does not have Master I2C capability or Flowcode does not currently support it"
(908) exit status = 1
Error returned from [xc8.exe]
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat reported error code 0x1
I then spotted you can also set the address in the component macro but still no joy. I went back to the LED to make sure that was OK and it was.
So I am now wondering is there an issue with the component in flowcode (unlikely) or more likely what schoolboy error have I made?
Any help always appreciated
Pete