Rev 18 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 18 | Rev 21 | ||
---|---|---|---|
Line 519... | Line 519... | ||
519 | if (FlashStatus != HAL_FLASH_ERROR_NONE) |
519 | if (FlashStatus != HAL_FLASH_ERROR_NONE) |
520 | { |
520 | { |
521 | return FlashStatus; |
521 | return FlashStatus; |
522 | } |
522 | } |
523 | /* Set variable virtual address */ |
523 | /* Set variable virtual address */ |
524 | HAL_FLASH_Unlock(); |
- | |
525 | HAL_FLASH_Program(FLASH_TYPEPROGRAM_HALFWORD,Address + 2 ,VirtAddress); |
524 | HAL_FLASH_Program(FLASH_TYPEPROGRAM_HALFWORD,Address + 2 ,VirtAddress); |
526 | /* If program operation was failed, a Flash error code is returned */ |
525 | /* If program operation was failed, a Flash error code is returned */ |
527 | FlashStatus = HAL_FLASH_GetError(); |
526 | FlashStatus = HAL_FLASH_GetError(); |
528 | /* Return program operation status */ |
527 | /* Return program operation status */ |
529 | return FlashStatus; |
528 | return FlashStatus; |