comparison OSTC3Operations.cpp @ 5:115cfa4a3239 default tip

Added icon upload function for OSTC 4/5 For the upload the same process as the one for the firmware update is used => CRC functionality has been copied from the ostc_pack SW
author Ideenmodellierer
date Tue, 30 Dec 2025 21:41:02 +0100
parents 0b3630a29ad8
children
comparison
equal deleted inserted replaced
4:e30f00f760d3 5:115cfa4a3239
495 // NOTE: Service mode requires a special starting sequence, different from 495 // NOTE: Service mode requires a special starting sequence, different from
496 // the usual download mode state. 496 // the usual download mode state.
497 // Also, the general acknowledge byte is changed to 0x4c 'L'. 497 // Also, the general acknowledge byte is changed to 0x4c 'L'.
498 498
499 assert( _connectMode != SERVICE_MODE ); 499 assert( _connectMode != SERVICE_MODE );
500 _serial.open( Settings::port, emulatorName); 500
501 _serial.sleep(333); // Initial 1/3 sec before trying service mode... 501 if( _connectMode == CLOSED_MODE )
502 502 {
503 _serial.open( Settings::port, emulatorName);
504 _serial.sleep(333); // Initial 1/3 sec before trying service mode...
505 }
503 for(int retry=0; retry < 10; ++retry) 506 for(int retry=0; retry < 10; ++retry)
504 { 507 {
505 unsigned char serviceMode[] = { 0xAA, 0xAB, 0xCD, 0xEF }; 508 unsigned char serviceMode[] = { 0xAA, 0xAB, 0xCD, 0xEF };
506 509
507 try { 510 try {