Trident IoT SDK
 
Loading...
Searching...
No Matches
bootloader.h File Reference

SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com More...

#include "tr_hal_config.h"
#include "tr_printf.h"
+ Include dependency graph for bootloader.h:

Go to the source code of this file.

Macros

#define FLASH_PAGE_PROGRAMMING_SIZE   256
 
#define SIZE_OF_FLASH_SECTOR_ERASE   4096
 
#define FLASH_PAGE_MASK   (~(256 - 1))
 
#define PRINT_ENABLE   0
 
#define LOOK_FOR_START_CHAR   1
 
#define PRINT(...)
 

Functions

void set_flash_erase (uint32_t flash_addr, uint32_t image_size)
 
int serial_read (int length, int timeout_ms)
 
uint32_t crc32 (uint32_t flash_addr, uint32_t data_len)
 

Detailed Description

SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com



Macro Definition Documentation

◆ FLASH_PAGE_MASK

#define FLASH_PAGE_MASK   (~(256 - 1))

◆ FLASH_PAGE_PROGRAMMING_SIZE

#define FLASH_PAGE_PROGRAMMING_SIZE   256

◆ LOOK_FOR_START_CHAR

#define LOOK_FOR_START_CHAR   1

◆ PRINT

#define PRINT ( ...)

◆ PRINT_ENABLE

#define PRINT_ENABLE   0

◆ SIZE_OF_FLASH_SECTOR_ERASE

#define SIZE_OF_FLASH_SECTOR_ERASE   4096

Function Documentation

◆ crc32()

uint32_t crc32 ( uint32_t flash_addr,
uint32_t data_len )

◆ serial_read()

int serial_read ( int length,
int timeout_ms )

◆ set_flash_erase()

void set_flash_erase ( uint32_t flash_addr,
uint32_t image_size )