PIC32 programming successfully but not working The Next CEO of Stack OverflowPIC12F617 Device ID read when debugging but not when programmingI2C with PIC32 and MCP4706 Not Workingpic16f628a successfully programmed but not workingPIC32 C programmingPIC32 does not get UART RX interrupts in xc32 CompilerPIC24 PLL module is always out of lockpic16f877A timer not workingSYSTEMConfigPerformance not executing in PIC32PIC18F1220 production build of C code not workingWhere should I start troubleshooting a CC1310 radio design?
How to coordinate airplane tickets?
How exploitable/balanced is this homebrew spell: Spell Permanency?
Is it OK to decorate a log book cover?
What does the same-ish mean?
Can I hook these wires up to find the connection to a dead outlet?
Is there a rule of thumb for determining the amount one should accept for a settlement offer?
Finitely generated matrix groups whose eigenvalues are all algebraic
Why was Sir Cadogan fired?
Mathematica command that allows it to read my intentions
How to use `glossaries` together with `ProvidesPackage`
Identification of tool
Are multiple articles needed in genitive list?
Why can't we say "I have been having a dog"?
What happens if you break a law in another country outside of that country?
How to delete logs automatically after a certain time and restart the process that fills up the log file?
What steps are necessary to read a Modern SSD in Medieval Europe?
Collected fruit by Seine's banks
Some wp-admin folder file deleted when Wordpress upgrade
Loop in macOS not working
How seriously should I take size and weight limits of hand luggage?
Avoiding the "not like other girls" trope?
Using the "a" preposition with "echar de menos" and a personal object
Does Germany produce more waste than the US?
How do I find which disk/partition current directory is on?
PIC32 programming successfully but not working
The Next CEO of Stack OverflowPIC12F617 Device ID read when debugging but not when programmingI2C with PIC32 and MCP4706 Not Workingpic16f628a successfully programmed but not workingPIC32 C programmingPIC32 does not get UART RX interrupts in xc32 CompilerPIC24 PLL module is always out of lockpic16f877A timer not workingSYSTEMConfigPerformance not executing in PIC32PIC18F1220 production build of C code not workingWhere should I start troubleshooting a CC1310 radio design?
$begingroup$
I am designing my own PCB around a PIC32MM0064GPL028 microcontroller. Breaking down the steps below-
- I have built a simple breadboard version first, inspired by PIC32MM curiosity development board.
- Here is the schematic of the prototype programmed using PicKit3.
- The prototype connects and programs with no issues. And the same code works perfectly on the curiosity development board. This indicates that the issue is in the schematics or components.
- Links to the components I am using - PIC32, crystal, 18pF capacitor for crystal, 10uF capacitor for Vcap, Reverse Protection mosfet.
I am not an electronics engineer and have been playing with arduino and similar boards for quite a while now. However, this is all very new to me and probably the issue is a silly one.
It'll be super helpful if you could help me debug the issue. I can upload the code if it helps? Thanks.
pic pcb-design
New contributor
$endgroup$
|
show 2 more comments
$begingroup$
I am designing my own PCB around a PIC32MM0064GPL028 microcontroller. Breaking down the steps below-
- I have built a simple breadboard version first, inspired by PIC32MM curiosity development board.
- Here is the schematic of the prototype programmed using PicKit3.
- The prototype connects and programs with no issues. And the same code works perfectly on the curiosity development board. This indicates that the issue is in the schematics or components.
- Links to the components I am using - PIC32, crystal, 18pF capacitor for crystal, 10uF capacitor for Vcap, Reverse Protection mosfet.
I am not an electronics engineer and have been playing with arduino and similar boards for quite a while now. However, this is all very new to me and probably the issue is a silly one.
It'll be super helpful if you could help me debug the issue. I can upload the code if it helps? Thanks.
pic pcb-design
New contributor
$endgroup$
2
$begingroup$
Shouldn't the LED on the development board have a resistor in series as well? And why is it connected to MCLR? You may have damaged RB13 as it should not exceed the abs max ratings (chapt 26.0 datasheet)
$endgroup$
– Huisman
2 hours ago
$begingroup$
The LED on the development board is working fine even without the resistor (although a resistor is recommended, you are right). The problem is in the breadboard circuit (resistor included) which is not triggering the led.
$endgroup$
– Dhruv
2 hours ago
$begingroup$
What voltage do you measure on pins 3, 7 and 24? If you measure 3.3V, check the polarity of the LEDs.
$endgroup$
– Huisman
2 hours ago
1
$begingroup$
@Dhruv The series resistor is not just recommended, it is required. Otherwise you WILL damage your LEDs and/or your PIC
$endgroup$
– DerStrom8
1 hour ago
$begingroup$
@Huisman it shows 0.16V. It goes high for almost half a second while the code is uploading, and the goes back to zero. Leds are placed correctly.
$endgroup$
– Dhruv
1 hour ago
|
show 2 more comments
$begingroup$
I am designing my own PCB around a PIC32MM0064GPL028 microcontroller. Breaking down the steps below-
- I have built a simple breadboard version first, inspired by PIC32MM curiosity development board.
- Here is the schematic of the prototype programmed using PicKit3.
- The prototype connects and programs with no issues. And the same code works perfectly on the curiosity development board. This indicates that the issue is in the schematics or components.
- Links to the components I am using - PIC32, crystal, 18pF capacitor for crystal, 10uF capacitor for Vcap, Reverse Protection mosfet.
I am not an electronics engineer and have been playing with arduino and similar boards for quite a while now. However, this is all very new to me and probably the issue is a silly one.
It'll be super helpful if you could help me debug the issue. I can upload the code if it helps? Thanks.
pic pcb-design
New contributor
$endgroup$
I am designing my own PCB around a PIC32MM0064GPL028 microcontroller. Breaking down the steps below-
- I have built a simple breadboard version first, inspired by PIC32MM curiosity development board.
- Here is the schematic of the prototype programmed using PicKit3.
- The prototype connects and programs with no issues. And the same code works perfectly on the curiosity development board. This indicates that the issue is in the schematics or components.
- Links to the components I am using - PIC32, crystal, 18pF capacitor for crystal, 10uF capacitor for Vcap, Reverse Protection mosfet.
I am not an electronics engineer and have been playing with arduino and similar boards for quite a while now. However, this is all very new to me and probably the issue is a silly one.
It'll be super helpful if you could help me debug the issue. I can upload the code if it helps? Thanks.
pic pcb-design
pic pcb-design
New contributor
New contributor
edited 1 hour ago
Dhruv
New contributor
asked 2 hours ago
DhruvDhruv
63
63
New contributor
New contributor
2
$begingroup$
Shouldn't the LED on the development board have a resistor in series as well? And why is it connected to MCLR? You may have damaged RB13 as it should not exceed the abs max ratings (chapt 26.0 datasheet)
$endgroup$
– Huisman
2 hours ago
$begingroup$
The LED on the development board is working fine even without the resistor (although a resistor is recommended, you are right). The problem is in the breadboard circuit (resistor included) which is not triggering the led.
$endgroup$
– Dhruv
2 hours ago
$begingroup$
What voltage do you measure on pins 3, 7 and 24? If you measure 3.3V, check the polarity of the LEDs.
$endgroup$
– Huisman
2 hours ago
1
$begingroup$
@Dhruv The series resistor is not just recommended, it is required. Otherwise you WILL damage your LEDs and/or your PIC
$endgroup$
– DerStrom8
1 hour ago
$begingroup$
@Huisman it shows 0.16V. It goes high for almost half a second while the code is uploading, and the goes back to zero. Leds are placed correctly.
$endgroup$
– Dhruv
1 hour ago
|
show 2 more comments
2
$begingroup$
Shouldn't the LED on the development board have a resistor in series as well? And why is it connected to MCLR? You may have damaged RB13 as it should not exceed the abs max ratings (chapt 26.0 datasheet)
$endgroup$
– Huisman
2 hours ago
$begingroup$
The LED on the development board is working fine even without the resistor (although a resistor is recommended, you are right). The problem is in the breadboard circuit (resistor included) which is not triggering the led.
$endgroup$
– Dhruv
2 hours ago
$begingroup$
What voltage do you measure on pins 3, 7 and 24? If you measure 3.3V, check the polarity of the LEDs.
$endgroup$
– Huisman
2 hours ago
1
$begingroup$
@Dhruv The series resistor is not just recommended, it is required. Otherwise you WILL damage your LEDs and/or your PIC
$endgroup$
– DerStrom8
1 hour ago
$begingroup$
@Huisman it shows 0.16V. It goes high for almost half a second while the code is uploading, and the goes back to zero. Leds are placed correctly.
$endgroup$
– Dhruv
1 hour ago
2
2
$begingroup$
Shouldn't the LED on the development board have a resistor in series as well? And why is it connected to MCLR? You may have damaged RB13 as it should not exceed the abs max ratings (chapt 26.0 datasheet)
$endgroup$
– Huisman
2 hours ago
$begingroup$
Shouldn't the LED on the development board have a resistor in series as well? And why is it connected to MCLR? You may have damaged RB13 as it should not exceed the abs max ratings (chapt 26.0 datasheet)
$endgroup$
– Huisman
2 hours ago
$begingroup$
The LED on the development board is working fine even without the resistor (although a resistor is recommended, you are right). The problem is in the breadboard circuit (resistor included) which is not triggering the led.
$endgroup$
– Dhruv
2 hours ago
$begingroup$
The LED on the development board is working fine even without the resistor (although a resistor is recommended, you are right). The problem is in the breadboard circuit (resistor included) which is not triggering the led.
$endgroup$
– Dhruv
2 hours ago
$begingroup$
What voltage do you measure on pins 3, 7 and 24? If you measure 3.3V, check the polarity of the LEDs.
$endgroup$
– Huisman
2 hours ago
$begingroup$
What voltage do you measure on pins 3, 7 and 24? If you measure 3.3V, check the polarity of the LEDs.
$endgroup$
– Huisman
2 hours ago
1
1
$begingroup$
@Dhruv The series resistor is not just recommended, it is required. Otherwise you WILL damage your LEDs and/or your PIC
$endgroup$
– DerStrom8
1 hour ago
$begingroup$
@Dhruv The series resistor is not just recommended, it is required. Otherwise you WILL damage your LEDs and/or your PIC
$endgroup$
– DerStrom8
1 hour ago
$begingroup$
@Huisman it shows 0.16V. It goes high for almost half a second while the code is uploading, and the goes back to zero. Leds are placed correctly.
$endgroup$
– Dhruv
1 hour ago
$begingroup$
@Huisman it shows 0.16V. It goes high for almost half a second while the code is uploading, and the goes back to zero. Leds are placed correctly.
$endgroup$
– Dhruv
1 hour ago
|
show 2 more comments
4 Answers
4
active
oldest
votes
$begingroup$
It looks like you made a mistake in your schematic:
PIN 8 of the PIC (VSS) is connected to PWR and PIN 13 of the PIC (VDD) is connected to GND. VDD must be tied to the power, and VSS to the GND.
What is the voltage of PWR? Why don't you use 3V3 for MCLR and VDD/AVDD?
$endgroup$
$begingroup$
Yeah, sorry about that mistake in the schematic. The actual circuit itself has the right connection though. PIN13 to pwr and VSS to GND. It is 3.3V as shown in the top-right part of the schematic, protected by a reverse current protection circuit.
$endgroup$
– Dhruv
2 hours ago
1
$begingroup$
Please update your schematics to the correct version.
$endgroup$
– Huisman
2 hours ago
$begingroup$
schematic updated. Sorry about that.
$endgroup$
– Dhruv
1 hour ago
add a comment |
$begingroup$
The Curiosity development board is based around the PIC24FJ128GA204. If you write code that works on that micro, then of course it will not work on a PIC32MM0064GPL028. You will need to go through the process of porting the code over to the new micro, which likely involves shifting around ports, updating some definitions, etc.
$endgroup$
$begingroup$
The photo of the board shows that it is a PIC32 board.
$endgroup$
– HandyHowie
1 hour ago
$begingroup$
microchip.com/DevelopmentTools/ProductDetails/DM320101
$endgroup$
– Dhruv
1 hour ago
add a comment |
$begingroup$
There is nothing connected to pin 3 (LED1) of the PIC on your breadboard, neither to pin 7 (LED2). Double check your connections.
$endgroup$
$begingroup$
Yeah I was just trying to different pins for output and must have moved them around before the picture. It's updated now, apologies again.
$endgroup$
– Dhruv
1 hour ago
add a comment |
$begingroup$
turns out it was just an incorrect connection to MCLR pin. I connected the 10k resistor in the wrong position in the breadboard. The schematics are fine and the prototype is working now. Thanks a lot for helping and let me know if you want me to share something else.
New contributor
$endgroup$
$begingroup$
Congrats for finding it. This error was hardly detectable from the initial picture in your post. For next questions, I'd recommend providing clear pictures (from different angles, showing the whole setup etc) and correct schematics. Good luck with this board!
$endgroup$
– Huisman
56 mins ago
$begingroup$
Thanks. You are right, I was assuming the issue is in the schematic itself, or the components I am using. No assumptions next time! Thanks.
$endgroup$
– Dhruv
52 mins ago
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
);
);
, "mathjax-editing");
StackExchange.ifUsing("editor", function ()
return StackExchange.using("schematics", function ()
StackExchange.schematics.init();
);
, "cicuitlab");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "135"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Dhruv is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f430286%2fpic32-programming-successfully-but-not-working%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
It looks like you made a mistake in your schematic:
PIN 8 of the PIC (VSS) is connected to PWR and PIN 13 of the PIC (VDD) is connected to GND. VDD must be tied to the power, and VSS to the GND.
What is the voltage of PWR? Why don't you use 3V3 for MCLR and VDD/AVDD?
$endgroup$
$begingroup$
Yeah, sorry about that mistake in the schematic. The actual circuit itself has the right connection though. PIN13 to pwr and VSS to GND. It is 3.3V as shown in the top-right part of the schematic, protected by a reverse current protection circuit.
$endgroup$
– Dhruv
2 hours ago
1
$begingroup$
Please update your schematics to the correct version.
$endgroup$
– Huisman
2 hours ago
$begingroup$
schematic updated. Sorry about that.
$endgroup$
– Dhruv
1 hour ago
add a comment |
$begingroup$
It looks like you made a mistake in your schematic:
PIN 8 of the PIC (VSS) is connected to PWR and PIN 13 of the PIC (VDD) is connected to GND. VDD must be tied to the power, and VSS to the GND.
What is the voltage of PWR? Why don't you use 3V3 for MCLR and VDD/AVDD?
$endgroup$
$begingroup$
Yeah, sorry about that mistake in the schematic. The actual circuit itself has the right connection though. PIN13 to pwr and VSS to GND. It is 3.3V as shown in the top-right part of the schematic, protected by a reverse current protection circuit.
$endgroup$
– Dhruv
2 hours ago
1
$begingroup$
Please update your schematics to the correct version.
$endgroup$
– Huisman
2 hours ago
$begingroup$
schematic updated. Sorry about that.
$endgroup$
– Dhruv
1 hour ago
add a comment |
$begingroup$
It looks like you made a mistake in your schematic:
PIN 8 of the PIC (VSS) is connected to PWR and PIN 13 of the PIC (VDD) is connected to GND. VDD must be tied to the power, and VSS to the GND.
What is the voltage of PWR? Why don't you use 3V3 for MCLR and VDD/AVDD?
$endgroup$
It looks like you made a mistake in your schematic:
PIN 8 of the PIC (VSS) is connected to PWR and PIN 13 of the PIC (VDD) is connected to GND. VDD must be tied to the power, and VSS to the GND.
What is the voltage of PWR? Why don't you use 3V3 for MCLR and VDD/AVDD?
answered 2 hours ago
PierreOlivierPierreOlivier
22529
22529
$begingroup$
Yeah, sorry about that mistake in the schematic. The actual circuit itself has the right connection though. PIN13 to pwr and VSS to GND. It is 3.3V as shown in the top-right part of the schematic, protected by a reverse current protection circuit.
$endgroup$
– Dhruv
2 hours ago
1
$begingroup$
Please update your schematics to the correct version.
$endgroup$
– Huisman
2 hours ago
$begingroup$
schematic updated. Sorry about that.
$endgroup$
– Dhruv
1 hour ago
add a comment |
$begingroup$
Yeah, sorry about that mistake in the schematic. The actual circuit itself has the right connection though. PIN13 to pwr and VSS to GND. It is 3.3V as shown in the top-right part of the schematic, protected by a reverse current protection circuit.
$endgroup$
– Dhruv
2 hours ago
1
$begingroup$
Please update your schematics to the correct version.
$endgroup$
– Huisman
2 hours ago
$begingroup$
schematic updated. Sorry about that.
$endgroup$
– Dhruv
1 hour ago
$begingroup$
Yeah, sorry about that mistake in the schematic. The actual circuit itself has the right connection though. PIN13 to pwr and VSS to GND. It is 3.3V as shown in the top-right part of the schematic, protected by a reverse current protection circuit.
$endgroup$
– Dhruv
2 hours ago
$begingroup$
Yeah, sorry about that mistake in the schematic. The actual circuit itself has the right connection though. PIN13 to pwr and VSS to GND. It is 3.3V as shown in the top-right part of the schematic, protected by a reverse current protection circuit.
$endgroup$
– Dhruv
2 hours ago
1
1
$begingroup$
Please update your schematics to the correct version.
$endgroup$
– Huisman
2 hours ago
$begingroup$
Please update your schematics to the correct version.
$endgroup$
– Huisman
2 hours ago
$begingroup$
schematic updated. Sorry about that.
$endgroup$
– Dhruv
1 hour ago
$begingroup$
schematic updated. Sorry about that.
$endgroup$
– Dhruv
1 hour ago
add a comment |
$begingroup$
The Curiosity development board is based around the PIC24FJ128GA204. If you write code that works on that micro, then of course it will not work on a PIC32MM0064GPL028. You will need to go through the process of porting the code over to the new micro, which likely involves shifting around ports, updating some definitions, etc.
$endgroup$
$begingroup$
The photo of the board shows that it is a PIC32 board.
$endgroup$
– HandyHowie
1 hour ago
$begingroup$
microchip.com/DevelopmentTools/ProductDetails/DM320101
$endgroup$
– Dhruv
1 hour ago
add a comment |
$begingroup$
The Curiosity development board is based around the PIC24FJ128GA204. If you write code that works on that micro, then of course it will not work on a PIC32MM0064GPL028. You will need to go through the process of porting the code over to the new micro, which likely involves shifting around ports, updating some definitions, etc.
$endgroup$
$begingroup$
The photo of the board shows that it is a PIC32 board.
$endgroup$
– HandyHowie
1 hour ago
$begingroup$
microchip.com/DevelopmentTools/ProductDetails/DM320101
$endgroup$
– Dhruv
1 hour ago
add a comment |
$begingroup$
The Curiosity development board is based around the PIC24FJ128GA204. If you write code that works on that micro, then of course it will not work on a PIC32MM0064GPL028. You will need to go through the process of porting the code over to the new micro, which likely involves shifting around ports, updating some definitions, etc.
$endgroup$
The Curiosity development board is based around the PIC24FJ128GA204. If you write code that works on that micro, then of course it will not work on a PIC32MM0064GPL028. You will need to go through the process of porting the code over to the new micro, which likely involves shifting around ports, updating some definitions, etc.
answered 1 hour ago
DerStrom8DerStrom8
14.1k52759
14.1k52759
$begingroup$
The photo of the board shows that it is a PIC32 board.
$endgroup$
– HandyHowie
1 hour ago
$begingroup$
microchip.com/DevelopmentTools/ProductDetails/DM320101
$endgroup$
– Dhruv
1 hour ago
add a comment |
$begingroup$
The photo of the board shows that it is a PIC32 board.
$endgroup$
– HandyHowie
1 hour ago
$begingroup$
microchip.com/DevelopmentTools/ProductDetails/DM320101
$endgroup$
– Dhruv
1 hour ago
$begingroup$
The photo of the board shows that it is a PIC32 board.
$endgroup$
– HandyHowie
1 hour ago
$begingroup$
The photo of the board shows that it is a PIC32 board.
$endgroup$
– HandyHowie
1 hour ago
$begingroup$
microchip.com/DevelopmentTools/ProductDetails/DM320101
$endgroup$
– Dhruv
1 hour ago
$begingroup$
microchip.com/DevelopmentTools/ProductDetails/DM320101
$endgroup$
– Dhruv
1 hour ago
add a comment |
$begingroup$
There is nothing connected to pin 3 (LED1) of the PIC on your breadboard, neither to pin 7 (LED2). Double check your connections.
$endgroup$
$begingroup$
Yeah I was just trying to different pins for output and must have moved them around before the picture. It's updated now, apologies again.
$endgroup$
– Dhruv
1 hour ago
add a comment |
$begingroup$
There is nothing connected to pin 3 (LED1) of the PIC on your breadboard, neither to pin 7 (LED2). Double check your connections.
$endgroup$
$begingroup$
Yeah I was just trying to different pins for output and must have moved them around before the picture. It's updated now, apologies again.
$endgroup$
– Dhruv
1 hour ago
add a comment |
$begingroup$
There is nothing connected to pin 3 (LED1) of the PIC on your breadboard, neither to pin 7 (LED2). Double check your connections.
$endgroup$
There is nothing connected to pin 3 (LED1) of the PIC on your breadboard, neither to pin 7 (LED2). Double check your connections.
answered 1 hour ago
HuismanHuisman
1,164212
1,164212
$begingroup$
Yeah I was just trying to different pins for output and must have moved them around before the picture. It's updated now, apologies again.
$endgroup$
– Dhruv
1 hour ago
add a comment |
$begingroup$
Yeah I was just trying to different pins for output and must have moved them around before the picture. It's updated now, apologies again.
$endgroup$
– Dhruv
1 hour ago
$begingroup$
Yeah I was just trying to different pins for output and must have moved them around before the picture. It's updated now, apologies again.
$endgroup$
– Dhruv
1 hour ago
$begingroup$
Yeah I was just trying to different pins for output and must have moved them around before the picture. It's updated now, apologies again.
$endgroup$
– Dhruv
1 hour ago
add a comment |
$begingroup$
turns out it was just an incorrect connection to MCLR pin. I connected the 10k resistor in the wrong position in the breadboard. The schematics are fine and the prototype is working now. Thanks a lot for helping and let me know if you want me to share something else.
New contributor
$endgroup$
$begingroup$
Congrats for finding it. This error was hardly detectable from the initial picture in your post. For next questions, I'd recommend providing clear pictures (from different angles, showing the whole setup etc) and correct schematics. Good luck with this board!
$endgroup$
– Huisman
56 mins ago
$begingroup$
Thanks. You are right, I was assuming the issue is in the schematic itself, or the components I am using. No assumptions next time! Thanks.
$endgroup$
– Dhruv
52 mins ago
add a comment |
$begingroup$
turns out it was just an incorrect connection to MCLR pin. I connected the 10k resistor in the wrong position in the breadboard. The schematics are fine and the prototype is working now. Thanks a lot for helping and let me know if you want me to share something else.
New contributor
$endgroup$
$begingroup$
Congrats for finding it. This error was hardly detectable from the initial picture in your post. For next questions, I'd recommend providing clear pictures (from different angles, showing the whole setup etc) and correct schematics. Good luck with this board!
$endgroup$
– Huisman
56 mins ago
$begingroup$
Thanks. You are right, I was assuming the issue is in the schematic itself, or the components I am using. No assumptions next time! Thanks.
$endgroup$
– Dhruv
52 mins ago
add a comment |
$begingroup$
turns out it was just an incorrect connection to MCLR pin. I connected the 10k resistor in the wrong position in the breadboard. The schematics are fine and the prototype is working now. Thanks a lot for helping and let me know if you want me to share something else.
New contributor
$endgroup$
turns out it was just an incorrect connection to MCLR pin. I connected the 10k resistor in the wrong position in the breadboard. The schematics are fine and the prototype is working now. Thanks a lot for helping and let me know if you want me to share something else.
New contributor
New contributor
answered 1 hour ago
DhruvDhruv
63
63
New contributor
New contributor
$begingroup$
Congrats for finding it. This error was hardly detectable from the initial picture in your post. For next questions, I'd recommend providing clear pictures (from different angles, showing the whole setup etc) and correct schematics. Good luck with this board!
$endgroup$
– Huisman
56 mins ago
$begingroup$
Thanks. You are right, I was assuming the issue is in the schematic itself, or the components I am using. No assumptions next time! Thanks.
$endgroup$
– Dhruv
52 mins ago
add a comment |
$begingroup$
Congrats for finding it. This error was hardly detectable from the initial picture in your post. For next questions, I'd recommend providing clear pictures (from different angles, showing the whole setup etc) and correct schematics. Good luck with this board!
$endgroup$
– Huisman
56 mins ago
$begingroup$
Thanks. You are right, I was assuming the issue is in the schematic itself, or the components I am using. No assumptions next time! Thanks.
$endgroup$
– Dhruv
52 mins ago
$begingroup$
Congrats for finding it. This error was hardly detectable from the initial picture in your post. For next questions, I'd recommend providing clear pictures (from different angles, showing the whole setup etc) and correct schematics. Good luck with this board!
$endgroup$
– Huisman
56 mins ago
$begingroup$
Congrats for finding it. This error was hardly detectable from the initial picture in your post. For next questions, I'd recommend providing clear pictures (from different angles, showing the whole setup etc) and correct schematics. Good luck with this board!
$endgroup$
– Huisman
56 mins ago
$begingroup$
Thanks. You are right, I was assuming the issue is in the schematic itself, or the components I am using. No assumptions next time! Thanks.
$endgroup$
– Dhruv
52 mins ago
$begingroup$
Thanks. You are right, I was assuming the issue is in the schematic itself, or the components I am using. No assumptions next time! Thanks.
$endgroup$
– Dhruv
52 mins ago
add a comment |
Dhruv is a new contributor. Be nice, and check out our Code of Conduct.
Dhruv is a new contributor. Be nice, and check out our Code of Conduct.
Dhruv is a new contributor. Be nice, and check out our Code of Conduct.
Dhruv is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Electrical Engineering Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f430286%2fpic32-programming-successfully-but-not-working%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
$begingroup$
Shouldn't the LED on the development board have a resistor in series as well? And why is it connected to MCLR? You may have damaged RB13 as it should not exceed the abs max ratings (chapt 26.0 datasheet)
$endgroup$
– Huisman
2 hours ago
$begingroup$
The LED on the development board is working fine even without the resistor (although a resistor is recommended, you are right). The problem is in the breadboard circuit (resistor included) which is not triggering the led.
$endgroup$
– Dhruv
2 hours ago
$begingroup$
What voltage do you measure on pins 3, 7 and 24? If you measure 3.3V, check the polarity of the LEDs.
$endgroup$
– Huisman
2 hours ago
1
$begingroup$
@Dhruv The series resistor is not just recommended, it is required. Otherwise you WILL damage your LEDs and/or your PIC
$endgroup$
– DerStrom8
1 hour ago
$begingroup$
@Huisman it shows 0.16V. It goes high for almost half a second while the code is uploading, and the goes back to zero. Leds are placed correctly.
$endgroup$
– Dhruv
1 hour ago