Debugger mode not working with USB library

General discussion on mikroProg™ programmer and debugger and mikroProg Suite software as well.
Post Reply
Author
Message
aperez121
Posts: 3
Joined: 02 Jun 2021 20:23

Debugger mode not working with USB library

#1 Post by aperez121 » 02 Jun 2021 21:42

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.
Attachments
Adapter.zip
(4.25 MiB) Downloaded 62 times
Last edited by aperez121 on 03 Jun 2021 20:19, edited 1 time in total.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Debugger mode not working with USB library

#2 Post by filip » 03 Jun 2021 15:26

Hi,

Can you please attach schematics, photos of the hardware and the project that demonstrates this issue ?

Regards,
Filip.

aperez121
Posts: 3
Joined: 02 Jun 2021 20:23

Re: Debugger mode not working with USB library

#3 Post by aperez121 » 03 Jun 2021 20:07

I've attached the requested files.
Attachments
Adapter.zip
(4.25 MiB) Downloaded 55 times

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Debugger mode not working with USB library

#4 Post by filip » 08 Jun 2021 11:24

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.

aperez121
Posts: 3
Joined: 02 Jun 2021 20:23

Re: Debugger mode not working with USB library

#5 Post by aperez121 » 10 Jun 2021 19:20

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.

Post Reply

Return to “mikroProg™ programmer and debugger”