Hello everyone, I've been having problems with debugging a project. The project is an adapter that communicates with a GUI using USB. The adapter then sends commands to another component via I2C. But for some reason the debugging mode doesn't work. The run to cursor command just runs and never stops at the cursor, the breakpoints don't work, and the adapter isn't even recognized by my GUI. This is strange to me because the adapter works perfectly when I build it as release type. But as soon as I build it as ICD Debug type all the USB functions just stop working and the debugger behaves strangely. Does debugger mode just not work with the USB library? I've tried everything and I just can't get the debugger working.
I'm using mikroC PRO for PIC v.7.6.0, mikroProg with Firmware v2.11, mikroProg Suite for PIC v2.90, and a PIC18F2550.
Also, I'm suing the 1x5 header configuration as opposed to the 2x5. I don't know that this is relevant but I thought I'd throw it in. I'll gladly include any more information anyone needs to help me out. Any advice would be appreciated. I've wasted a lot of time trying to fix this and I'm at my wits' end Thanks all.
Debugger mode not working with USB library
Debugger mode not working with USB library
- Attachments
-
- Adapter.zip
- (4.25 MiB) Downloaded 63 times
Last edited by aperez121 on 03 Jun 2021 20:19, edited 1 time in total.
Re: Debugger mode not working with USB library
Hi,
Can you please attach schematics, photos of the hardware and the project that demonstrates this issue ?
Regards,
Filip.
Can you please attach schematics, photos of the hardware and the project that demonstrates this issue ?
Regards,
Filip.
Re: Debugger mode not working with USB library
I've attached the requested files.
- Attachments
-
- Adapter.zip
- (4.25 MiB) Downloaded 56 times
Re: Debugger mode not working with USB library
Hi,
The schematics, photos and project configuration seems OK. Does the debugging stop at some specific line or it related to an external hardware ?
Regards,
Filip.
The schematics, photos and project configuration seems OK. Does the debugging stop at some specific line or it related to an external hardware ?
Regards,
Filip.
Re: Debugger mode not working with USB library
Well when I step over the HID_Enable line I get a windows message saying that the usb device has malfunctioned. For some reason the debugger doesn't seem to work with any usb functions. Like I said above the project works fine when I build it as release, but it just stops functioning when I build it as a debug.