From 96d6da4e252b06dcfdc041e7df23e86161c33007 Mon Sep 17 00:00:00 2001 From: rihab kouki Date: Tue, 28 Jul 2020 11:24:49 +0100 Subject: Official ARM version: v5.6.0 --- docs/Pack/html/algorithmFunc.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'docs/Pack/html/algorithmFunc.html') diff --git a/docs/Pack/html/algorithmFunc.html b/docs/Pack/html/algorithmFunc.html index 5a23864..0f4d486 100644 --- a/docs/Pack/html/algorithmFunc.html +++ b/docs/Pack/html/algorithmFunc.html @@ -32,7 +32,7 @@ Logo
CMSIS-Pack -  Version 1.5.0 +  Version 1.6.0
Delivery Mechanism for Software Packs
@@ -314,10 +314,11 @@ ProgramPage
  • 1 on failure.
  • -

    The function ProgramPage is used to write code into the Flash memory. It is invoked whenever an attempt is made to download a program to Flash.

    -

    The argument adr specifies the start address of the page that is to be programmed.

    -

    The argument sz specifies the size of the page that is to be programmed.

    -

    The argument buf points to the buffer containing the data to be programmed.

    +

    The function ProgramPage is used to write code into the Flash memory. It is invoked to download a program to Flash. As Flash memory is typically organized in blocks or pages, the parameters to the function ProgramPage must not cross alignment boundaries of these flash pages. The page size is specified in the struct FlashDevice with the value Program Page Size.

    +

    The argument adr specifies the start address of the page that is to be programmed. It is aligned by the host programming system to a start address of a flash page.

    +

    The argument sz specifies the data size in the data buffer. The host programming system ensures that page boundaries are not crossed.

    +

    The argument buf points to the data buffer containing the data to be programmed.

    +
    Note
    The host programming system ensures that the argument adr + sz never crosses any page boundary. The function ProgramPage does therefore not require any provisions for that.

    Code Example

    int ProgramPage (unsigned long adr, unsigned long sz, unsigned char *buf) {
    @@ -426,7 +427,7 @@ Verify