PX4 Firmware
PX4 Autopilot Software http://px4.io
bl_update.c File Reference

STM32F4 & STM32F7 bootloader update tool. More...

#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/log.h>
#include <px4_platform_common/module.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <arch/board/board.h>
#include <nuttx/progmem.h>
Include dependency graph for bl_update.c:

Go to the source code of this file.

Macros

#define BL_FILE_SIZE_LIMIT   16384
 
#define STM_RAM_BASE   STM32_SRAM_BASE
 

Functions

__EXPORT int bl_update_main (int argc, char *argv[])
 

Detailed Description

STM32F4 & STM32F7 bootloader update tool.

Definition in file bl_update.c.

Macro Definition Documentation

◆ BL_FILE_SIZE_LIMIT

#define BL_FILE_SIZE_LIMIT   16384

Definition at line 60 of file bl_update.c.

Referenced by bl_update_main().

◆ STM_RAM_BASE

#define STM_RAM_BASE   STM32_SRAM_BASE

Definition at line 61 of file bl_update.c.

Referenced by bl_update_main().

Function Documentation

◆ bl_update_main()

int bl_update_main ( int  argc,
char *  argv[] 
)

Definition at line 89 of file bl_update.c.

References BL_FILE_SIZE_LIMIT, fd, print_usage(), read(), and STM_RAM_BASE.

Here is the call graph for this function: