Skip to content

Commit b69e03f

Browse files
author
Oren Cohen
committed
Fix initial_sp on psa sequana
1 parent b2d2cae commit b69e03f

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/mbed_rtx.h

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,27 @@
2121

2222
#if defined(TARGET_MCU_PSOC6_M0)
2323

24+
#ifdef TARGET_PSA
25+
#ifndef INITIAL_SP
26+
#define INITIAL_SP (PSA_SECURE_RAM_START + PSA_SECURE_RAM_SIZE)
27+
#endif // INITIAL_SP
28+
#else
2429
#ifndef INITIAL_SP
2530
#define INITIAL_SP (0x08000000 + 0x00010000) // Ram origin + length
26-
#endif
31+
#endif // INITIAL_SP
2732

33+
#endif // TARGET_PSA
2834
#elif defined(TARGET_MCU_PSOC6_M4)
2935

36+
#ifdef TARGET_PSA
37+
#ifndef INITIAL_SP
38+
#define INITIAL_SP (PSA_NON_SECURE_RAM_START + PSA_NON_SECURE_RAM_SIZE)
39+
#endif // INITIAL_SP
40+
#else
3041
#ifndef INITIAL_SP
3142
#define INITIAL_SP (0x08010000 + 0x00037800) // Ram origin + length
32-
#endif
43+
#endif // INITIAL_SP
44+
#endif // TARGET_PSA
3345

3446
#else
3547

0 commit comments

Comments
 (0)