For general Flowcode discussion that does not belong in the other sections.
			
	
		
		
			
				
																			
								howard123 							 
									
		Posts:  11 http://meble-kuchenne.info.pl Joined:  Mon Oct 24, 2022 12:27 pmLocation:  Cape TownHas thanked:  1 time  
		
						
						
													
							
						
									
						Post 
					 
								by howard123  Sat Oct 29, 2022 1:21 pm 
			
			
			
			
			Hi
I had FC7 and was using it to load to hardware which had worked successfully. I subsequently used FC9 on trial with the same code and that also worked fine on my hardware. At the end of the trial, I reverted to using the same file on FC7 and it then had I2C and loop problems, and possibly more issues, on hardware. The properties seem to be correct.
No sure if any of the above is relevant but I bought FC9 and using the same file I have a compiling problem. I am not sure whether I should change compiler settings to be the same as my FC7, as FC9 (trial version) had worked before without changes. The path and filenames are as before.
Sorry I haven't figured out where to find the FC revision but it was the latest version yesterday.
Thanks Howard
Code: Select all 
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\PIC\batch\pic_xc8_comp.bat  "C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\" 18F47K40 "C:\Users\HowardB\Desktop\SHW master tests\" "SHC Master  NEW E74 FC9 47K"
C:\Users\HowardB\Desktop\SHW master tests>REM CRC: 90CF26913586BBA787FE92D553771933222DCF72B25FEB4608E17FBD060500D8A6D7AF8357042D9E8B5C2E833010A32BE2214988CBC1BB00301ECF6745983589FE0D8D4660AC0314F98C28BCA92AF856EFD1DB5B777140BC4D00059D79589982F2C26BF78BFC32C650CACCEB0B5A8E521002EAF3D15174CD20633AD186EC562DBEEF6112EA5AA5CF5041CCE14E8D252BC416ECB8EC7761E4FD518969900F56C6C8F36CE7BEFFD91E73F563CBE7F64B8A69F01B3F3C0F45102C3050DA273BE4EE1BF2A9420263CDAEEC22F549213B2E20A6A0704CBC762DED 
C:\Users\HowardB\Desktop\SHW master tests>REM REVISION: 1.0 
C:\Users\HowardB\Desktop\SHW master tests>REM GUID: 50CB4B58-ED9C-4591-8D65-A87DE810E8CC 
C:\Users\HowardB\Desktop\SHW master tests>REM DATE: 29\03\2021 
C:\Users\HowardB\Desktop\SHW master tests>REM DIR: FCD\PIC\batch\pic_xc8_comp.bat 
C:\Users\HowardB\Desktop\SHW master tests>"C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\bin\xc8.exe" --chip=18F47K40  "SHC Master  NEW E74 FC9 47K.c" --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32 
C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\pic\bin\picc18 --chip=18F47K40 SHC Master  NEW E74 FC9 47K.c --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
Microchip MPLAB XC8 C Compiler V2.10
Build date: Jul 30 2019
Part Support Version: 2.10
Copyright (C) 2019 Microchip Technology Inc.
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\PIC\PIC_CAL_UART.c:
   327:		#define MX_SOFT_BAUD_X (1000000 / MX_UART_BAUD_X) - SW_OFFSET
	                                                                    ^ (111) redefining preprocessor macro "MX_SOFT_BAUD_X" (C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\PIC\PIC_CAL_UART.c: 361) (warning)
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\PIC\PIC_CAL_I2C.c: FC_CAL_I2C_Master_Init_1()
   261:	 = 16;
	 ^ (195) expression syntax
   262:	 = 15;
	 ^ (195) expression syntax
   336:	tris |= (1 << (0));
	^ (192) undefined identifier "tris"
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\PIC\PIC_CAL_I2C.c: FC_CAL_I2C_Slave_Init_1()
   650:	 = 16;
	 ^ (195) expression syntax
