Flash#

Interface to internal flash.

Used for writing application images to the main flash.

Functions#

bool
flash_erasePage(uint32_t address)

Erase a flash page.

bool
flash_writeBuffer_dma(uint32_t address, void *data, size_t length, int ch)

Write buffer to internal flash.

bool
flash_writeBuffer(uint32_t address, void *data, size_t length)

Write buffer to internal flash.

Macros#

#define

DMA Channel for MSC write.

Function Documentation#

flash_erasePage#

bool flash_erasePage (uint32_t address)

Erase a flash page.

Parameters
[in]address

Start address of the flash page to erase.

Returns

  • True if operation was successful


Definition at line 53 of file platform/bootloader/core/flash/btl_internal_flash.h

flash_writeBuffer_dma#

bool flash_writeBuffer_dma (uint32_t address, void * data, size_t length, int ch)

Write buffer to internal flash.

Parameters
N/Aaddress

Starting address to write data to. Must be half-word aligned.

N/Adata

Data buffer to write to internal flash

N/Alength

Amount of bytes in the data buffer to write

N/Ach

DMA channel to use

Returns

  • True if operation was successful


Definition at line 64 of file platform/bootloader/core/flash/btl_internal_flash.h

flash_writeBuffer#

bool flash_writeBuffer (uint32_t address, void * data, size_t length)

Write buffer to internal flash.

Parameters
N/Aaddress

Starting address to write data to. Must be half-word aligned.

N/Adata

Data buffer to write to internal flash

N/Alength

Amount of bytes in the data buffer to write

Returns

  • True if operation was successful


Definition at line 77 of file platform/bootloader/core/flash/btl_internal_flash.h

Macro Definition Documentation#

SL_GBL_MSC_LDMA_CHANNEL#

#define SL_GBL_MSC_LDMA_CHANNEL
Value:
2

DMA Channel for MSC write.


Definition at line 42 of file platform/bootloader/core/flash/btl_internal_flash.h