I tried to execute your example program downloaded for FMC112, I am finding problems.They are listed below:
The programe is :
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
#include <stdio.h>
#include <stdlib.h>
#include <4FM.h>
int main(int argc, char *argv[])
{
int devno;
_4FM_DeviceContext ctx;
_4FM_error_t rc;
/* Count the command line arguments */
if(argc != 3)
{
fprintf(stderr, "usage: fm48x_reset <devtype> <devno>\n");
return EXIT_FAILURE;
}
devno = strtol(argv[2], 0, 0);
/* Open device and check handle is valid */
rc = _4FM_OpenDevice(&ctx, argv[1], devno);
if(rc != _4FM_OK)
{
fprintf(stderr, "failed to open device %d\n", devno);
return EXIT_FAILURE;
}
/* Perform reset */
rc = _4FM_ResetDevice(&ctx);
if(rc != _4FM_OK)
{
fprintf(stderr, "failed to reset device %d\n", devno);
return EXIT_FAILURE;
}
printf("Successfully reset device %d\n", devno);
/* Close device */
_4FM_CloseDevice(&ctx);
return EXIT_SUCCESS;
}
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
'ConsoleApplication6.exe' (Win32): Loaded 'D:\4FMTRIAL\ConsoleApplication6\Debug\ConsoleApplication6.exe'. Symbols loaded.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\System32\apphelp.dll'. Cannot find or open the PDB file.
SHIMVIEW: ShimInfo(Complete)
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Program Files\4dsp\4FM Core Development Kit\Bins\4fm.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\System32\msvcr110d.dll'. Symbols loaded.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Program Files\4dsp\4FM Core Development Kit\Bins\FDSP_General.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\System32\setupapi.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\System32\msvcr110.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\System32\devobj.dll'. Cannot find or open the PDB file.
The program '[4864] ConsoleApplication6.exe' has exited with code 1 (0x1).