/Modules/ARM/STM32F10xRxT/SW/RS232_bootloader/Src/STMFlashLoader/Ini.cpp
868,9 → 868,9
// extract the sub-string on left side of the '='
LPTSTR psz = new TCHAR[_tcslen(lpString) + 1];
 
//#ifndef _VS6_USED
#ifndef _VS6_USED
int i;
//#endif
#endif
 
for (int i = 0; &lpString[i] < p; i++)
psz[i] = lpString[i];
/Modules/ARM/STM32F10xRxT/SW/RS232_bootloader/Src/STMFlashLoader/STMFlashLoader.cpp
440,17 → 440,15
// BOOT0 = High
STBL_SetDtr(TRUE);
Sleep(100);
Sleep(50);
// Reset = Low
STBL_SetRts(TRUE);
 
Sleep(100);
Sleep(50);
 
// Reset = High
STBL_SetRts(FALSE);
Sleep(100);
 
STBL_SetDtr(FALSE);
Sleep(100);
COM_Close();
457,19 → 455,18
COM_Open();
 
STBL_SetDtr(TRUE);
Sleep(100);
Sleep(50);
// Reset = Low
STBL_SetRts(TRUE);
 
Sleep(100);
Sleep(50);
 
// Reset = High
STBL_SetRts(FALSE);
Sleep(100);
 
STBL_SetDtr(FALSE);
Sleep(500);
 
//Sleep(1000);
write_debug_info("Setting device to BOOT0", 0 ,0, 0, OK);
 
//printf("\n RTS set low. Press any key to continue ... 4");
677,9 → 674,9
BOOL VerifySuccess = TRUE;
_sleep(100);;
 
//#ifndef _VS6_USED
#ifndef _VS6_USED
int el;
//#endif
#endif
for (el=0; el< (int)NbElements;el++)
{
IMAGEELEMENT Element={0};
755,9 → 752,9
 
printf("\nerasing %i sectors : ", sectors[0]);
 
//#ifndef _VS6_USED
#ifndef _VS6_USED
int i;
//#endif
#endif
 
for(i = 1; i<= nsec; i++)
{
1161,9 → 1158,9
BOOL VerifySuccess = TRUE;
_sleep(100);
 
//#ifndef _VS6_USED
#ifndef _VS6_USED
int el;
//#endif
#endif
 
for (el=0; el< (int)NbElements;el++)
{
1596,9 → 1593,9
 
printf("\nenabling write protection %i sectors : ", sectors[0]);
 
//#ifndef _VS6_USED
#ifndef _VS6_USED
int i;
//#endif
#endif
 
for(i = 1; i<= nsec; i++)
{