Open skcks opened 4 years ago
There are two possibilities that I can think of.
The first is that you haven't programmed the chip yet. The default for flash memory is for bits to be in the 1 state - they can only become 0 when programmed. You may simply be reading the default memory contents.
The second is that the Arduino is not communicating with the chip properly - the data line is somehow being pulled high and so it only ever reads 1 bits. Check the programming voltage and the ICSP connections.
I trying to read out hex from pic16f887,but get nothing except 0x3FFF;
23:42:57.649 -> OK 23:42:57.649 -> DeviceID: 2082 23:42:57.649 -> DeviceName: pic16f887 23:42:57.684 -> ProgramRange: 0000-1FFF 23:42:57.719 -> ConfigRange: 2000-2008 23:42:57.719 -> DataRange: 2100-21FF 23:42:57.753 -> ConfigWord: 3FFF 23:42:57.753 -> .
./ardpicprog -d pic16f887 -p /dev/ttyS5 -o pic.hex /dev/ttyACM0 Ardpicprog version 0.1.2, Copyright (c) 2012 Southern Storm Pty Ltd. Ardpicprog comes with ABSOLUTELY NO WARRANTY; for details type
ardpicprog --warranty'. This is free software, and you are welcome to redistribute it under certain conditions; type
ardpicprog --copying' for details.Initializing programmer ... Device pic16f887, program memory: 8192 words, data memory: 256 bytes. Reading program memory, reading data memory, reading id words and fuses, done.
pic.zip