Hello
have a problem with Bluetooth HC05 in FC10
In FC9 it works in FC10 the compiler aborts.
the initialisation is already enough
Target folder: C:\Users\uwe\Documents\Daten\Flowcode 10
Source name: C:\Users\uwe\Documents\Daten\Flowcode 10\HC05.fcfx
Title:
Description:
Device: PIC.18F.18F26K80
Generated by: Flowcode v10.0.1.18
Date: Friday, March 17, 2023 17:25:52
Users: 1
Registriert für: SpeedPic32 (24146314)
Lizenzschlüssel:H7PVJQ
https://www.flowcode.co.uk
Using <PICkit2 PK2CMD External Power> inbuilt settings for compiler
Start des Compilers...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat "C:\Program Files (x86)\Flowcode\Compilers\picv2\" 18F26K80 "C:\Users\uwe\Documents\Daten\Flowcode 10\" "HC05"
C:\Users\uwe\Documents\Daten\Flowcode 10>REM CRC: 90CF26913586BBA787FE92D553771933222DCF72B25FEB4608E17FBD060500D8A6D7AF8357042D9E8B5C2E833010A32BE2214988CBC1BB00301ECF6745983589C569E919D18CE8A1A34BBBAC3833A58DC4965B289802A73C711B8143522C2B69111B4A5DDD1F78C950CACCEB0B5A8E521002EAF3D15174CD20633AD186EC562DBEEF6112EA5AA5CF5041CCE14E8D252BC416ECB8EC7761E4FD518969900F56C6C8F36CE7BEFFD91E73F563CBE7F64B8A69F01B3F3C0F45102C3050DA273BE4EE62F7CFE01D097A864378D9A0E5EA102BCFFF841E91EDD344372B6BE213A82E53320EB63F877F4A9A
C:\Users\uwe\Documents\Daten\Flowcode 10>REM REVISION: 2.0
C:\Users\uwe\Documents\Daten\Flowcode 10>REM GUID: 50CB4B58-ED9C-4591-8D65-A87DE810E8CC
C:\Users\uwe\Documents\Daten\Flowcode 10>REM DATE: 02\03\2023
C:\Users\uwe\Documents\Daten\Flowcode 10>REM DIR: FCD\PIC\batch\pic_xc8_comp.bat
C:\Users\uwe\Documents\Daten\Flowcode 10>"C:\Program Files (x86)\Flowcode\Compilers\picv2\bin\xc8-cc.exe" -mcpu=18F26K80 "HC05.c" -w=359,1273,1388 -fshort-float -fshort-double -std=c90 -Os
HC05.c:8306:1: error: (984) type redeclared
HC05.c:8306:1: error: (1098) conflicting declarations for variable "FCD_0fc51_gLCD_SSD1306__PrintNumber" (HC05.c:8305)
(908) exit status = 1
Error returned from [xc8.exe]
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat Hat den Fehlercode 0x1 gemeldet
Autoclose turned off
BEENDET
HC05
-
- Posts: 261
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 10, 2020 2:35 pm
- Has thanked: 36 times
- Been thanked: 17 times
-
- Valued Contributor
- Posts: 1528
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 353 times
- Been thanked: 549 times
Re: HC05
Hi
I noticed you have your display on PortA but also your Pot on AN0 (porta0).
I moved Pot to an unused pin but the issue still persists.
However your chart only initialises the display, nothing more, and when you remove the display it then compiles to Hex, so it looks related. Possibly a bug?
Regards
I noticed you have your display on PortA but also your Pot on AN0 (porta0).
I moved Pot to an unused pin but the issue still persists.
However your chart only initialises the display, nothing more, and when you remove the display it then compiles to Hex, so it looks related. Possibly a bug?
Regards
-
- Posts: 261
- Joined: Thu Dec 10, 2020 2:35 pm
- Has thanked: 36 times
- Been thanked: 17 times
Re: HC05
Hello
I have tested it in the same way. When INI is removed from the display or Bluetooth, I can compile. as soon as I add it again, the error occurs.
in FC9 the same file compiles fine so I can use all four components. When I load it, I only get the message that it was created with a newer version.
ÄFCÄ9 or FC10 With kind regards
I have tested it in the same way. When INI is removed from the display or Bluetooth, I can compile. as soon as I add it again, the error occurs.
in FC9 the same file compiles fine so I can use all four components. When I load it, I only get the message that it was created with a newer version.
ÄFCÄ9 or FC10 With kind regards
-
- Valued Contributor
- Posts: 1528
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 353 times
- Been thanked: 549 times
Re: HC05
Hi
As the display uses I2C which has Ch-1 SDA/SCL on Port-C 3/4 and the FileSD uses SPI which also has Ch-1 CLK/MISO on Port-C 3/4 you will need to use a Software alternative for one of them.
Unfortunately I've never had to implement Software channels so I can't really give much advice on which of the above would perform better on a Software channel.
Regards
As the display uses I2C which has Ch-1 SDA/SCL on Port-C 3/4 and the FileSD uses SPI which also has Ch-1 CLK/MISO on Port-C 3/4 you will need to use a Software alternative for one of them.
Unfortunately I've never had to implement Software channels so I can't really give much advice on which of the above would perform better on a Software channel.
Regards
-
- Posts: 261
- Joined: Thu Dec 10, 2020 2:35 pm
- Has thanked: 36 times
- Been thanked: 17 times
Re: HC05
Hello
I just rebuilt the project with another PIC. Again there is the same problem with the I2C GLCD SSD1306 module.
It does not compile. Always the same error
Target folder: C:\Users\uwe.kapuschinski\Documents\Flo
Source name: C:\Users\uwe.kapuschinski\Documents\Flo\Flowcode2.fcfx
Title:
Description:
Device: PIC.18F.18F27K40
Generated by: Flowcode v10.0.1.18
Date: Thursday, March 23, 2023 10:00:44
Users: 1
Registered to: SpeedPic32 (24146314)
Licence key: ZQ34CT
https://www.flowcode.co.uk
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\" 18F27K40 "C:\Users\uwe.kapuschinski\Documents\Flo\" "Flowcode2"
C:\Users\uwe.kapuschinski\Documents\Flo>REM CRC: 90CF26913586BBA787FE92D553771933222DCF72B25FEB4608E17FBD060500D8A6D7AF8357042D9E8B5C2E833010A32BE2214988CBC1BB00301ECF6745983589C569E919D18CE8A1A34BBBAC3833A58DC4965B289802A73C711B8143522C2B69111B4A5DDD1F78C950CACCEB0B5A8E521002EAF3D15174CD20633AD186EC562DBEEF6112EA5AA5CF5041CCE14E8D252BC416ECB8EC7761E4FD518969900F56C6C8F36CE7BEFFD91E73F563CBE7F64B8A69F01B3F3C0F45102C3050DA273BE4EE62F7CFE01D097A864378D9A0E5EA102BCFFF841E91EDD344372B6BE213A82E53320EB63F877F4A9A
C:\Users\uwe.kapuschinski\Documents\Flo>REM REVISION: 2.0
C:\Users\uwe.kapuschinski\Documents\Flo>REM GUID: 50CB4B58-ED9C-4591-8D65-A87DE810E8CC
C:\Users\uwe.kapuschinski\Documents\Flo>REM DATE: 02\03\2023
C:\Users\uwe.kapuschinski\Documents\Flo>REM DIR: FCD\PIC\batch\pic_xc8_comp.bat
C:\Users\uwe.kapuschinski\Documents\Flo>"C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\bin\xc8-cc.exe" -mcpu=18F27K40 "Flowcode2.c" -w=359,1273,1388 -fshort-float -fshort-double -std=c90 -Os
Flowcode2.c:7952:1: error: (984) type redeclared
Flowcode2.c:7952:1: error: (1098) conflicting declarations for variable "FCD_0cc51_gLCD_SSD1306_i2c1__PrintNumber" (Flowcode2.c:7951)
(908) exit status = 1
Error returned from [xc8.exe]
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat reported error code 0x1
Autoclose turned off
FINISHED
I put the error again new
Thanks a lot
I just rebuilt the project with another PIC. Again there is the same problem with the I2C GLCD SSD1306 module.
It does not compile. Always the same error
Target folder: C:\Users\uwe.kapuschinski\Documents\Flo
Source name: C:\Users\uwe.kapuschinski\Documents\Flo\Flowcode2.fcfx
Title:
Description:
Device: PIC.18F.18F27K40
Generated by: Flowcode v10.0.1.18
Date: Thursday, March 23, 2023 10:00:44
Users: 1
Registered to: SpeedPic32 (24146314)
Licence key: ZQ34CT
https://www.flowcode.co.uk
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\" 18F27K40 "C:\Users\uwe.kapuschinski\Documents\Flo\" "Flowcode2"
C:\Users\uwe.kapuschinski\Documents\Flo>REM CRC: 90CF26913586BBA787FE92D553771933222DCF72B25FEB4608E17FBD060500D8A6D7AF8357042D9E8B5C2E833010A32BE2214988CBC1BB00301ECF6745983589C569E919D18CE8A1A34BBBAC3833A58DC4965B289802A73C711B8143522C2B69111B4A5DDD1F78C950CACCEB0B5A8E521002EAF3D15174CD20633AD186EC562DBEEF6112EA5AA5CF5041CCE14E8D252BC416ECB8EC7761E4FD518969900F56C6C8F36CE7BEFFD91E73F563CBE7F64B8A69F01B3F3C0F45102C3050DA273BE4EE62F7CFE01D097A864378D9A0E5EA102BCFFF841E91EDD344372B6BE213A82E53320EB63F877F4A9A
C:\Users\uwe.kapuschinski\Documents\Flo>REM REVISION: 2.0
C:\Users\uwe.kapuschinski\Documents\Flo>REM GUID: 50CB4B58-ED9C-4591-8D65-A87DE810E8CC
C:\Users\uwe.kapuschinski\Documents\Flo>REM DATE: 02\03\2023
C:\Users\uwe.kapuschinski\Documents\Flo>REM DIR: FCD\PIC\batch\pic_xc8_comp.bat
C:\Users\uwe.kapuschinski\Documents\Flo>"C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\bin\xc8-cc.exe" -mcpu=18F27K40 "Flowcode2.c" -w=359,1273,1388 -fshort-float -fshort-double -std=c90 -Os
Flowcode2.c:7952:1: error: (984) type redeclared
Flowcode2.c:7952:1: error: (1098) conflicting declarations for variable "FCD_0cc51_gLCD_SSD1306_i2c1__PrintNumber" (Flowcode2.c:7951)
(908) exit status = 1
Error returned from [xc8.exe]
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat reported error code 0x1
Autoclose turned off
FINISHED
I put the error again new
Thanks a lot