Skip to content

Commit 02edd04

Browse files
committed
PortentaH7: fix baremetal build
1 parent 5b1600c commit 02edd04

File tree

2 files changed

+79
-0
lines changed

2 files changed

+79
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/* mbed Microcontroller Library
2+
* SPDX-License-Identifier: BSD-3-Clause
3+
******************************************************************************
4+
* @attention
5+
*
6+
* <h2><center>&copy; Copyright (c) 2016-2020 STMicroelectronics.
7+
* All rights reserved.</center></h2>
8+
*
9+
* This software component is licensed by ST under BSD 3-Clause license,
10+
* the "License"; You may not use this file except in compliance with the
11+
* License. You may obtain a copy of the License at:
12+
* opensource.org/licenses/BSD-3-Clause
13+
*
14+
******************************************************************************
15+
*/
16+
17+
#ifndef MBED_CMSIS_NVIC_H
18+
#define MBED_CMSIS_NVIC_H
19+
20+
#if !defined(MBED_ROM_START)
21+
#define MBED_ROM_START 0x8100000
22+
#endif
23+
24+
#if !defined(MBED_ROM_SIZE)
25+
#define MBED_ROM_SIZE 0x100000 // 1.0 MB
26+
#endif
27+
28+
#if !defined(MBED_RAM_START)
29+
#define MBED_RAM_START 0x10000000
30+
#endif
31+
32+
#if !defined(MBED_RAM_SIZE)
33+
#define MBED_RAM_SIZE 0x48000 // 288 KB
34+
#endif
35+
36+
37+
#define NVIC_NUM_VECTORS 166
38+
#define NVIC_RAM_VECTOR_ADDRESS MBED_RAM_START
39+
40+
#endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
******************************************************************************
3+
* @attention
4+
*
5+
* <h2><center>&copy; Copyright (c) 2018-2019 STMicroelectronics.
6+
* All rights reserved.</center></h2>
7+
*
8+
* This software component is licensed by ST under BSD 3-Clause license,
9+
* the "License"; You may not use this file except in compliance with the
10+
* License. You may obtain a copy of the License at:
11+
* opensource.org/licenses/BSD-3-Clause
12+
*
13+
******************************************************************************
14+
*/
15+
16+
#ifndef MBED_CMSIS_NVIC_H
17+
#define MBED_CMSIS_NVIC_H
18+
19+
#if !defined(MBED_ROM_START)
20+
#define MBED_ROM_START 0x8000000
21+
#endif
22+
23+
#if !defined(MBED_ROM_SIZE)
24+
#define MBED_ROM_SIZE 0x100000 // 1.0 MB
25+
#endif
26+
27+
#if !defined(MBED_RAM_START)
28+
#define MBED_RAM_START 0x24000000
29+
#endif
30+
31+
#if !defined(MBED_RAM_SIZE)
32+
#define MBED_RAM_SIZE 0x80000 // 512 KB
33+
#endif
34+
35+
36+
#define NVIC_NUM_VECTORS 166
37+
#define NVIC_RAM_VECTOR_ADDRESS 0x20000000
38+
39+
#endif

0 commit comments

Comments
 (0)