l4.cmake 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. set(STM32_L4_TYPES
  2. L412xx L422xx L431xx L432xx L433xx L442xx
  3. L443xx L451xx L452xx L462xx L471xx L475xx
  4. L476xx L485xx L486xx L496xx L4A6xx L4P5xx
  5. L4Q5xx L4R5xx L4R7xx L4R9xx L4S5xx L4S7xx
  6. L4S9xx
  7. )
  8. set(STM32_L4_TYPE_MATCH
  9. "L412.." "L422.." "L431.." "L432.." "L433.." "L442.."
  10. "L443.." "L451.." "L452.." "L462.." "L471.." "L475.."
  11. "L476.." "L485.." "L486.." "L496.." "L4A6.." "L4P5.."
  12. "L4Q5.." "L4R5.." "L4R7.." "L4R9.." "L4S5.." "L4S7.."
  13. "L4S9.."
  14. )
  15. set(STM32_L4_RAM_SIZES
  16. 40K 40K 64K 64K 64K 64K
  17. 64K 160K 160K 160K 96K 96K
  18. 96K 96K 96K 320K 320K 320K
  19. 320K 640K 640K 640K 640K 640K
  20. 640K
  21. )
  22. # on devices where CCRAM is remapped to be contiguous with RAM it is included into RAM section
  23. # If you want to have dedicated section then you will need to use custom linker script
  24. set(STM32_L4_CCRAM_SIZES
  25. 0K 0K 0K 0K 0K 0K
  26. 0K 0K 0K 0K 32K 32K
  27. 32K 32K 32K 0K 0K 0K
  28. 0K 0K 0K 0K 0K 0K
  29. 0K
  30. )
  31. stm32_util_create_family_targets(L4)
  32. target_compile_options(STM32::L4 INTERFACE
  33. -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard
  34. )
  35. target_link_options(STM32::L4 INTERFACE
  36. -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard
  37. )