PIC32MX270F256B can not start Debugger!

mikroC, mikroBasic and mikroPascal PRO for Microchip’s 32-bit PIC MCUs
Post Reply
Author
Message
masa0314
Posts: 10
Joined: 15 May 2018 21:15

PIC32MX270F256B can not start Debugger!

#1 Post by masa0314 » 09 Oct 2021 18:19

Hello everyone, I'm trying to make the LED blink on self-made board with PIC32MX270F256B.
When "Build Type" is "Release", I can program. And it works fine.

If I select "ICD Debug" mode, I can program, but when I try to open the debugger I get errors,
"Error in call to Device driver", and then "mikroICD:-Error Starting Debugger -PIC Clock Error".
"mikroElektronika ICD hardware not found."


I'm using mikroC PRO for PIC32 v.4.0.0, mikroProg with Firmware v2.11, mikroProg Suite for PIC v2.90, and PIC32MX270F256B-501/SP or PIC32MX250F128B-I/SP.
Windows 7(64bit) and Windows10(64bit)


This self-made board was made for PIC24FJ64GB00. At that time, the debugger worked normally.
The debugger still works fine on that board.

Does "mikroC PRO for PIC32" have other compiler settings that are different?

Attach the source code, project file and schematic.Image
Attachments
Schematic.JPG
Schematic.JPG (176.65 KiB) Viewed 2043 times
LED-TEST.zip
(3.97 KiB) Downloaded 49 times

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

Re: PIC32MX270F256B can not start Debugger!

#2 Post by filip » 13 Oct 2021 10:32

Hi,

Are you sure that you have set the oscillator and PGC/PGD lines correctly in Edit Project window ?

Regards,
Filip.

masa0314
Posts: 10
Joined: 15 May 2018 21:15

Re: PIC32MX270F256B can not start Debugger!

#3 Post by masa0314 » 13 Oct 2021 13:45

Hi Filip,

It looks like you haven't downloaded my zip-file,isn't it.
I will attach an image of "Edit Project".

If the oscillator and PGC/PGD are not set correctly, it will not work even in Release mode.

PIC32MX250F128B did not support the debugger.
This problem should be PIC32MX270F256B only.

Best Regards,
Masa0314
Attachments
Edit Project.JPG
Edit Project.JPG (151.12 KiB) Viewed 2018 times

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

Re: PIC32MX270F256B can not start Debugger!

#4 Post by filip » 19 Oct 2021 08:54

Hi,

You have set the frequency to 48 MHz for the code, but the MCU is running at 80 MHz (per Edit Project settings) - 8 MHz / 2 * 20 = 80 MHz, if I'm correct.

Regards,
Filip.

masa0314
Posts: 10
Joined: 15 May 2018 21:15

Re: PIC32MX270F256B can not start Debugger!

#5 Post by masa0314 » 19 Oct 2021 11:04

Hi Filip,

I think the maximum frequency of PIC32MX270F256B is 50MHz.
I think that the setting of 80MHz will result in over-specification.
My oscillator settings are attached below.

MCU Clock = SYSCLK
This is not wrong, isn't it?


Best Regards,
Masa0314
Attachments
OSCILATOR DIAGRAM.JPG
OSCILATOR DIAGRAM.JPG (274.98 KiB) Viewed 1970 times
SPC.JPG
SPC.JPG (64.04 KiB) Viewed 1970 times

masa0314
Posts: 10
Joined: 15 May 2018 21:15

Re: PIC32MX270F256B can not start Debugger!

#6 Post by masa0314 » 19 Oct 2021 19:34

Hi Filip,

I rewrote this code for XC32.
I have confirmed that both the program and debug worked fine with that code.
I gave up developing on "mikroC PRO for PIC32."
Thank you for your support so far.
I may come back once it works properly. :(

Best Regards,
Masa0314

netserv
Posts: 31
Joined: 31 Dec 2012 19:48

Re: PIC32MX270F256B can not start Debugger!

#7 Post by netserv » 22 Jan 2022 15:58

I just want to confirm your problems. I am also struggeling since a long time. I wish more stability of the ICD.
My recommendation: use ICD4 from Microchip for debugging, as soon as the MIKROE crew has finally managed,
that the the PIC32 produced COF file ist loadable without errors.... :(

Post Reply

Return to “PIC32 PRO Compilers”