I'm making a DLL file used as a target driver for keil in its debug mode, but keil can not load the DLL. The file route is right. In my application,I want to interface the keil to an external MCU and run debug for the MCU. Is there anyone having experence on this problem.
in keil's target option window there is a debug menu,i selected the target driver which i made by myself and select "use" too,after that i press setting button,and it appears a message tell me that the driver can be loaded. in my application,i use the usb to jtag transform IC FT2232 to interface the keil and an external MCU.before that we use the parallel port to do the finish the interface and it was OK,keil can load that driver.But when i change it to be the usb, it does not work. i am wondering if the device should be opened before we select the driver? thanks!
the by route is set in the tool.ini file. like this:TDRV0:..\..\..\targdrive.dll ("name"). am i right?
Maybe your dll loads another dll that is not in the path?
You can use dependencywalker to find all dll's loaded by your dll:
www.dependencywalker.com/
regards, ole
thanks !! that's really a useful tool! the problem is smoothed now! i did not add the dll file into the system32 folder. thanks again all of you!