You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
1.2 KiB

  1. /*
  2. * This file is part of the libopencm3 project.
  3. *
  4. * Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
  5. * Copyright (C) 2011 Stephen Caudle <scaudle@doceme.com>
  6. * Copyright (C) 2013 Sergey Krukowski <softsr@yahoo.de>
  7. *
  8. * This library is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU Lesser General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public License
  19. * along with this library. If not, see <http://www.gnu.org/licenses/>.
  20. */
  21. /* Linker script for the STM32F40xxG chip (1024K flash, 128K RAM). */
  22. /* Define memory regions. */
  23. MEMORY
  24. {
  25. rom (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
  26. ram (rwx) : ORIGIN = 0x20000000, LENGTH = 112K
  27. ccm (rwx) : ORIGIN = 0x10000000, LENGTH = 64K
  28. }
  29. /* Include the common ld script. */
  30. INCLUDE cortex-m-generic.ld