strtok sets FLASH SR flags
I'm using the STM32CubeIde 1.12.0 Build: 14980_20230301_1550 together with the STM32Cube_FW_G4_V1.5.1 and FreeRtos.
When I run the strtok the first time I see that the Register in FLASH->SR change the value from 0x00 to 0xe0. What later makes problem when I use the HAL_Flash functions.
I moved also the strtok call from the task method to the main prior to the FreeRtos setup with the same effect.
#define SVN_URL "https://bla/svn/myProject/trunk"
char *pLast;
pch = strtok (SVN_URL,"/");
while (pch != NULL)
{
pLast = pch;
pch = strtok (NULL, "/");
}
Does this come from the issue
If yes are there recommondations from ST how to handle this?