File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ MEMORY
2+ {
3+ FLASH (rx) : ORIGIN = 0x08000000 , LENGTH = 2M
4+ RAM (xrw) : ORIGIN = 0x20000000 , LENGTH = 128K
5+ }
6+
7+ ENTRY (main )
8+ SECTIONS
9+ {
10+ .text :
11+ {
12+ *(.vectors )
13+ *(.text *)
14+ *(.rodata *)
15+ } > FLASH
16+ .ARM.exidx :
17+ {
18+ . = ALIGN (4 );
19+ __exidx_start = .;
20+ *(.ARM .exidx * .gnu .linkonce .armexidx .*)
21+ . = ALIGN (4 );
22+ __exidx_end = .;
23+ } > FLASH
24+ .data :
25+ {
26+ . = ALIGN (4 );
27+ __data_start__ = .;
28+ *(.data *)
29+ . = ALIGN (4 );
30+ __data_end__ = .;
31+ } > RAM AT > FLASH
32+ .bss :
33+ {
34+ . = ALIGN (4 );
35+ __bss_start__ = .;
36+ *(.bss *)
37+ *(COMMON )
38+ . = ALIGN (4 );
39+ __bss_end__ = .;
40+ } > RAM
41+ PROVIDE (end = __bss_end__);
42+
43+ .stack :
44+ {
45+ . = ALIGN (4 );
46+ . = . + 8K;
47+ . = ALIGN (4 );
48+ _estack = .;
49+ } > RAM
50+ .heap :
51+ {
52+ . = ALIGN (4 );
53+ _sheap = .;
54+ . = . + 32K;
55+ . = ALIGN (4 );
56+ _eheap = .;
57+ } > RAM
58+ }
Original file line number Diff line number Diff line change 1+ set (CMAKE_SYSTEM_NAME Generic)
2+ set (CMAKE_SYSTEM_PROCESSOR arm)
3+ set (CMAKE_C_COMPILER arm-none-eabi-gcc)
4+ set (CMAKE_CXX_COMPILER arm-none-eabi-g++)
5+ set (CMAKE_ASM_COMPILER arm-none-eabi-gcc)
6+ set (CPU_FLAGS "-mcpu=cortex-m55 -mfloat-abi=hard -mfpu=fpv5-sp-d16" )
7+ set (CMAKE_C_FLAGS_INIT "${CPU_FLAGS} " )
8+ set (CMAKE_CXX_FLAGS_INIT "${CPU_FLAGS} " )
9+ set (CMAKE_ASM_FLAGS_INIT "${CPU_FLAGS} " )
10+ set (LINKER_SCRIPT "linker.ld" )
11+ set (THREADS_PTHREAD_ARG OFF )
12+ set (CMAKE_EXE_LINKER_FLAGS_INIT "-T ${LINKER_SCRIPT} --specs=nosys.specs" )
13+ set (CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
14+ set (BUILD_SHARED_LIBS OFF )
15+ set (gtest_disable_pthreads ON CACHE INTERNAL "" )
16+ add_compile_options (-fno-exceptions -fno-rtti -fno-unwind-tables -g0 -ffunction-sections -fdata-sections )
17+ add_link_options (-Wl,--gc-sections )
18+ add_definitions (-D_POSIX_PATH_MAX=256 -D_POSIX_C_SOURCE=200809L -DGTEST_HAS_POSIX_RE=0 -DGTEST_HAS_STREAM_REDIRECTION=0 -DGTEST_OS_ESP8266=1 )
19+
You can’t perform that action at this time.
0 commit comments