@@ -227,7 +227,7 @@ public boolean eraseFlash(int startAddress, int len) throws IOException, Timeout
227
227
int endAddress = startAddress + len ;
228
228
229
229
if (pagesSizes .length > 1 ) {
230
- System .err .println ("eraseFlash: target has multiple pages size, no support yet, use EraseAll ." );
230
+ System .err .println ("eraseFlash: target has multiple pages size, no support yet, use eraseAllFlash ." );
231
231
return false ;
232
232
}
233
233
@@ -298,7 +298,7 @@ public boolean readAllFlash(byte[] flash) throws IOException, TimeoutException {
298
298
int len = min (count - read , CMD_READ_MAX_SIZE );
299
299
byte [] b = new byte [len ];
300
300
if (!cmdReadMemory (mSTM32DevInfo .getFlashStart () + read , b )) {
301
- System .out .println ("\n could not cmdReadMemory, abort." );
301
+ System .err .println ("\n could not cmdReadMemory, abort." );
302
302
return false ;
303
303
}
304
304
System .arraycopy (b , 0 , flash , read , len );
@@ -332,7 +332,7 @@ public boolean writeFlash(byte[] flash, boolean compare) throws IOException, Tim
332
332
byte [] v = new byte [len ];
333
333
334
334
if (!cmdReadMemory (mSTM32DevInfo .getFlashStart () + written , v )) {
335
- System .out .println ("\n could not cmdReadMemory, abort." );
335
+ System .err .println ("\n could not cmdReadMemory, abort." );
336
336
complete (false );
337
337
return false ;
338
338
}
0 commit comments