Hi Benj
Just received my ECIO dsPIC today.
Just tried a simple counter flowchart to test it out. The hardware works fine, but found a strange bug in FC6.1
The first file compiles loads and runs fine.
The second file, with the led matrix will simulate , but wont compile.
Launching the compiler...
C:\Program Files (x86)\Matrix Multimedia\Flowcode V6\compilers\pic16\batchfiles\pic16_C30_comp.bat "Counter_PORT_D_LEDs" "C:\Users\JOHNCR~1\Desktop\" "33EP256MU806"
Launching compiler...
C:\Users\JOHNCR~1\Desktop>pic30-gcc -c -mcpu="33EP256MU806" -funsigned-char -fno-short-double -Os -I"C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\pic16\BATCHF~1\..\support\h" -I"C:\PROGRA~2\MATRIX~1\FL7431~1\COMPIL~1\pic16\BATCHF~1\..\MX_support" -Wall -std=gnu99 "Counter_PORT_D_LEDs".c -o "Counter_PORT_D_LEDs".o
Counter_PORT_D_LEDs.c: In function 'FCD_03d92_led_base1__TurnOn':
Counter_PORT_D_LEDs.c:306: error: 'TRISA' undeclared (first use in this function)
Counter_PORT_D_LEDs.c:306: error: (Each undeclared identifier is reported only once
Counter_PORT_D_LEDs.c:306: error: for each function it appears in.)
Counter_PORT_D_LEDs.c:306: error: 'PORTA' undeclared (first use in this function)
Counter_PORT_D_LEDs.c:306: error: 'LATA' undeclared (first use in this function)
Counter_PORT_D_LEDs.c: In function 'FCD_03d92_led_base1__TurnOff':
Counter_PORT_D_LEDs.c:316: error: 'TRISA' undeclared (first use in this function)
Counter_PORT_D_LEDs.c:316: error: 'PORTA' undeclared (first use in this function)
Counter_PORT_D_LEDs.c:316: error: 'LATA' undeclared (first use in this function)
Counter_PORT_D_LEDs.c: In function 'FCD_0e1e1_led_array1__AllOn':
Counter_PORT_D_LEDs.c:773: warning: unused variable 'FCL_INDEX'
Counter_PORT_D_LEDs.c: In function 'FCD_0e1e1_led_array1__WriteValue':
Counter_PORT_D_LEDs.c:964: warning: unused variable 'FCL_MASK'
Counter_PORT_D_LEDs.c:963: warning: unused variable 'FCL_TEMPVALUE'
Counter_PORT_D_LEDs.c: In function 'FCD_0e1e1_led_array1__AllOff':
Counter_PORT_D_LEDs.c:996: warning: unused variable 'FCL_INDEX'
Error returned from [pic30-gcc.exe]
Completed compilation, return = 1
C:\Program Files (x86)\Matrix Multimedia\Flowcode V6\compilers\pic16\batchfiles\pic16_C30_comp.bat reported error code 1
FINISHED
If I delete the LEDs it works fine again?
Tried the same files with a 16F877A and they both work as expected.