(908) exit status = 1
(908) exit status = 1
Error returned from [xc8.exe]
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\PIC\batch\pic_xc8_comp.bat reported error code 0x1
Autoclose turned off
FINISHED
			
						 
		 
				
		
		 
	 
	
		
		
			
				
																			
								medelec35 							 
						Matrix Staff 			
		Posts:  2172 Joined:  Wed Dec 02, 2020 11:07 pmHas thanked:  662 times Been thanked:  735 times  
		
						
						
													
							
						
									
						Post 
					 
								by medelec35  Sat Oct 29, 2022 2:55 pm 
			
			
			
			
			Hi Howard.
			
			
									
						
			Martin
						 
		 
				
		
		 
	 
	
		
		
			
				
																			
								howard123 							 
									
		Posts:  11 Joined:  Mon Oct 24, 2022 12:27 pmLocation:  Cape TownHas thanked:  1 time  
		
						
						
													
							
						
									
						Post 
					 
								by howard123  Sat Oct 29, 2022 3:58 pm 
			
			
			
			
			Hi Martin
			
			
									
						
			
						 
		 
				
		
		 
	 
	
		
		
			
				
																			
								medelec35 							 
						Matrix Staff 			
		Posts:  2172 Joined:  Wed Dec 02, 2020 11:07 pmHas thanked:  662 times Been thanked:  735 times  
		
						
						
													
							
						
									
						Post 
					 
								by medelec35  Sat Oct 29, 2022 6:15 pm 
			
			
			
			
			I can take a look at your fc9 project if you like it sorted.
			
			
									
						
			Martin
						 
		 
				
		
		 
	 
	
		
		
			
				
																			
								howard123 							 
									
		Posts:  11 Joined:  Mon Oct 24, 2022 12:27 pmLocation:  Cape TownHas thanked:  1 time  
		
						
						
													
							
						
									
						Post 
					 
								by howard123  Sun Oct 30, 2022 9:28 am 
			
			
			
			
			Thanks that will be good of you.
			
							
					
						Attachments
					 
											
			
		
		
				
			Test for FC9 forum.fcfx (113.93 KiB) Downloaded 1251 times 
		 
		
			 
									 
			
									
						
			
						 
		 
				
		
		 
	 
	
		
		
			
				
																			
								medelec35 							 
						Matrix Staff 			
		Posts:  2172 Joined:  Wed Dec 02, 2020 11:07 pmHas thanked:  662 times Been thanked:  735 times  
		
						
						
													
							
						
									
						Post 
					 
								by medelec35  Sun Oct 30, 2022 10:31 am 
			
			
			
			
			Hi Howard.
It was what I had suggested :
			
		
				
			I2C unconnected pins.png (56.43 KiB) Viewed 11166 times 
		 
		
		
			 
Code: Select all 
^ (192) undefined identifier "tris" usually means there is an unconnected pin.
I selected 2 pins. one for SDA and SCL and your flowchart compiled for me.
Code: Select all 
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\PIC\batch\pic_xc8_comp.bat  "C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\" 18F47K40 "D:\Flowcode Testing\" "Test for FC9 forum"
D:\Flowcode Testing>REM CRC: 90CF26913586BBA787FE92D553771933222DCF72B25FEB4608E17FBD060500D8A6D7AF8357042D9E8B5C2E833010A32BE2214988CBC1BB00301ECF6745983589FE0D8D4660AC0314F98C28BCA92AF856EFD1DB5B777140BC4D00059D79589982F2C26BF78BFC32C650CACCEB0B5A8E521002EAF3D15174CD20633AD186EC562DBEEF6112EA5AA5CF5041CCE14E8D252BC416ECB8EC7761E4FD518969900F56C6C8F36CE7BEFFD91E73F563CBE7F64B8A69F01B3F3C0F45102C3050DA273BE4EE1BF2A9420263CDAEEC22F549213B2E20A6A0704CBC762DED 
D:\Flowcode Testing>REM REVISION: 1.0 
D:\Flowcode Testing>REM GUID: 50CB4B58-ED9C-4591-8D65-A87DE810E8CC 
D:\Flowcode Testing>REM DATE: 29\03\2021 
D:\Flowcode Testing>REM DIR: FCD\PIC\batch\pic_xc8_comp.bat 
D:\Flowcode Testing>"C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\bin\xc8.exe" --chip=18F47K40  "Test for FC9 forum.c" --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32 
C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\pic\bin\picc18 --chip=18F47K40 Test for FC9 forum.c --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
Microchip MPLAB XC8 C Compiler V2.10
Build date: Jul 30 2019
Part Support Version: 2.10
Copyright (C) 2019 Microchip Technology Inc.
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\PIC\PIC_CAL_UART.c:
   327:		#define MX_SOFT_BAUD_X (1000000 / MX_UART_BAUD_X) - SW_OFFSET
	                                                                    ^ (111) redefining preprocessor macro "MX_SOFT_BAUD_X" (C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\PIC\PIC_CAL_UART.c: 361) (warning)
using updated 32-bit floating-point libraries; improved accuracy might increase code size
Memory Summary:
    Program space        used    DEh (   222) of 20000h bytes   (  0.2%)
    Data space           used   862h (  2146) of   E88h bytes   ( 57.7%)
    Configuration bits   used     6h (     6) of     6h words   (100.0%)
    EEPROM space         used     0h (     0) of   400h bytes   (  0.0%)
    ID Location space    used     0h (     0) of    10h bytes   (  0.0%)
    Data stack space     used     0h (     0) of   5E4h bytes   (  0.0%)
Compilation successful!
Using <E-Blocks> inbuilt settings for linker
Launching the linker/assembler...
C:\Program Files (x86)\Flowcode v9\data\tools\DoNothing\DoNothing.exe  
FINISHED
			Martin
						 
		 
				
		
		 
	 
	
		
		
			
				
																			
								howard123 							 
									
		Posts:  11 Joined:  Mon Oct 24, 2022 12:27 pmLocation:  Cape TownHas thanked:  1 time  
		
						
						
													
							
						
									
						Post 
					 
								by howard123  Sun Nov 06, 2022 10:43 am 
			
			
			
			
			Hi Martin