By default, the debugger pins on ORbit16 are shared with PGEC3(RA1 - A1/P6 on board) and PGED3(RA0 - A0/P5 on board), so is not possible to debug programs using the icsp connector. If you want to move the debugger pins to ICSP is quite simple:
- download "config_word.h" from downloads section
- change the __CONFIG1 (row 98): put ICS_PGx2 instead of ICS_PGx3
- in your program #include "config_word.h"
- if you're using the bootloader, don't forget to enable the checkbox "allow config word programming"
Nessun commento:
Posta un commento