pic32prog icon indicating copy to clipboard operation
pic32prog copied to clipboard

Readed file larger than expected. PIC32MX795F512L , PicKit2 , Linux

Open Pe3ucTop opened this issue 9 years ago • 1 comments

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 avatar Dec 23 '15 18:12 Pe3ucTop

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

Pe3ucTop avatar Dec 29 '15 12:12 Pe3ucTop