|
|
View previous topic :: View next topic |
Author |
Message |
allenhuffman
Joined: 17 Jun 2019 Posts: 554 Location: Des Moines, Iowa, USA
|
[SOLVED]#use rs232(ICD,...) debugger printfs on 24EP256GP202 |
Posted: Tue Aug 20, 2019 10:24 am |
|
|
I am now trying to get debug printfs working on another board. This one uses the PIC24EP256GP202.
Using the same #use rs232(ICD) that works on another board (and the Explorer), I get no output. (Serial I/O Monitor opens, but nothing happens.) I expect it is a config difference on this board.
As far as I can tell from the schematics, the ICSP is wired to:
1 - MCLR
2 - 3V
3 - GND
4 - PGED1 (RB3)
5 - PGEC1 (RB2)
I tried
#use rs232(ICD,XMIT=PIN_B2,RCV=PIN_B3)
and
#use rs232(ICD,XMIT=PIN_B3,RCV=PIN_B2)
...with no results. The board that works is using B0 and B1, and it works without specifying XMIT or RCV.
Are there other things that might need to be done to get debug output running?
Thanks! _________________ Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ?
Last edited by allenhuffman on Tue Aug 20, 2019 11:28 am; edited 1 time in total |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Aug 20, 2019 11:22 am |
|
|
What is the other board ? If it's manufactured, tell us the manufacturer
and the name, model or part number. |
|
|
allenhuffman
Joined: 17 Jun 2019 Posts: 554 Location: Des Moines, Iowa, USA
|
|
Posted: Tue Aug 20, 2019 11:26 am |
|
|
PCM programmer wrote: | What is the other board ? If it's manufactured, tell us the manufacturer
and the name, model or part number. |
Designed by us, manufactured for us
Turns out, there was a typo in the schematic. Once I figured that out, and confirmed with the hardware group, I was able to get it working:
Code: |
/*
1 - MCLR
2 - 3V
3 - GND
4 - PGED3 (RB0)
5 - PGEC3 (RB1)
*/
#use rs232(ICD,XMIT=PIN_B0,RCV=PIN_B1)
|
Thanks! _________________ Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ? |
|
|
niels_J
Joined: 16 Nov 2012 Posts: 2
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|