Is there anyone here that could help to get the MIAC dsPIC menu to work?
I get an error by uploading the MIAC dsPic codes.
If I remove EEPROM, I can upload the codes to MIAC. And the program works.
Is there anyone here that will help solve the problem?
Attach MIAC code: Hope that someone will help solve the problem.
Compile message with error message:
Code: Select all
Target folder: C:\Users\Bruger\Desktop\TILFOR~1
Source name: C:\Users\Bruger\Desktop\Til Forum\MIAC dsPIC Menu Test.fcfx
Title:
Description:
Device: PIC16.33E.MIAC (dsPIC) System
Generated by: Flowcode v7.3.0.5
Date: Saturday, June 09, 2018 12:52:33
Users: 1
Registered to: monie jacobsen
Licence key: YUWNEC
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\pic16\batchfiles\pic16_C30_comp.bat "MIAC dsPIC Menu Test" "C:\Users\Bruger\Desktop\TILFOR~1\" "33EP256MU806"
Launching compiler...
C:\Users\Bruger\Desktop\TILFOR~1>xc16-gcc -c -mcpu="33EP256MU806" -omf=coff -funsigned-char -fno-short-double -Os -I"C:\PROGRA~2\FLOWCO~1\COMPIL~1\pic16\BATCHF~1\..\support\h" -I"C:\PROGRA~2\FLOWCO~1\COMPIL~1\pic16\BATCHF~1\" -std=gnu99 "MIAC dsPIC Menu Test".c -o "MIAC dsPIC Menu Test".o
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
MIAC dsPIC Menu Test.c:395:13: error: expected declaration specifiers or '...' before numeric constant
MIAC dsPIC Menu Test.c: In function '_EEDATA':
MIAC dsPIC Menu Test.c:395:16: error: expected declaration specifiers before 'NonVolatileData'
MIAC dsPIC Menu Test.c:395:78: error: expected declaration specifiers before ';' token
In file included from C:\Program Files (x86)\Flowcode 7\CAL\includes.c:41:0,
from MIAC dsPIC Menu Test.c:405:
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:48:17: error: storage class specified for parameter 'WG_CursorX'
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:49:17: error: storage class specified for parameter 'WG_CursorY'
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:51:13: error: storage class specified for parameter 'WG_Write'
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:52:17: error: storage class specified for parameter 'WG_Read'
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:53:13: error: storage class specified for parameter 'WG_Command'
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:54:17: error: storage class specified for parameter 'WG_Status'
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:55:13: error: storage class specified for parameter 'WG_WriteWordAt'
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:56:18: error: storage class specified for parameter 'WG_ReadWordAt'
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:60:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:104:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:152:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:167:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:182:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:199:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:220:17: error: storage class specified for parameter 'MIAC_SPI0_cs'
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:223:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:268:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:296:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:305:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:322:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:327:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:361:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:377:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:386:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:392:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:444:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:466:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:514:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:521:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:573:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:578:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:599:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:610:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:621:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:632:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:643:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
In file included from C:\Program Files (x86)\Flowcode 7\CAL\includes.c:238:0,
from MIAC dsPIC Menu Test.c:405:
C:\Program Files (x86)\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_EEPROM.c:51:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_EEPROM.c:68:4: error: #error "Chip does not have EEPROM memory"
C:\Program Files (x86)\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_EEPROM.c:73:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_EEPROM.c:129:4: error: #error "Chip does not have EEPROM memory"
MIAC dsPIC Menu Test.c:426:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:436:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:451:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:460:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:474:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:483:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:497:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:506:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:520:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:529:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:543:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:552:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:566:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:575:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:589:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:599:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:614:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:624:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:639:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:649:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:664:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:674:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:689:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:699:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:714:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:724:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:739:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:749:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:764:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:774:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:789:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:799:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:817:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:858:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:943:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:1050:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:1084:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:1105:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:1167:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:1190:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:1255:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:1298:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:1345:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:1404:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:1425:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:1440:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:1632:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
MIAC dsPIC Menu Test.c:1924:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Program Files (x86)\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_EEPROM.c:40:6: error: declaration for parameter 'FC_CAL_EE_Write' but no such parameter
C:\Program Files (x86)\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_EEPROM.c:39:11: error: declaration for parameter 'FC_CAL_EE_Read' but no such parameter
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:220:17: error: declaration for parameter 'MIAC_SPI0_cs' but no such parameter
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:56:18: error: declaration for parameter 'WG_ReadWordAt' but no such parameter
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:55:13: error: declaration for parameter 'WG_WriteWordAt' but no such parameter
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:54:17: error: declaration for parameter 'WG_Status' but no such parameter
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:53:13: error: declaration for parameter 'WG_Command' but no such parameter
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:52:17: error: declaration for parameter 'WG_Read' but no such parameter
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:51:13: error: declaration for parameter 'WG_Write' but no such parameter
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:49:17: error: declaration for parameter 'WG_CursorY' but no such parameter
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:48:17: error: declaration for parameter 'WG_CursorX' but no such parameter
MIAC dsPIC Menu Test.c:400:6: error: declaration for parameter 'FCD_06651_eeprom1__Write' but no such parameter
MIAC dsPIC Menu Test.c:399:11: error: declaration for parameter 'FCD_06651_eeprom1__Read' but no such parameter
MIAC dsPIC Menu Test.c:2032:1: error: expected '{' at end of input
Error returned from [xc16-gcc.exe]
Completed compilation, return = 1
C:\Program Files (x86)\Flowcode 7\compilers\pic16\batchfiles\pic16_C30_comp.bat reported error code 1
FINISHED