DC 10.64 userblock_sample.c

I just moved from DC 10.60 to 10.64, and ran into a compiler error I cannot resolve. I found the same problem in the sample application userblock_sample.c. When compiling for the RCM420, I get the following errors:

line 1284 : WARNING IDBLOCK.LIB : Wrong type for parameter 1.
line 1284 : WARNING IDBLOCK.LIB : Converting const far void * const * to incompatible pointer type void * const *
line 1291 : ERROR IDBLOCK.LIB : Redefinition of function prototype different.
line 1296 : ERROR IDBLOCK.LIB : Syntax error - or garbage at end of program.
line 1296 : ERROR IDBLOCK.LIB : Need function definition or declaration.
line 1296 : ERROR IDBLOCK.LIB : Syntax error - or garbage at end of program.
line 1296 : ERROR IDBLOCK.LIB : Need function definition or declaration.
line 1296 : ERROR IDBLOCK.LIB : Syntax error - or garbage at end of program.
line 1296 : ERROR IDBLOCK.LIB : Need function definition or declaration.
line 1296 : ERROR IDBLOCK.LIB : Syntax error - or garbage at end of program.
line 1296 : ERROR IDBLOCK.LIB : Need function definition or declaration.
line 1296 : ERROR IDBLOCK.LIB : Syntax error - or garbage at end of program.
line 1296 : WARNING IDBLOCK.LIB : if is a keyword and should not be used as an identifier.
10 errors reached; further errors suppressed.

I have the same errors when compiling my own code which also uses idblock.lib. Any help resolving this issue is appreciated.

Looks like there is an error on line 1219 of the idblock.lib file where the 1st parameter of _f_readUserBlockArray is declared differently to the function definition on line 1288.

Try fixing that up and see what happens.

Regards,
Peter

Hello,

I think you have to add idblock library (#use “idblock_api.lib”) file in the sample program
userblock_sample.c. in Dynamic C 10.64 .

Try to run the sample programs (userblock_info.c, idblock_report.c,userblock_sample.c) under this path
C:\DCRABBIT_10.64\Samples\UserBlock.
If you are getting proper output , no problem.
Otherwise, the idblock corrupted on your board.

If this is the case , you need to talk with DIGI technical support. They can provide the application “write id userblock” for specific board