MikroProg and MikroICD not working properly

General discussion on mikroProg™ programmer and debugger and mikroProg Suite software as well.
Post Reply
Author
Message
aperez_64
Posts: 6
Joined: 04 Nov 2020 23:16

MikroProg and MikroICD not working properly

#1 Post by aperez_64 » 12 May 2021 19:47

Hello everyone. I seem to be having this issue where I use the mikroProg ICD and when I step over the line "HID_Enable(&readbuff,&writebuff)" I get a windows notification saying "USB Device Not Recognized". Then the program counter jumps back to the start of my main function.

I'm working with PIC18F2550, mikroC PRO for PIC v.7.6.0, mikroProg Suite for PIC v2.70, mikroProg Firmware v2.11, and I have the Build Type set to "ICD Debug" and the Debugger set to "mikroICD"

I've attached screenshots of the snippet of code I'm referencing and my project's configuration. Any help would be greatly appreciated :)
Attachments
Screenshot_12.png
Screenshot_12.png (7.59 KiB) Viewed 1531 times
Screenshot_11.png
Screenshot_11.png (11.71 KiB) Viewed 1531 times
Screenshot_9.png
Screenshot_9.png (7.37 KiB) Viewed 1531 times

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

Re: MikroProg and MikroICD not working properly

#2 Post by filip » 13 May 2021 13:03

Hi,

Have you tried the default USB HID Example from the compiler ?
Does it behave in the same way ?

Regards,
Filip.

aperez_64
Posts: 6
Joined: 04 Nov 2020 23:16

Re: MikroProg and MikroICD not working properly

#3 Post by aperez_64 » 13 May 2021 19:41

Just tried it, again I get the same Windows notification that my USB device is not recognized, but this time it happens after stepping over the "USB_Polling_Proc();" line. Just to be clear, my project is working fine when I'm not debugging. But there's some kind of issue going on with debugging so I can't debug effectively.

Post Reply

Return to “mikroProg™ programmer and debugger”