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

Readed file larger than expected. PIC32MX795F512L , PicKit2 , Linux #25

Open
Pe3ucTop opened this issue Dec 23, 2015 · 1 comment
Open

Comments

@Pe3ucTop
Copy link

Hello,

First of all - Thanks, it's great project help me every day.
But, today I found some bug at reading flash, result file was bigger than expected.
At : "
$ pic32prog -r uapp_in_flash.bin 0x1d008000 491264
Programmer for Microchip PIC32 microcontrollers, Version 2.0.184
Copyright: (C) 2011-2015 Serge Vakulenko
Memory: total 491264 bytes
Adapter: PICkit2 Version 2.32.0
Read: ############################################################# done
Rate: 4529 bytes per second
"
But in reality file size : "
-rw-r--r-- 1 n n 491520 Dec 23 19:57 uapp_in_flash.bin
"
Data in file is Real from flash even extra bytes .
It's look like Pic32prog still read by blocks of 4k (PIC32MX795) and write to file the same way. Or there is some other bug in code.
At this time I cut file but it would be great to see correct results from pic32prog.

P.S. System info - Linux , programmer PicKit2 , chip - PIC32MX795F512L , pic32prog Version 2.0.184 .

Best regards,
Maksims

@Pe3ucTop
Copy link
Author

Small additional info, today tried to read only 256 bytes got file 1024 bytes long.

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

1 participant