Parcourir la source

change gcc statup files

gyd0317 il y a 5 ans
Parent
commit
588bda5553
26 fichiers modifiés avec 47 ajouts et 113 suppressions
  1. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l100xb.s
  2. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l100xba.s
  3. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l100xc.s
  4. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xb.s
  5. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xba.s
  6. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xc.s
  7. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xca.s
  8. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xd.s
  9. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xdx.s
  10. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xe.s
  11. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xb.s
  12. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xba.s
  13. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xc.s
  14. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xca.s
  15. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xd.s
  16. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xdx.s
  17. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xe.s
  18. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xc.s
  19. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xca.s
  20. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xd.s
  21. 2 3
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xdx.s
  22. 2 2
      bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xe.s
  23. 1 1
      bsp/stm32/libraries/templates/stm32l1xx/board/linker_scripts/link.icf
  24. 2 2
      bsp/stm32/libraries/templates/stm32l1xx/board/linker_scripts/link.lds
  25. 0 34
      bsp/stm32/libraries/templates/stm32l1xx/board/ports/fal_cfg.h
  26. 0 31
      bsp/stm32/libraries/templates/stm32l1xx/board/ports/spi_flash_init.c

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l100xb.s

@@ -90,9 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-/*     bl __libc_init_array */
+/*bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l100xba.s

@@ -90,9 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-/*     bl __libc_init_array */
+/* bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l100xc.s

@@ -90,9 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-/*     bl __libc_init_array */
+/* bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xb.s

@@ -90,9 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-/*     bl __libc_init_array */
+/* bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xba.s

@@ -90,9 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-/*     bl __libc_init_array */
+/* bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xc.s

@@ -90,8 +90,8 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
-/*     bl __libc_init_array */
+  bl  SystemInit
+/* bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xca.s

@@ -90,9 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-/*     bl __libc_init_array */
+/* bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xd.s

@@ -90,9 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-/*     bl __libc_init_array */
+/* bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xdx.s

@@ -90,9 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-/*     bl __libc_init_array */
+/* bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xe.s

@@ -90,9 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-/*     bl __libc_init_array */
+/* bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xb.s

@@ -90,9 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-/*     bl __libc_init_array */
+/* bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xba.s

@@ -90,9 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-/*     bl __libc_init_array */
+/* bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xc.s

@@ -90,9 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-/*     bl __libc_init_array */
+/* bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xca.s

@@ -90,9 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-/*     bl __libc_init_array */
+/*bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xd.s

@@ -90,9 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-/*     bl __libc_init_array */
+/*bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xdx.s

@@ -90,9 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-/*     bl __libc_init_array */
+/*  bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xe.s

@@ -90,9 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-/*     bl __libc_init_array */
+/* bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xc.s

@@ -90,9 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-/*     bl __libc_init_array */
+/* bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xca.s

@@ -90,9 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-/*     bl __libc_init_array */
+/* bl __libc_init_array */
 /* Call the application's entry point. */
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xd.s

@@ -90,9 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-/*     bl __libc_init_array */
+/* bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 2 - 3
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xdx.s

@@ -90,10 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-    bl __libc_init_array
-/*     bl __libc_init_array */
+/* bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 2 - 2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xe.s

@@ -90,9 +90,9 @@ LoopFillZerobss:
   bcc FillZerobss
 
 /* Call the clock system intitialization function.*/
-    bl  SystemInit
+  bl  SystemInit
 /* Call static constructors */
-/*     bl __libc_init_array */
+/* bl __libc_init_array */
 /* Call the application's entry point.*/
   bl entry
 .size Reset_Handler, .-Reset_Handler

+ 1 - 1
bsp/stm32/libraries/templates/stm32l1xx/board/linker_scripts/link.icf

@@ -25,4 +25,4 @@ do not initialize  { section .noinit };
 place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
 
 place in ROM_region   { readonly };
-place in RAM_region   { readwrite, last block CSTACK};
+place in RAM_region   { readwrite, last block CSTACK};

+ 2 - 2
bsp/stm32/libraries/templates/stm32l1xx/board/linker_scripts/link.lds

@@ -1,12 +1,12 @@
 /*
- * linker script for STM32F10x with GNU ld
+ * linker script for STM32L1XX with GNU ld
  */
 
 /* Program Entry, set to mark it as "used" and avoid gc */
 MEMORY
 {
     ROM (rx) : ORIGIN = 0x08000000, LENGTH = 128k /* 128KB flash */
-    RAM (rw) : ORIGIN = 0x20000000, LENGTH =  16k /* 20K sram */
+    RAM (rw) : ORIGIN = 0x20000000, LENGTH =  16k /* 16K sram */
 }
 ENTRY(Reset_Handler)
 _system_stack_size = 0x200;

+ 0 - 34
bsp/stm32/libraries/templates/stm32l1xx/board/ports/fal_cfg.h

@@ -1,34 +0,0 @@
-/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date           Author       Notes
- * 2018-12-8      zylx         first version
- */
-
-#ifndef _FAL_CFG_H_
-#define _FAL_CFG_H_
-
-#include <rtthread.h>
-#include <board.h>
-
-extern const struct fal_flash_dev stm32_onchip_flash;
-
-/* flash device table */
-#define FAL_FLASH_DEV_TABLE                                          \
-{                                                                    \
-    &stm32_onchip_flash,                                             \
-}
-/* ====================== Partition Configuration ========================== */
-#ifdef FAL_PART_HAS_TABLE_CFG
-
-/* partition table */
-#define FAL_PART_TABLE                                                                      \
-{                                                                                           \
-    {FAL_PART_MAGIC_WROD,        "app",   "onchip_flash",       0,          112 * 1024, 0}, \
-    {FAL_PART_MAGIC_WROD,        "param", "onchip_flash",       112* 1024 , 16 * 1024, 0},  \
-}
-#endif /* FAL_PART_HAS_TABLE_CFG */
-#endif /* _FAL_CFG_H_ */

+ 0 - 31
bsp/stm32/libraries/templates/stm32l1xx/board/ports/spi_flash_init.c

@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date           Author       Notes
- * 2018-11-27     SummerGift   add spi flash port file
- */
-
-#include <rtthread.h>
-#include "spi_flash.h"
-#include "spi_flash_sfud.h"
-#include "drv_spi.h"
-
-#if defined(BSP_USING_SPI_FLASH)
-static int rt_hw_spi_flash_init(void)
-{
-    __HAL_RCC_GPIOB_CLK_ENABLE();
-    rt_hw_spi_device_attach("spi2", "spi20", GPIOB, GPIO_PIN_12);
-
-    if (RT_NULL == rt_sfud_flash_probe("W25Q16", "spi20"))
-    {
-        return -RT_ERROR;
-    };
-
-    return RT_EOK;
-}
-INIT_COMPONENT_EXPORT(rt_hw_spi_flash_init);
-#endif
-