Skip to content

Commit

Permalink
TEMP: recompile Portenta core
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed Sep 1, 2022
1 parent f85b638 commit 17f1d39
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 11 deletions.
4 changes: 2 additions & 2 deletions variants/PORTENTA_H7_M7/cflags.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
-DAPPLICATION_ADDR=0x8040000
-DAPPLICATION_RAM_ADDR=0x24000000
-DAPPLICATION_RAM_SIZE=0x80000
-DAPPLICATION_SIZE=0xc0000
-DAPPLICATION_SIZE=0x1c0000
-DMBED_RAM1_SIZE=0x80000
-DMBED_RAM1_START=0x24000000
-DMBED_RAM_SIZE=0x80000
-DMBED_RAM_START=0x24000000
-DMBED_ROM_SIZE=0x100000
-DMBED_ROM_SIZE=0x200000
-DMBED_ROM_START=0x8000000
-DMBED_TRAP_ERRORS_ENABLED=1
-Os
Expand Down
4 changes: 2 additions & 2 deletions variants/PORTENTA_H7_M7/cxxflags.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
-DAPPLICATION_ADDR=0x8040000
-DAPPLICATION_RAM_ADDR=0x24000000
-DAPPLICATION_RAM_SIZE=0x80000
-DAPPLICATION_SIZE=0xc0000
-DAPPLICATION_SIZE=0x1c0000
-DMBED_RAM1_SIZE=0x80000
-DMBED_RAM1_START=0x24000000
-DMBED_RAM_SIZE=0x80000
-DMBED_RAM_START=0x24000000
-DMBED_ROM_SIZE=0x100000
-DMBED_ROM_SIZE=0x200000
-DMBED_ROM_START=0x8000000
-DMBED_TRAP_ERRORS_ENABLED=1
-Os
Expand Down
9 changes: 5 additions & 4 deletions variants/PORTENTA_H7_M7/defines.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@
-DEXTRA_IDLE_STACK_REQUIRED
-DFEATURE_BLE=1
-D__FPU_PRESENT=1
-DLSE_STARTUP_TIMEOUT=200
-D__MBED__=1
-DMBED_BUILD_TIMESTAMP=1657634193.764244
-DMBED_BUILD_TIMESTAMP=1662023201.5305474
-D__MBED_CMSIS_RTOS_CM
-DMBED_TICKLESS
-DMBEDTLS_FS_IO
Expand Down Expand Up @@ -82,7 +83,7 @@
-DUSE_HAL_DRIVER
-DVIRTIO_MASTER_ONLY
-DMBED_NO_GLOBAL_USING_DIRECTIVE=1
-DCORE_MAJOR=3
-DCORE_MINOR=2
-DCORE_PATCH=0
-DCORE_MAJOR=
-DCORE_MINOR=
-DCORE_PATCH=
-DUSE_ARDUINO_PINOUT
4 changes: 2 additions & 2 deletions variants/PORTENTA_H7_M7/ldflags.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
-DMBED_APP_SIZE=0xc0000
-DMBED_APP_SIZE=0x1c0000
-DMBED_APP_START=0x8040000
-DMBED_BOOT_STACK_SIZE=1024
-DMBED_RAM1_SIZE=0x80000
-DMBED_RAM1_START=0x24000000
-DMBED_RAM_SIZE=0x80000
-DMBED_RAM_START=0x24000000
-DMBED_ROM_SIZE=0x100000
-DMBED_ROM_SIZE=0x200000
-DMBED_ROM_START=0x8000000
-DXIP_ENABLE=0
-Wl,--gc-sections
Expand Down
Binary file modified variants/PORTENTA_H7_M7/libs/libmbed.a
Binary file not shown.
6 changes: 6 additions & 0 deletions variants/PORTENTA_H7_M7/linker_script.ld
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ SECTIONS
. = ABSOLUTE(0x3800FC00);
*(.pdm_buffer)
} > RAM_D3
_dtcm_lma = __etext + SIZEOF(.data);
.dtcm : AT(_dtcm_lma) {
_sdtcm = .;
*(.dtcm*)
_edtcm = .;
} > DTCMRAM
.heap (COPY):
{
__end__ = .;
Expand Down
2 changes: 1 addition & 1 deletion variants/PORTENTA_H7_M7/mbed_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
#define MBED_CONF_TARGET_LPTICKER_LPTIM 1 // set by target:MCU_STM32H7
#define MBED_CONF_TARGET_LPTICKER_LPTIM_CLOCK 1 // set by target:MCU_STM32
#define MBED_CONF_TARGET_LPUART_CLOCK_SOURCE USE_LPUART_CLK_LSE|USE_LPUART_CLK_PCLK1|USE_LPUART_CLK_PCLK3 // set by target:MCU_STM32
#define MBED_CONF_TARGET_LSE_AVAILABLE 0 // set by target:PORTENTA_H7
#define MBED_CONF_TARGET_LSE_AVAILABLE 1 // set by target:PORTENTA_H7
#define MBED_CONF_TARGET_LSE_BYPASS 1 // set by target:PORTENTA_H7
#define MBED_CONF_TARGET_LSE_DRIVE_LOAD_LEVEL RCC_LSEDRIVE_LOW // set by target:MCU_STM32H7
#define MBED_CONF_TARGET_MPU_ROM_END 0x0fffffff // set by target:Target
Expand Down

0 comments on commit 17f1d39

Please sign in to comment.