Skip to content

Commit

Permalink
Add F401-nucleo demo
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Jan 7, 2021
1 parent e7b9176 commit 7c665f4
Show file tree
Hide file tree
Showing 16 changed files with 3,353 additions and 0 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>lwow_stm32f401re_nucleo_ds18b20_rtos</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
<triggers>clean,full,incremental,</triggers>
<arguments>
<dictionary>
<key>?children?</key>
<value>?name?=outputEntries\|?children?=?name?=entry\\\\\\\|\\\|\||</value>
</dictionary>
<dictionary>
<key>?name?</key>
<value></value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.append_environment</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.buildArguments</key>
<value></value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.buildCommand</key>
<value>make</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.buildLocation</key>
<value>${workspace_loc:/STM32100B-EVAL/Debug}</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.contents</key>
<value>org.eclipse.cdt.make.core.activeConfigSettings</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
<value>false</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.enableFullBuild</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.stopOnError</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
<value>true</value>
</dictionary>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.st.stm32cube.ide.mcu.MCUProjectNature</nature>
<nature>org.eclipse.cdt.core.cnature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>com.st.stm32cube.ide.mcu.MCUTSConvertedProjectNature</nature>
</natures>
<linkedResources>
<link>
<name>FreeRTOS/cmsis_os2.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/third_party/embedded-libs/FreeRTOS/CMSIS_RTOS_V2/cmsis_os2.c</locationURI>
</link>
<link>
<name>FreeRTOS/croutine.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/third_party/embedded-libs/FreeRTOS/croutine.c</locationURI>
</link>
<link>
<name>FreeRTOS/event_groups.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/third_party/embedded-libs/FreeRTOS/event_groups.c</locationURI>
</link>
<link>
<name>FreeRTOS/heap_4.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/third_party/embedded-libs/FreeRTOS/portable/MemMang/heap_4.c</locationURI>
</link>
<link>
<name>FreeRTOS/list.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/third_party/embedded-libs/FreeRTOS/list.c</locationURI>
</link>
<link>
<name>FreeRTOS/port.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/third_party/embedded-libs/FreeRTOS/portable/GCC/ARM_CM4F/port.c</locationURI>
</link>
<link>
<name>FreeRTOS/queue.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/third_party/embedded-libs/FreeRTOS/queue.c</locationURI>
</link>
<link>
<name>FreeRTOS/tasks.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/third_party/embedded-libs/FreeRTOS/tasks.c</locationURI>
</link>
<link>
<name>FreeRTOS/timers.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/third_party/embedded-libs/FreeRTOS/timers.c</locationURI>
</link>
<link>
<name>STM32F4xx_HAL_Driver/stm32f4xx_ll_dma.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/third_party/embedded-libs/st_hal/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_dma.c</locationURI>
</link>
<link>
<name>STM32F4xx_HAL_Driver/stm32f4xx_ll_exti.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/third_party/embedded-libs/st_hal/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_exti.c</locationURI>
</link>
<link>
<name>STM32F4xx_HAL_Driver/stm32f4xx_ll_gpio.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/third_party/embedded-libs/st_hal/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_gpio.c</locationURI>
</link>
<link>
<name>STM32F4xx_HAL_Driver/stm32f4xx_ll_pwr.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/third_party/embedded-libs/st_hal/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_pwr.c</locationURI>
</link>
<link>
<name>STM32F4xx_HAL_Driver/stm32f4xx_ll_rcc.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/third_party/embedded-libs/st_hal/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_rcc.c</locationURI>
</link>
<link>
<name>STM32F4xx_HAL_Driver/stm32f4xx_ll_usart.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/third_party/embedded-libs/st_hal/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usart.c</locationURI>
</link>
<link>
<name>STM32F4xx_HAL_Driver/stm32f4xx_ll_utils.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/third_party/embedded-libs/st_hal/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_utils.c</locationURI>
</link>
<link>
<name>User/main.c</name>
<type>1</type>
<locationURI>PARENT-1-PROJECT_LOC/src/main.c</locationURI>
</link>
<link>
<name>User/stm32f4xx_it.c</name>
<type>1</type>
<locationURI>PARENT-1-PROJECT_LOC/src/stm32f4xx_it.c</locationURI>
</link>
<link>
<name>User/syscalls.c</name>
<type>1</type>
<locationURI>PARENT-1-PROJECT_LOC/src/syscalls.c</locationURI>
</link>
<link>
<name>User/system_stm32f4xx.c</name>
<type>1</type>
<locationURI>PARENT-1-PROJECT_LOC/src/system_stm32f4xx.c</locationURI>
</link>
<link>
<name>lwow/lwow.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/lwow/src/lwow/lwow.c</locationURI>
</link>
<link>
<name>lwow/lwow_device_ds18x20.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/lwow/src/devices/lwow_device_ds18x20.c</locationURI>
</link>
<link>
<name>lwow/lwow_ll_stm32f401re_nucleo.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/lwow/src/system/lwow_ll_stm32f401re_nucleo.c</locationURI>
</link>
<link>
<name>lwow/lwow_sys_cmsis_os.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/lwow/src/system/lwow_sys_cmsis_os.c</locationURI>
</link>
<link>
<name>lwow/scan_devices.c</name>
<type>1</type>
<locationURI>PARENT-4-PROJECT_LOC/snippets/scan_devices.c</locationURI>
</link>
</linkedResources>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
/**
******************************************************************************
* @file LinkerScript.ld
* @author Auto-generated by STM32CubeIDE
* @brief Linker script for STM32F401RETx Device from STM32F4 series
* 512Kbytes FLASH
* 96Kbytes RAM
*
* Set heap size, stack size and stack location according
* to application requirements.
*
* Set memory bank area and size if external memory is used
******************************************************************************
* @attention
*
* <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
* opensource.org/licenses/BSD-3-Clause
*
******************************************************************************
*/

/* Entry Point */
ENTRY(Reset_Handler)

/* Highest address of the user mode stack */
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */

_Min_Heap_Size = 0x200; /* required amount of heap */
_Min_Stack_Size = 0x400; /* required amount of stack */

/* Memories definition */
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 96K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 512K
}

/* Sections */
SECTIONS
{
/* The startup code into "FLASH" Rom type memory */
.isr_vector :
{
. = ALIGN(4);
KEEP(*(.isr_vector)) /* Startup code */
. = ALIGN(4);
} >FLASH

/* The program code and other data into "FLASH" Rom type memory */
.text :
{
. = ALIGN(4);
*(.text) /* .text sections (code) */
*(.text*) /* .text* sections (code) */
*(.glue_7) /* glue arm to thumb code */
*(.glue_7t) /* glue thumb to arm code */
*(.eh_frame)

KEEP (*(.init))
KEEP (*(.fini))

. = ALIGN(4);
_etext = .; /* define a global symbols at end of code */
} >FLASH

/* Constant data into "FLASH" Rom type memory */
.rodata :
{
. = ALIGN(4);
*(.rodata) /* .rodata sections (constants, strings, etc.) */
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
. = ALIGN(4);
} >FLASH

.ARM.extab : {
. = ALIGN(4);
*(.ARM.extab* .gnu.linkonce.armextab.*)
. = ALIGN(4);
} >FLASH

.ARM : {
. = ALIGN(4);
__exidx_start = .;
*(.ARM.exidx*)
__exidx_end = .;
. = ALIGN(4);
} >FLASH

.preinit_array :
{
. = ALIGN(4);
PROVIDE_HIDDEN (__preinit_array_start = .);
KEEP (*(.preinit_array*))
PROVIDE_HIDDEN (__preinit_array_end = .);
. = ALIGN(4);
} >FLASH

.init_array :
{
. = ALIGN(4);
PROVIDE_HIDDEN (__init_array_start = .);
KEEP (*(SORT(.init_array.*)))
KEEP (*(.init_array*))
PROVIDE_HIDDEN (__init_array_end = .);
. = ALIGN(4);
} >FLASH

.fini_array :
{
. = ALIGN(4);
PROVIDE_HIDDEN (__fini_array_start = .);
KEEP (*(SORT(.fini_array.*)))
KEEP (*(.fini_array*))
PROVIDE_HIDDEN (__fini_array_end = .);
. = ALIGN(4);
} >FLASH

/* Used by the startup to initialize data */
_sidata = LOADADDR(.data);

/* Initialized data sections into "RAM" Ram type memory */
.data :
{
. = ALIGN(4);
_sdata = .; /* create a global symbol at data start */
*(.data) /* .data sections */
*(.data*) /* .data* sections */

. = ALIGN(4);
_edata = .; /* define a global symbol at data end */

} >RAM AT> FLASH

/* Uninitialized data section into "RAM" Ram type memory */
. = ALIGN(4);
.bss :
{
/* This is used by the startup in order to initialize the .bss section */
_sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss;
*(.bss)
*(.bss*)
*(COMMON)

. = ALIGN(4);
_ebss = .; /* define a global symbol at bss end */
__bss_end__ = _ebss;
} >RAM

/* User_heap_stack section, used to check that there is enough "RAM" Ram type memory left */
._user_heap_stack :
{
. = ALIGN(8);
PROVIDE ( end = . );
PROVIDE ( _end = . );
. = . + _Min_Heap_Size;
. = . + _Min_Stack_Size;
. = ALIGN(8);
} >RAM

/* Remove information from the compiler libraries */
/DISCARD/ :
{
libc.a ( * )
libm.a ( * )
libgcc.a ( * )
}

.ARM.attributes 0 : { *(.ARM.attributes) }
}

0 comments on commit 7c665f4

Please sign in to comment.