Skip to content

Commit b61cf5b

Browse files
committed
PSoC 62/63: set correct mbed_ram_start and mbed_ram_size
In case when target.mbed_ram_start and target.mbed_ram_size are not set neither in targets.json nor in mbed_app.json, the IRAM1 region values defined in tools/arm_pack_manager/index.json are passed by Mbed CLI as the linker script preprocessing flags. As a result, wrong addresses of MBED_RAM_START and MBED_RAM_SIZE are defined in the linker script since CMSIS DFP pack has no information about RAM split between CM0+ and CM4 applications. Set the values explicitly in targets.json to ensure the correct RAM layout. The MBED_ROM_START and MBED_ROM_SIZE provided by CMSIS DFP are already correct since the linker scripts places CM4 vector table at MBED_APP_START, taking into account the flash application area of the CM0+ prebuilt application.
1 parent ded879d commit b61cf5b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

targets/targets.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13689,6 +13689,8 @@
1368913689
"CYBSP_WIFI_CAPABLE"
1369013690
],
1369113691
"device_name": "CY8C624ABZI-D44",
13692+
"mbed_ram_start": "0x08002000",
13693+
"mbed_ram_size": "0x000FD800",
1369213694
"detect_code": [
1369313695
"1901"
1369413696
],
@@ -13731,6 +13733,8 @@
1373113733
"CYBSP_WIFI_CAPABLE"
1373213734
],
1373313735
"device_name": "CY8C624ABZI-D44",
13736+
"mbed_ram_start": "0x08002000",
13737+
"mbed_ram_size": "0x000FD800",
1373413738
"detect_code": [
1373513739
"190B"
1373613740
],
@@ -13765,6 +13769,8 @@
1376513769
"CY_STORAGE_WIFI_DATA=\".cy_xip\""
1376613770
],
1376713771
"device_name": "CY8C6245LQI-S3D72",
13772+
"mbed_ram_start": "0x08002000",
13773+
"mbed_ram_size": "0x0003D800",
1376813774
"detect_code": [
1376913775
"190E"
1377013776
],
@@ -13842,6 +13848,8 @@
1384213848
"CYBSP_WIFI_CAPABLE"
1384313849
],
1384413850
"device_name": "CY8C6247BZI-D54",
13851+
"mbed_ram_start": "0x08002000",
13852+
"mbed_ram_size": "0x00045800",
1384513853
"detect_code": [
1384613854
"1900"
1384713855
],
@@ -13875,6 +13883,8 @@
1387513883
"CY8C6347BZI_BLD53"
1387613884
],
1387713885
"device_name": "CY8C6347BZI-BLD53",
13886+
"mbed_ram_start": "0x08002000",
13887+
"mbed_ram_size": "0x00045800",
1387813888
"detect_code": [
1387913889
"1902"
1388013890
],
@@ -13905,6 +13915,8 @@
1390513915
"CYBLE_416045_02"
1390613916
],
1390713917
"device_name": "CYBLE-416045-02",
13918+
"mbed_ram_start": "0x08002000",
13919+
"mbed_ram_size": "0x00045800",
1390813920
"detect_code": [
1390913921
"1904"
1391013922
],
@@ -13972,6 +13984,8 @@
1397213984
"CYBSP_WIFI_CAPABLE"
1397313985
],
1397413986
"device_name": "CY8C6247BZI-D54",
13987+
"mbed_ram_start": "0x08002000",
13988+
"mbed_ram_size": "0x00045800",
1397513989
"detect_code": [
1397613990
"1900"
1397713991
],
@@ -14010,6 +14024,8 @@
1401014024
"CYBSP_WIFI_CAPABLE"
1401114025
],
1401214026
"device_name": "CY8C6247BZI-D54",
14027+
"mbed_ram_start": "0x08002000",
14028+
"mbed_ram_size": "0x00045800",
1401314029
"detect_code": [
1401414030
"1906"
1401514031
],
@@ -14050,6 +14066,8 @@
1405014066
"CYBSP_WIFI_CAPABLE"
1405114067
],
1405214068
"device_name": "CY8C6247FDI-D52",
14069+
"mbed_ram_start": "0x08002000",
14070+
"mbed_ram_size": "0x00045800",
1405314071
"detect_code": [
1405414072
"1903"
1405514073
],

0 commit comments

Comments
 (0)