Difference between revisions of "Updating the build environment"

From OpenMBD
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
The compiler must know which source files are part of the project. As the ws2812b source files are new, they must be added to the template makefile.<br>
+
As the ws2812b.c source file is new, it must be added to the template makefile.<br>
 
The template makefile is located here:
 
The template makefile is located here:
 
'''.\blockset\rtw\STM32\Olimexino_STM32_gcc.tmf'''
 
'''.\blockset\rtw\STM32\Olimexino_STM32_gcc.tmf'''

Latest revision as of 13:59, 1 March 2019

As the ws2812b.c source file is new, it must be added to the template makefile.
The template makefile is located here: .\blockset\rtw\STM32\Olimexino_STM32_gcc.tmf

  • Open the template makefile with any text editor
  • Add the ws2812b.c source file on line 282.

ADD_SRCS = model.c ws2812b.c

  • Save and close the file.

Part 3: Creating a block in Simulink - Previous | Next - Part 5: Testing the project