Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question]read out hex file which is fill with 0x3FFF #9

Open
skcks opened this issue Sep 30, 2019 · 1 comment
Open

[question]read out hex file which is fill with 0x3FFF #9

skcks opened this issue Sep 30, 2019 · 1 comment

Comments

@skcks
Copy link

skcks commented Sep 30, 2019

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

@rweather
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants