mirror of https://github.com/ARMmbed/mbed-os.git
Fix initial_sp on psa sequana
parent
b2d2cae3c4
commit
b69e03fb1e
|
|
@ -21,15 +21,27 @@
|
||||||
|
|
||||||
#if defined(TARGET_MCU_PSOC6_M0)
|
#if defined(TARGET_MCU_PSOC6_M0)
|
||||||
|
|
||||||
|
#ifdef TARGET_PSA
|
||||||
|
#ifndef INITIAL_SP
|
||||||
|
#define INITIAL_SP (PSA_SECURE_RAM_START + PSA_SECURE_RAM_SIZE)
|
||||||
|
#endif // INITIAL_SP
|
||||||
|
#else
|
||||||
#ifndef INITIAL_SP
|
#ifndef INITIAL_SP
|
||||||
#define INITIAL_SP (0x08000000 + 0x00010000) // Ram origin + length
|
#define INITIAL_SP (0x08000000 + 0x00010000) // Ram origin + length
|
||||||
#endif
|
#endif // INITIAL_SP
|
||||||
|
|
||||||
|
#endif // TARGET_PSA
|
||||||
#elif defined(TARGET_MCU_PSOC6_M4)
|
#elif defined(TARGET_MCU_PSOC6_M4)
|
||||||
|
|
||||||
|
#ifdef TARGET_PSA
|
||||||
|
#ifndef INITIAL_SP
|
||||||
|
#define INITIAL_SP (PSA_NON_SECURE_RAM_START + PSA_NON_SECURE_RAM_SIZE)
|
||||||
|
#endif // INITIAL_SP
|
||||||
|
#else
|
||||||
#ifndef INITIAL_SP
|
#ifndef INITIAL_SP
|
||||||
#define INITIAL_SP (0x08010000 + 0x00037800) // Ram origin + length
|
#define INITIAL_SP (0x08010000 + 0x00037800) // Ram origin + length
|
||||||
#endif
|
#endif // INITIAL_SP
|
||||||
|
#endif // TARGET_PSA
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue