|
CTS-SAT-1-OBC-Firmware
|
#include "telecommands/stm32_internal_flash_telecommand_defs.h"#include "telecommand_exec/telecommand_args_helpers.h"#include "stm32/stm32_internal_flash_drivers.h"#include "stm32l4xx_hal.h"#include <stdio.h>#include <string.h>
Functions | |
| uint8_t | TCMDEXEC_stm32_internal_flash_write (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Write data to the internal flash bank starting from address 0x08100000. | |
| uint8_t | TCMDEXEC_stm32_internal_flash_read (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Read data from the internal flash bank. | |
| uint8_t | TCMDEXEC_stm32_internal_flash_erase (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Erase a range of pages in the internal flash bank. Only Erases for Flash Bank 2. | |
| uint8_t | TCMDEXEC_stm32_internal_flash_get_option_bytes (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Get the option bytes configuration from the stm32 internal flash memory. | |
| uint8_t | TCMDEXEC_stm32_internal_flash_set_active_flash_bank (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Given a 1 or 2, switches to the respective flash bank and runs the application stored there if present. Mostly useful for switching between 2 different version of the firmware (1 will be stored in Flash Bank 1, other will be stored in Flash Bank 2) | |
| uint8_t | TCMDEXEC_stm32_internal_flash_get_active_flash_bank (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Prints the active flash bank where the firmware boots from. | |
| uint8_t TCMDEXEC_stm32_internal_flash_erase | ( | const char * | args_str, |
| char * | response_output_buf, | ||
| uint16_t | response_output_buf_len ) |
Erase a range of pages in the internal flash bank. Only Erases for Flash Bank 2.
| args_str |
|

| uint8_t TCMDEXEC_stm32_internal_flash_get_active_flash_bank | ( | const char * | args_str, |
| char * | response_output_buf, | ||
| uint16_t | response_output_buf_len ) |
Prints the active flash bank where the firmware boots from.
| response_output_buf | Prints the active bank |

| uint8_t TCMDEXEC_stm32_internal_flash_get_option_bytes | ( | const char * | args_str, |
| char * | response_output_buf, | ||
| uint16_t | response_output_buf_len ) |
Get the option bytes configuration from the stm32 internal flash memory.
| args_str | No args |

| uint8_t TCMDEXEC_stm32_internal_flash_read | ( | const char * | args_str, |
| char * | response_output_buf, | ||
| uint16_t | response_output_buf_len ) |
Read data from the internal flash bank.
| args_str |
|

| uint8_t TCMDEXEC_stm32_internal_flash_set_active_flash_bank | ( | const char * | args_str, |
| char * | response_output_buf, | ||
| uint16_t | response_output_buf_len ) |
Given a 1 or 2, switches to the respective flash bank and runs the application stored there if present. Mostly useful for switching between 2 different version of the firmware (1 will be stored in Flash Bank 1, other will be stored in Flash Bank 2)
| args_str |
|
| response_output_buf | Prints error if it occurs |

| uint8_t TCMDEXEC_stm32_internal_flash_write | ( | const char * | args_str, |
| char * | response_output_buf, | ||
| uint16_t | response_output_buf_len ) |
Write data to the internal flash bank starting from address 0x08100000.
| args_str |
|
