Skip to content

Bootloader example for QSPIFLASH #9

@steckes

Description

@steckes

Hey!

I wanted to use the QSPI bootloader to flash a program that is above 480KB.

I changed REGION_ALIAS("FLASH", SRAM) to REGION_ALIAS("FLASH", QSPIFLASH) and the SRAM from 512K - 32K to 512K according to the lds file in the daisy repo (https://github.com/electro-smith/libDaisy/blob/c6887c69c9d38a54bc5ba15bc89e4c2256c04895/core/STM32H750IB_qspi.lds).

The program does even boot and prints something but gets stuck immediately.

Does someone know which other changes are necessary to do that?

Here is the complete file:

MEMORY
{
	DTCMRAM     (RWX) : ORIGIN = 0x20000000, LENGTH = 128K
	SRAM        (RWX) : ORIGIN = 0x24000000, LENGTH = 512K
	RAM_D2_DMA  (RWX) : ORIGIN = 0x30000000, LENGTH = 32K
	RAM_D2      (RWX) : ORIGIN = 0x30008000, LENGTH = 256K
	RAM_D3      (RWX) : ORIGIN = 0x38000000, LENGTH = 64K
	BACKUP_SRAM (RWX) : ORIGIN = 0x38800000, LENGTH = 4K
	ITCMRAM     (RWX) : ORIGIN = 0x00000000, LENGTH = 64K
	SDRAM       (RWX) : ORIGIN = 0xc0000000, LENGTH = 64M
	QSPIFLASH   (RX)  : ORIGIN = 0x90040000, LENGTH = 7936K
}

REGION_ALIAS(RAM, DTCMRAM);
REGION_ALIAS("FLASH", QSPIFLASH);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions