Code Monkey home page Code Monkey logo

stm32f030rct6_bl's Introduction

STM32F030RCT6_BL

REFER HOST APPLICATION

https://github.com/hi3520/STM32_Firmware_Uploader_linux

BOOTLOADER NOTE START:

Step #1 The RAM & FLASH LENGTH are different for each ChipSet of ST. So refer data sheet modify as per your need's

PROJECT DETAILS:

Project name: BOOTLOADER

ChipSet Name: STM32F030RCT6

		RAM: 32K

	  FLASH: 256K

SOFTWARE DETAILS:

		 IDE: STM32CUBEIDE

BootLoader Size: 20K Application Size: 256K - 20K

Step #2 Based On "Step #1" Details & Modify Below Section and Update into Linker File Script

 /* Memories Definition */
MEMORY
{
  RAM    		(xrw)   : ORIGIN = 0x200000C0,   LENGTH = 32K - 192 /* 192 For Vector Table Relocate */
  BOOTLOADER	(rx)    : ORIGIN = 0x8000000,   LENGTH = 20K
  /*FIRMWARE		(rx)    : ORIGIN = 0x8005000,   LENGTH = 256K - 20K*/
}
/* Main App Start Symbol */
_main_app_start_address = 0x08005000;

/* For Main Application, change BOOTLOADER by FIRMWARE */
REGION_ALIAS("FLASH", BOOTLOADER );

Step #3 Call "BL_JumpToApp" in Main after the Driver initialization

FIRMWARE NOTE START:

Step #1 The RAM & FLASH LENGTH are different for each ChipSet of ST. So refer data sheet modify as per your need's

Step #2 Based On "Step #1" Details & Modify Below Section and Update into Linker File Script

 /* Memories Definition */
MEMORY
{
  RAM    		(xrw)   : ORIGIN = 0x200000C0,   LENGTH = 32K - 192 /* 192 For Vector Table Relocate */
  /*BOOTLOADER	(rx)    : ORIGIN = 0x8000000,   LENGTH = 20K*/
  FIRMWARE		(rx)    : ORIGIN = 0x8005000,   LENGTH = 256K - 20K
}
/* Main App Start Symbol */
_main_app_start_address = 0x08005000;

/* For Main Application, change BOOTLOADER by FIRMWARE */
REGION_ALIAS("FLASH", FIRMWARE );

Step #3 Copy below variables in main.c as global vairables

extern uint32_t _main_app_start_address;

#define FIRMWARE_START_ADDR (uint32_t)(&_main_app_start_address)

Step #4 Call "Main_APP_Init " API in Before the Driver initialization. {For Reset vector table copying process}

stm32f030rct6_bl's People

Contributors

rtx93 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.