diff --git a/a__box_2main_8h_source.html b/a__box_2main_8h_source.html index 6bd4de05..f9cc265d 100644 --- a/a__box_2main_8h_source.html +++ b/a__box_2main_8h_source.html @@ -207,7 +207,7 @@
- + diff --git a/bootloader_2can_2can__parse_8h_source.html b/bootloader_2can_2can__parse_8h_source.html index e291964e..369cd63a 100644 --- a/bootloader_2can_2can__parse_8h_source.html +++ b/bootloader_2can_2can__parse_8h_source.html @@ -436,14 +436,14 @@#include "inttypes.h"
#include "common/bootloader/bootloader_common.h"
#include "can_parse.h"
#include "common/bootloader/bootloader_common.h"
#include "node_defs.h"
#include "bootloader.h"
Macros | |
#define | CAN_TX_BLOCK_TIMEOUT (30 * 16000) |
#define | TargetCoreClockrateHz 16000000 |
#define | BOOTLOADER_INITIAL_TIMEOUT 3000 |
#define | CAN_TX_BLOCK_TIMEOUT (30 * 16000) |
Functions | |
void | HardFault_Handler () |
void | Default_Handler () |
void | jump_to_application (void) |
bool | check_boot_health (void) |
void | canTxSendToBack (CanMsgTypeDef_t *msg) |
int | main (void) |
void | SysTick_Handler (void) |
void | CAN1_RX0_IRQHandler () |
void | SysTick_Handler (void) |
Variables | |
GPIOInitConfig_t | gpio_config [] |
ClockRateConfig_t | clock_config |
uint32_t | APB1ClockRateHz |
uint32_t | APB2ClockRateHz |
uint32_t | PLLClockRateHz |
ClockRateConfig_t | clock_config |
q_handle_t | q_tx_can |
q_handle_t | q_rx_can |
char | __isr_vector_start |
char | _eboot_flash |
char | _estack |
#define BOOTLOADER_INITIAL_TIMEOUT 3000 | +
bool check_boot_health | -( | -void | ) | -- |
-
|
- -extern | -
void jump_to_application | -( | -void | ) | -- |
-
|
- -extern | -
-
|
- -extern | -
-
|
- -extern | -
CAN Bootloader: +More...
#include "bootloader.h"
Macros | |
#define | MAX_FIRMWARE_SIZE 0x40000 |
#define | BL_ADDRESS_BOOTLOADER 0x08000000 |
#define | BL_ADDRESS_CRC 0x08004000 |
#define | BL_ADDRESS_APP 0x08008000 |
#define | BL_ADDRESS_BUFFER BL_ADDRESS_APP |
#define | BL_ADDRESS_BACKUP 0x08080000 |
#define | BL_ADDRESS_CRC_CRC ((BL_ADDRESS_CRC) + 0) |
#define | BL_ADDRESS_CRC_ADDR ((BL_ADDRESS_CRC) + 4) |
#define | BL_ADDRESS_CRC_SIZE ((BL_ADDRESS_CRC) + 8) |
#define | BUFFER_SIZE 128 |
#define | NODE_CASE_BL_RESPONSE(app_id, resp_func) |
#define | NODE_BL_CMD_CALLBACK(callback_name, can_msg_name, node_id) |
Functions | |
void | BL_init (uint32_t *app_flash_start, volatile uint32_t *bootloader_ms_ptr) |
void | BL_checkAndBoot (void) |
void | bitstream_data_CALLBACK (CanParsedData_t *msg_data_a) |
void | BL_processCommand (BLCmd_t cmd, uint32_t data) |
Process an incoming bootlaoder command. | |
bool | BL_flashStarted (void) |
bool | BL_flashComplete (void) |
The entire application has been written to flash. | |
volatile uint32_t * | BL_getCurrentFlashAddress (void) |
void | BL_timeout (void) |
void | bitstream_data_CALLBACK (CanParsedData_t *msg_data_a) |
void | BL_sendStatusMessage (uint8_t cmd, uint32_t data) |
Send a Bootloader status message with the correct app ID. | |
Variables | |
q_handle_t | q_tx_can |
char | __isr_vector_start |
char | _eboot_flash |
char | _estack |
CAN Bootloader:
+ +#define BL_ADDRESS_APP 0x08008000 | +
#define BL_ADDRESS_BACKUP 0x08080000 | +
#define BL_ADDRESS_BOOTLOADER 0x08000000 | +
#define BL_ADDRESS_BUFFER BL_ADDRESS_APP | +
#define BL_ADDRESS_CRC 0x08004000 | +
#define BL_ADDRESS_CRC_ADDR ((BL_ADDRESS_CRC) + 4) | +
#define BL_ADDRESS_CRC_CRC ((BL_ADDRESS_CRC) + 0) | +
#define BL_ADDRESS_CRC_SIZE ((BL_ADDRESS_CRC) + 8) | +
#define BUFFER_SIZE 128 | +
#define MAX_FIRMWARE_SIZE 0x40000 | +
bool BL_flashComplete | +void BL_checkAndBoot | ( | void | ) | @@ -221,11 +390,6 @@ |
volatile uint32_t * BL_getCurrentFlashAddress | -( | -void | ) | -- |
void BL_init | +void BL_processCommand | ( | -uint32_t * | app_flash_start, | +BLCmd_t | cmd, |
- | volatile uint32_t * | bootloader_ms_ptr ) | +uint32_t | data ) |
void BL_processCommand | +void BL_sendStatusMessage | ( | -BLCmd_t | cmd, | +uint8_t | cmd, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -302,67 +449,55 @@ |
cmd | |
data |
|
+ +extern | +
Send a Bootloader status message with the correct app ID.
-cmd | Command/status enum, see BLStatus_t |
data | Status data, context specific |
|
+ +extern | +
q_handle_t q_tx_can | +char _estack |
Enumerations | |
enum | BLStatus_t { - BLSTAT_INVALID = 0 -, BLSTAT_BOOT = 1 -, BLSTAT_WAIT = 2 -, BLSTAT_METDATA_RX = 3 -, - BLSTAT_PROGRESS = 4 -, BLSTAT_DONE = 5 -, BLSTAT_JUMP_TO_APP = 6 -, BLSTAT_INVAID_APP = 7 -, - BLSTAT_UNKNOWN_CMD = 8 - + |
enum | BLStatus_t { BLSTAT_VALID = 0 +, BLSTAT_INVALID = 1 +, BLSTAT_INVALID_CRC = 2 +, BLSTAT_UNKNOWN_CMD = 3 } |
enum | BLError_t { @@ -126,29 +117,21 @@ , BLERROR_ADDR_BOUND = 3 , BLERROR_FLASH = 4 +, BLERROR_SIZE = 5 } |
Functions | |
void | BL_init (uint32_t *app_flash_start, volatile uint32_t *bootloader_ms_ptr) |
void | BL_checkAndBoot (void) |
void | BL_processCommand (BLCmd_t cmd, uint32_t data) |
Process an incoming bootlaoder command. | |
bool | BL_flashComplete (void) |
The entire application has been written to flash. | |
void | BL_sendStatusMessage (uint8_t cmd, uint32_t data) |
Send a Bootloader status message with the correct app ID. | |
bool | BL_flashStarted (void) |
void | BL_timeout (void) |
volatile uint32_t * | BL_getCurrentFlashAddress (void) |
bool BL_flashComplete | +void BL_checkAndBoot | ( | void | ) | @@ -213,11 +192,6 @@ |
volatile uint32_t * BL_getCurrentFlashAddress | -( | -void | ) | -- |
void BL_init | -( | -uint32_t * | app_flash_start, | -
- | - | volatile uint32_t * | bootloader_ms_ptr ) | -
Process an incoming bootlaoder command.
-cmd | |
data |
Send a Bootloader status message with the correct app ID.
-cmd | Command/status enum, see BLStatus_t |
data | Status data, context specific |
void BL_timeout | -( | -void | ) | -- |
+ PER Firmware
+
+ |
+
Hardware CRC32 w/ software fallback. +More...
+#include "crc.h"
+Functions | |
void | PHAL_CRC32_Reset (void) |
void | PHAL_CRC32_Init (void) |
uint32_t | PHAL_CRC32_Calculate (uint32_t *data, uint32_t count) |
uint32_t | PHAL_CRC32_CalculateSW (uint32_t *data, uint32_t count) |
Hardware CRC32 w/ software fallback.
+ +uint32_t PHAL_CRC32_Calculate | +( | +uint32_t * | data, | +
+ | + | uint32_t | count ) | +
uint32_t PHAL_CRC32_CalculateSW | +( | +uint32_t * | data, | +
+ | + | uint32_t | count ) | +
void PHAL_CRC32_Init | +( | +void | ) | ++ |
void PHAL_CRC32_Reset | +( | +void | ) | ++ |
+ PER Firmware
+
+ |
+
Hardware CRC32 w/ software fallback. +More...
+ +Go to the source code of this file.
++Functions | |
void | PHAL_CRC32_Reset (void) |
uint32_t | PHAL_CRC32_Calculate (uint32_t *data, uint32_t count) |
uint32_t | PHAL_CRC32_CalculateSW (uint32_t *data, uint32_t count) |
Hardware CRC32 w/ software fallback.
+ +uint32_t PHAL_CRC32_Calculate | +( | +uint32_t * | data, | +
+ | + | uint32_t | count ) | +
uint32_t PHAL_CRC32_CalculateSW | +( | +uint32_t * | data, | +
+ | + | uint32_t | count ) | +
void PHAL_CRC32_Reset | +( | +void | ) | ++ |
+ PER Firmware
+
+ |
+
- PER Firmware
-
- |
-