qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

STM32F303xB.ld (2930B)


      1 /*
      2     ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
      3               Copyright (C) 2022       Christoph Baumann
      4 
      5     Licensed under the Apache License, Version 2.0 (the "License");
      6     you may not use this file except in compliance with the License.
      7     You may obtain a copy of the License at
      8 
      9         http://www.apache.org/licenses/LICENSE-2.0
     10 
     11     Unless required by applicable law or agreed to in writing, software
     12     distributed under the License is distributed on an "AS IS" BASIS,
     13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14     See the License for the specific language governing permissions and
     15     limitations under the License.
     16 */
     17 
     18 /*
     19  * STM32F303xC memory setup.
     20  */
     21 MEMORY
     22 {
     23     flash0 (rx) : org = 0x08000000, len = 128k
     24     flash1 (rx) : org = 0x00000000, len = 0
     25     flash2 (rx) : org = 0x00000000, len = 0
     26     flash3 (rx) : org = 0x00000000, len = 0
     27     flash4 (rx) : org = 0x00000000, len = 0
     28     flash5 (rx) : org = 0x00000000, len = 0
     29     flash6 (rx) : org = 0x00000000, len = 0
     30     flash7 (rx) : org = 0x00000000, len = 0
     31     ram0   (wx) : org = 0x20000000, len = 32k
     32     ram1   (wx) : org = 0x00000000, len = 0
     33     ram2   (wx) : org = 0x00000000, len = 0
     34     ram3   (wx) : org = 0x00000000, len = 0
     35     ram4   (wx) : org = 0x10000000, len = 8k
     36     ram5   (wx) : org = 0x00000000, len = 0
     37     ram6   (wx) : org = 0x00000000, len = 0
     38     ram7   (wx) : org = 0x00000000, len = 0
     39 }
     40 
     41 /* For each data/text section two region are defined, a virtual region
     42    and a load region (_LMA suffix).*/
     43 
     44 /* Flash region to be used for exception vectors.*/
     45 REGION_ALIAS("VECTORS_FLASH", flash0);
     46 REGION_ALIAS("VECTORS_FLASH_LMA", flash0);
     47 
     48 /* Flash region to be used for constructors and destructors.*/
     49 REGION_ALIAS("XTORS_FLASH", flash0);
     50 REGION_ALIAS("XTORS_FLASH_LMA", flash0);
     51 
     52 /* Flash region to be used for code text.*/
     53 REGION_ALIAS("TEXT_FLASH", flash0);
     54 REGION_ALIAS("TEXT_FLASH_LMA", flash0);
     55 
     56 /* Flash region to be used for read only data.*/
     57 REGION_ALIAS("RODATA_FLASH", flash0);
     58 REGION_ALIAS("RODATA_FLASH_LMA", flash0);
     59 
     60 /* Flash region to be used for various.*/
     61 REGION_ALIAS("VARIOUS_FLASH", flash0);
     62 REGION_ALIAS("VARIOUS_FLASH_LMA", flash0);
     63 
     64 /* Flash region to be used for RAM(n) initialization data.*/
     65 REGION_ALIAS("RAM_INIT_FLASH_LMA", flash0);
     66 
     67 /* RAM region to be used for Main stack. This stack accommodates the processing
     68    of all exceptions and interrupts.*/
     69 REGION_ALIAS("MAIN_STACK_RAM", ram0);
     70 
     71 /* RAM region to be used for the process stack. This is the stack used by
     72    the main() function.*/
     73 REGION_ALIAS("PROCESS_STACK_RAM", ram0);
     74 
     75 /* RAM region to be used for data segment.*/
     76 REGION_ALIAS("DATA_RAM", ram0);
     77 REGION_ALIAS("DATA_RAM_LMA", flash0);
     78 
     79 /* RAM region to be used for BSS segment.*/
     80 REGION_ALIAS("BSS_RAM", ram0);
     81 
     82 /* RAM region to be used for the default heap.*/
     83 REGION_ALIAS("HEAP_RAM", ram0);
     84 
     85 /* Generic rules inclusion.*/
     86 INCLUDE rules.ld