Hi,
I am trying to develop a custom debug DLL for debugging a custom board based on 8051 processor. The idea here is to create a debug environment for our board.
I connected FTDI chip which has USB-JTAG interface which can be used as debugger.
I have taken the example agdi project(apntex_145) provided by Keil ,which can help develop the custom dll, which can be built in visual c++ 6.0 and dll can be created.
Since I'll have the dependency on the FTDI JTAG drivers, I am using FTCJTAG.dll provided by FTDI, internally in the example project which I took, and then I created the custom.dll. So far so good. It compiled properly and I got the DLL.
I loaded the DLL to the keil and I am able to see the the custom debugger available in the debug options for target in Keil IDE. I selected my custom debugger.
I added some debug prints in AG_Init function in the project of the DLL so that when I click start/stop debug, I can see the debug prints.
Now, When I just click start/stop debug button, the control went to AGDI functions to the custom dll which I created and I got the debug prints.
But when we try to create some JTAG traffic by calling JTag APIs which are exposed by FTDI, and try to debug, I am getting an error saying, "*** Error: 'custom.dll' not found".
And now When I try to load the dll which I created by pressing settings button right next to the debug options, it says, cant load the dll . And the possible reasons:
1) driver dll could not be found in the specified path
2) driver dll requires additional dll's which are not installed
3) Required hardware drivers are not installed.
Its not the first reason, since the dll is still present in the specified path.
I feel the second reason might be the one responsible for this error, as my dll depends on the FTCJTAG.dll which is given by FTDI.
Since my DLL file has the dependency with the FTDI dll, should I combine or bundle both the dlls together and then create a new merged DLL which can then be used as debugger dll?
Or is there any other way of solving this?
Can you help me resolve this issue?