iar_msp430.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 5.3 MSP430\'
  2. core_root: &core_root [*tools_root, '430\']
  3. core_bin: &core_bin [*core_root, 'bin\']
  4. core_config: &core_config [*core_root, 'config\']
  5. core_lib: &core_lib [*core_root, 'lib\']
  6. core_inc: &core_inc [*core_root, 'inc\']
  7. core_config: &core_config [*core_root, 'config\']
  8. compiler:
  9. path: [*core_bin, 'icc430.exe']
  10. source_path: '..\src\'
  11. unit_tests_path: &unit_tests_path 'tests\'
  12. build_path: &build_path 'build\'
  13. options:
  14. - --dlib_config
  15. - [*core_lib, 'dlib\dl430fn.h']
  16. - --no_cse
  17. - --no_unroll
  18. - --no_inline
  19. - --no_code_motion
  20. - --no_tbaa
  21. - --debug
  22. - -e
  23. - -Ol
  24. - --multiplier=16
  25. - --double=32
  26. - --diag_suppress Pa050
  27. - --diag_suppress Pe111
  28. includes:
  29. prefix: '-I'
  30. items:
  31. - *core_inc
  32. - [*core_inc, 'dlib']
  33. - [*core_lib, 'dlib']
  34. - 'src\'
  35. - '../src/'
  36. - 'testdata/'
  37. - *unit_tests_path
  38. - 'vendor\unity\src'
  39. defines:
  40. prefix: '-D'
  41. items:
  42. - '__MSP430F149__'
  43. - 'INT_WIDTH=16'
  44. - 'UNITY_EXCLUDE_FLOAT'
  45. - 'UNITY_SUPPORT_TEST_CASES'
  46. object_files:
  47. prefix: '-o'
  48. extension: '.r43'
  49. destination: *build_path
  50. linker:
  51. path: [*core_bin, 'xlink.exe']
  52. options:
  53. - -rt
  54. - [*core_lib, 'dlib\dl430fn.r43']
  55. - -e_PrintfTiny=_Printf
  56. - -e_ScanfSmall=_Scanf
  57. - -s __program_start
  58. - -D_STACK_SIZE=50
  59. - -D_DATA16_HEAP_SIZE=50
  60. - -D_DATA20_HEAP_SIZE=50
  61. - -f
  62. - [*core_config, 'lnk430f5438.xcl']
  63. - -f
  64. - [*core_config, 'multiplier.xcl']
  65. includes:
  66. prefix: '-I'
  67. items:
  68. - *core_config
  69. - *core_lib
  70. - [*core_lib, 'dlib']
  71. object_files:
  72. path: *build_path
  73. extension: '.r79'
  74. bin_files:
  75. prefix: '-o'
  76. extension: '.d79'
  77. destination: *build_path
  78. simulator:
  79. path: [*tools_root, 'common\bin\CSpyBat.exe']
  80. pre_support:
  81. - --silent
  82. - [*core_bin, '430proc.dll']
  83. - [*core_bin, '430sim.dll']
  84. post_support:
  85. - --plugin
  86. - [*core_bin, '430bat.dll']
  87. - --backend -B
  88. - --cpu MSP430F5438
  89. - -p
  90. - [*core_config, 'MSP430F5438.ddf']
  91. - -d sim
  92. colour: true
  93. :unity:
  94. :plugins: []