Automated builds, build tools and Embedded systems

I come from an embedded world where we use C/C++ for programming, and use an IDE to generate a binary file, which is then programmed into a Hardware Board, which can then be tested.

With this background, what is a better workflow for automated builds than the current workflow of -build(using IDE)->Flash into the hardware->test. In other words, is there a way I can benefit from the advantages of CI in the domain that I operate in?

2

For embedded software, Continuous Integration can be helpful

  • if you have (unit) tests that can be executed in a simulation environment, or
  • if you have a means to perform unattended updates of the target device and you can automatically trigger the tests (including their required stimuli).

In the first case, you can set-up a CI server that periodically creates a build for the simulation target and executes the tests on that simulated target automatically. In the second case, you would need to hook an actual target to the CI server and then periodically create a build and test it.

The advantage in both cases is that you get automated, unattended, regression tests that will tell you is you accidentally broke something, even if that is in a seemingly unrelated part of the software (which you thus would not have touched with your manual tests).

There are a gazillion good reasons to use CI in an embedded team (if you are working alone in your IDE, advantages of CI are less obvious, I in CI is integration and you aren’t integrating with anyone when you are working alone)

  • It forces you to have a repeatable, scripted, automated build process. The output from your CI system is the output that gets tested and will be consistent. No matter what developpers install on their machine, the build will be unaffected.

  • The big advantage of CI is the ability to run automated unit tests. These test can be cross compiled to the CI machine platform. This has the architectural side effect of decoupling your hardware dependant logic from the rest, easing an eventual port to another platform and easing reuse of platform independent code to another project.

  • It will make sure that what everyone’s commit into source control builds, and quickly give feedback when it doesn’t. It really speeds up things to know which commit broke the build.

  • It will give the testing team a common place to get the latest version without any burden on the dev team. Or to quickly bissect a newfound bug that appeared since 2 weeks ago…

  • Automated code inspection, metrics and analysis tools can trigger warning on code that got checked in.

The usual workflow is usually to have the build products available on the server to be flashed on the board. In your everyday development, you use your IDE’s build/flash workflow.
I do not know about your project, but it is also possible to have an automated script to flash the new firmware on the actual board and then start/stop tests automatically on the board via a serial interface, for example.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa

Automated builds, build tools and Embedded systems

I come from an embedded world where we use C/C++ for programming, and use an IDE to generate a binary file, which is then programmed into a Hardware Board, which can then be tested.

With this background, what is a better workflow for automated builds than the current workflow of -build(using IDE)->Flash into the hardware->test. In other words, is there a way I can benefit from the advantages of CI in the domain that I operate in?

2

For embedded software, Continuous Integration can be helpful

  • if you have (unit) tests that can be executed in a simulation environment, or
  • if you have a means to perform unattended updates of the target device and you can automatically trigger the tests (including their required stimuli).

In the first case, you can set-up a CI server that periodically creates a build for the simulation target and executes the tests on that simulated target automatically. In the second case, you would need to hook an actual target to the CI server and then periodically create a build and test it.

The advantage in both cases is that you get automated, unattended, regression tests that will tell you is you accidentally broke something, even if that is in a seemingly unrelated part of the software (which you thus would not have touched with your manual tests).

There are a gazillion good reasons to use CI in an embedded team (if you are working alone in your IDE, advantages of CI are less obvious, I in CI is integration and you aren’t integrating with anyone when you are working alone)

  • It forces you to have a repeatable, scripted, automated build process. The output from your CI system is the output that gets tested and will be consistent. No matter what developpers install on their machine, the build will be unaffected.

  • The big advantage of CI is the ability to run automated unit tests. These test can be cross compiled to the CI machine platform. This has the architectural side effect of decoupling your hardware dependant logic from the rest, easing an eventual port to another platform and easing reuse of platform independent code to another project.

  • It will make sure that what everyone’s commit into source control builds, and quickly give feedback when it doesn’t. It really speeds up things to know which commit broke the build.

  • It will give the testing team a common place to get the latest version without any burden on the dev team. Or to quickly bissect a newfound bug that appeared since 2 weeks ago…

  • Automated code inspection, metrics and analysis tools can trigger warning on code that got checked in.

The usual workflow is usually to have the build products available on the server to be flashed on the board. In your everyday development, you use your IDE’s build/flash workflow.
I do not know about your project, but it is also possible to have an automated script to flash the new firmware on the actual board and then start/stop tests automatically on the board via a serial interface, for example.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật