Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,6 @@
aborting compilation, it is not the run time limit:
Heap_Size + Stack_Size = 0x80 + 0x80 = 0x100
*/
.section .stack
.align 3
#ifdef __STACK_SIZE
.equ Stack_Size, __STACK_SIZE
#else
.equ Stack_Size, 0xc00
#endif
.globl __StackTop
.globl __StackLimit
__StackLimit:
.space Stack_Size
.size __StackLimit, . - __StackLimit
__StackTop:
.size __StackTop, . - __StackTop

.section .heap
.align 3
Expand Down
7 changes: 6 additions & 1 deletion tools/cmake/mbed_target_functions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,17 @@ function(mbed_generate_map_file target)
set(MBED_MEMAP_CREATE_JSON FALSE CACHE BOOL "create report in json file")
set(MBED_MEMAP_CREATE_HTML FALSE CACHE BOOL "create report in html file")

# Config process saves the JSON file here
set(MEMORY_BANKS_JSON_PATH ${CMAKE_BINARY_DIR}/memory_banks.json)

# generate table for screen
add_custom_command(
TARGET
${target}
POST_BUILD
COMMAND ${Python3_EXECUTABLE} -m memap.memap
-t ${MBED_TOOLCHAIN} ${CMAKE_CURRENT_BINARY_DIR}/${target}${CMAKE_EXECUTABLE_SUFFIX}.map
--depth ${MBED_MEMAP_DEPTH}
--depth ${MBED_MEMAP_DEPTH} --memory-banks-json ${MEMORY_BANKS_JSON_PATH}
WORKING_DIRECTORY
${mbed-os_SOURCE_DIR}/tools/python
)
Expand All @@ -71,6 +74,7 @@ function(mbed_generate_map_file target)
--depth ${MBED_MEMAP_DEPTH}
-e json
-o ${CMAKE_CURRENT_BINARY_DIR}/${target}${CMAKE_EXECUTABLE_SUFFIX}.memmap.json
--memory-banks-json ${MEMORY_BANKS_JSON_PATH}
WORKING_DIRECTORY
${mbed-os_SOURCE_DIR}/tools/python
)
Expand All @@ -87,6 +91,7 @@ function(mbed_generate_map_file target)
--depth ${MBED_MEMAP_DEPTH}
-e html
-o ${CMAKE_CURRENT_BINARY_DIR}/${target}${CMAKE_EXECUTABLE_SUFFIX}.memmap.html
--memory-banks-json ${MEMORY_BANKS_JSON_PATH}
WORKING_DIRECTORY
${mbed-os_SOURCE_DIR}/tools/python
)
Expand Down
Loading
Loading