Memory application notes

1. Introduction to Basic Functions

1.1 Memory Resources Overview

  • The Memory resources provided by GR5xx are as follows (see the corresponding chip Datasheet for more details):

SoC SRAM (Up to KB) Flash (Up to KB)
GR533x 96 512
GR5513 128 512
GR5515 256 1024
GR5525 256 1024
GR5526 512 1024

1.2 Memory Layout

  • The SRAM and Flash layout varies from chip to chip, please refer to the corresponding developer’s guide for details, e.g. for the Flash and SRAM layout of GR551x, please refer to GR551x开发者指南.

1.3 Typical Application Resource Usage and User Available Resources

  • GR5515 typical application resource usage and user available resources (based on SDK V2.0.1, ARMCC V5.06 update 1(build 61), -O2, System stack 8KB, System heap 0KB. The results may vary with different SDK versions, SDK examples, compilers and optimization options, and the actual compilation results shall prevail). (Results may vary with different SDK versions, SDK examples, compilers and optimization options:)

Role Example ADV Number SCAN Number Bluetooth LE Connection Number Bluetooth LE Bond Number System Used SRAM (KB) System Used Flash (KB) Customer Available SRAM (KB) Customer Available Flash (KB)
Central ble_app_cts_c 0 1 1 1 51 92 205 932
Central ble_app_cts_c 0 1 4 4 65 92 191 932
Peripheral ble_app_cts 1 0 1 1 48 83 208 941
Peripheral ble_app_cts 1 0 4 4 60 83 196 941
Central+Peripheral ble_app_hrs_rscs_relay 1 1 4 4 66 99 190 925
  • GR533x typical application resource usage and user available resources (based on SDK V1.0.5, ARMCC V5.06 update 1(build 61), -O2, System stack 4KB, System heap 0KB. Results may vary with different SDK versions, SDK examples, compilers, and optimization options. (Results may vary with different SDK versions, SDK examples, compilers and optimization options:)

Role Example GATTC Support GATTS Support Master Support Slave Support ADV Number SCAN Number Bluetooth LE Connection Number Bluetooth LE Bond Number System Used SRAM (KB) System Used Flash (KB) Customer Available SRAM (KB) Customer Available Flash (KB)
Central ble_app_cts_c 1 0 1 0 0 1 1 1 42 113 54 399
Central ble_app_cts_c 1 0 1 0 0 1 4 4 48 113 48 399
Peripheral ble_app_cts 0 1 0 1 1 0 1 1 41 106 55 406
Peripheral ble_app_cts 0 1 0 1 1 0 4 4 47 106 49 406
Central+Peripheral ble_app_hrs_rscs_relay 1 1 1 1 1 1 4 4 50 122 46 390

2. Application Notes

2.2 Calculate the RAM and firmware size used by the program (ARMCC compiler, other compilers can refer to the following method)