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.
PIC32MX270F256B can not start Debugger!
PIC32MX270F256B can not start Debugger!
- Attachments
-
- Schematic.JPG (176.65 KiB) Viewed 2048 times
-
- LED-TEST.zip
- (3.97 KiB) Downloaded 49 times
Re: PIC32MX270F256B can not start Debugger!
Hi,
Are you sure that you have set the oscillator and PGC/PGD lines correctly in Edit Project window ?
Regards,
Filip.
Are you sure that you have set the oscillator and PGC/PGD lines correctly in Edit Project window ?
Regards,
Filip.
Re: PIC32MX270F256B can not start Debugger!
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
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 (151.12 KiB) Viewed 2023 times
Re: PIC32MX270F256B can not start Debugger!
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.
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.
Re: PIC32MX270F256B can not start Debugger!
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
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 (274.98 KiB) Viewed 1975 times
-
- SPC.JPG (64.04 KiB) Viewed 1975 times
Re: PIC32MX270F256B can not start Debugger!
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
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
Re: PIC32MX270F256B can not start Debugger!
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....
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....