
UM0516
STBLLIB library
2.3.22
STBL_WRITE_PROTECT
BYTE STBL_WRITE_PROTECT(BYTE NbSectors, LPBYTE pSectors)
Enable write protection of given sectors/pages.
Table 24. STBL_WRITE_PROTECT description
Field
Type
Description
NbSectors BYTE
Number of sectors to be write-protected.
Input
pSectors LPBYTE Pointer to sector code buffer.
Output
BYTE
SUCCESS, Error otherwise (see Error codes.).
2.3.23
Note:
STBL_WRITE_TEMP_UNPROTECT
BYTE STBL_WRITE_TEMP_UNPROTECT()
Disables the write protection temporarily.
This command is not available in the “STM32F101xx and STM32F103xx system memory
boot mode” (AN2606).
Table 25. STBL_WRITE_TEMP_UNPROTECT description
Field
Type
Description
Output
BYTE
SUCCESS, Error otherwise (see Error codes.).
2.3.24
SetCOMSettings
BYTE SetCOMSettings(int numPort, long speedInBaud, int nbBit, int
parity, float nbStopBit)
Configures the serial port.
Doc ID 14490 Rev 2
15/26

























