iar_cortexm3_v5.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # unit testing under iar compiler / simulator for STM32 Cortex-M3
  2. tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 5.4\'
  3. compiler:
  4. path: [*tools_root, 'arm\bin\iccarm.exe']
  5. source_path: '..\src\'
  6. unit_tests_path: &unit_tests_path 'tests\'
  7. build_path: &build_path 'build\'
  8. options:
  9. - --dlib_config
  10. - [*tools_root, 'arm\inc\DLib_Config_Normal.h']
  11. - --no_cse
  12. - --no_unroll
  13. - --no_inline
  14. - --no_code_motion
  15. - --no_tbaa
  16. - --no_clustering
  17. - --no_scheduling
  18. - --debug
  19. - --cpu_mode thumb
  20. - --endian=little
  21. - --cpu=Cortex-M3
  22. - --interwork
  23. - --warnings_are_errors
  24. - --fpu=None
  25. - --diag_suppress=Pa050
  26. - --diag_suppress=Pe111
  27. - -e
  28. - -On
  29. includes:
  30. prefix: '-I'
  31. items:
  32. - [*tools_root, 'arm\inc\']
  33. - 'src\'
  34. - '..\src\'
  35. - 'testdata/'
  36. - *unit_tests_path
  37. - 'vendor\unity\src\'
  38. - 'iar\iar_v5\incIAR\'
  39. defines:
  40. prefix: '-D'
  41. items:
  42. - 'IAR'
  43. - 'UNITY_SUPPORT_64'
  44. - 'UNITY_SUPPORT_TEST_CASES'
  45. object_files:
  46. prefix: '-o'
  47. extension: '.r79'
  48. destination: *build_path
  49. linker:
  50. path: [*tools_root, 'arm\bin\ilinkarm.exe']
  51. options:
  52. - --redirect _Printf=_PrintfLarge
  53. - --redirect _Scanf=_ScanfSmall
  54. - --semihosting
  55. - --entry __iar_program_start
  56. - --config
  57. - [*tools_root, 'arm\config\generic_cortex.icf']
  58. object_files:
  59. path: *build_path
  60. extension: '.o'
  61. bin_files:
  62. prefix: '-o'
  63. extension: '.out'
  64. destination: *build_path
  65. simulator:
  66. path: [*tools_root, 'common\bin\CSpyBat.exe']
  67. pre_support:
  68. - --silent
  69. - [*tools_root, 'arm\bin\armproc.dll']
  70. - [*tools_root, 'arm\bin\armsim.dll']
  71. post_support:
  72. - --plugin
  73. - [*tools_root, 'arm\bin\armbat.dll']
  74. - --backend
  75. - -B
  76. - -p
  77. - [*tools_root, 'arm\config\debugger\ST\iostm32f107xx.ddf']
  78. - --cpu=Cortex-M3
  79. - -d
  80. - sim
  81. colour: true
  82. :unity:
  83. :plugins: []