Commit Graph

45 Commits

Author SHA1 Message Date
David Sidrane e967e02c4d HW Rev & Ver:0 for no value, -1 for not supported 2017-09-29 10:13:51 -04:00
Daniel Agar 414b4d4a40 ver silence hwcmp 2017-09-25 10:30:22 -04:00
David Sidrane 4832ad3191 ver:Add support for HW versioning
1) Add hwtypecmp command to allow rc to further enumerate PX4FMU_V2
      for sub types of 'V2' -FMUv2  'V2M' PixhawkMini, 'V30' Cube

   2) Extend hw to report to display
      HW type
      HW version
      HW revision
2017-08-05 19:26:20 +02:00
Beat Küng a4ca3fc607 ver: add documentation 2017-07-14 11:57:11 +02:00
David Sidrane b5275ecd52 ver:The recent changes to version.c return values in base10
This is part 2 of the fix. The tool that extracts the nuttx
   git tag was broken by a new tag added the did not match
   the form nuttx-M.mm. To the value was printed as

   OS: NuttX
   OS version: 0.0.0 c0 (192)

  Once that issue was fixed, it was apparent that recent
  changes to version.c return the values as base 10, before
  it was hex. This fixes the formatting.
2017-07-14 10:46:30 +02:00
David Sidrane f66f024e3a ver:Print vMM.mm.pp format 2017-05-03 08:18:47 +02:00
David Sidrane 53df80881a ver uses simpler common board indentity api and displays mfguid 2017-02-04 22:27:04 +01:00
Beat Küng 91416fc49a ver.c: fix hwcmp to match exact string
Previously for example 'ver hwcmp PX4FMU_V4PRO' matched on PX4FMU_V4
hardware too.
2017-01-28 15:18:35 +01:00
David Sidrane 4be19b26b0 ver uses common board api for mcu_version 2017-01-26 08:39:12 +01:00
David Sidrane d0ebc183c9 ver uses common board api for uuid 2017-01-25 07:43:11 +01:00
Beat Küng 5e9bdff205 version: remove FW_GIT & FW_BUILD_URI, use the correct methods instead
This is cleanup after rebasing
2016-12-21 11:35:10 +01:00
Beat Küng 41dc34204c version cleanup: move all version information into version.c and use a common API
The provided versioning information is the same, except for some additions,
like OS version (which still need to be implemented on NuttX).
2016-12-21 11:35:10 +01:00
Beat Küng c662113527 board_name.c: remove the file and HW_ARCH macro, use px4_board_name() instead
boards define BOARD_NAME, so board_name() is not necessary. HW_ARCH was
just a wrapper around board_name().

This patch simplifies to having only one common method px4_board_name().
2016-12-21 11:35:10 +01:00
David Sidrane d09cd77777 Adding hardfault logging application 2016-12-21 08:34:20 +01:00
Julian Oes 8ff237c69f Remove size optimization for individual modules
It makes more sense to set the optimization flags on a platform basis
instead of individually for each module. This allows for different
optimization options for SITL, NuttX, Snapdragon, etc.
2016-09-30 08:11:51 +02:00
Nate Weibley 22d286b9ce Fix version generation for release builds, #5308 (#5422) 2016-08-31 22:03:00 +02:00
Lorenz Meier 88cf8f23f6 Fix ver command 2016-07-02 12:08:30 +02:00
Lorenz Meier fd17c87eb4 Fix release parsing 2016-07-02 12:00:56 +02:00
Lorenz Meier 972a6f7be8 Fix MAVLink reporting of Firmware version, implement dev / release version reporting 2016-07-02 11:43:24 +02:00
Beat Küng 8a12dee125 cmake: remove all module.mk files & cmake conversion script (#4918)
It seems these files are leftovers.
2016-06-28 09:26:36 +02:00
Lorenz Meier e9fb929f50 Annotate build type classes for ver command 2016-06-26 21:38:14 +02:00
Julian Oes 5f3332e429 ver: less verbose on startup 2016-06-07 22:10:56 +02:00
Lorenz Meier 6fa446b465 Format fix 2016-05-28 00:10:02 +02:00
Lorenz Meier 7be5ae9b93 Version: Report in common MAVLink format 2016-05-27 23:12:51 +02:00
Daniel Agar 27f6b60169 fix pixhawk errata URL 2016-05-13 13:01:42 +02:00
Lorenz Meier 4c61f52269 Code style fixes 2016-05-03 11:42:28 +02:00
Lorenz Meier ff3e17df0d Systemlib: Add FW and OS versioning 2016-05-03 11:39:39 +02:00
James Goppert 967e4dd127 Modified cmake to use STACK_MAX and STACK_MAIN 2016-04-14 13:36:36 -04:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04:00
Daniel Agar 9fcbc1fb6f format src/systemcmds/ver 2015-09-05 12:21:13 -04:00
David Sidrane 5acc4ee43b Back Port of Git Versioning - without side effects Part 2 2015-06-12 06:54:04 -10:00
David Sidrane 17fddb1556 Back Port of Git Versioning - without side effects Part 1 2015-06-12 06:49:15 -10:00
Lorenz Meier 6d7e063148 Added GIT version which recompiles on each build 2015-05-23 09:59:46 +02:00
Daniel Agar 207b57869d only define GIT_VERSION where it's used
-when the git revision is passed to every file as a define it causes
unnecessary ccache cache misses
2015-04-18 01:25:54 -04:00
hauptmech 5444972347 Add call to access the mcu unique id. Expose via the 'ver' command.
This is prep for verifying calibration parameters against the hardware they were gathered on.
2015-01-28 10:20:19 +01:00
Lorenz Meier 9d7a4a59fd Fix output of ver hwcmd call 2014-11-17 14:07:13 +01:00
Lorenz Meier e2551d4917 Fixed typo in ver command 2014-11-15 20:05:54 +01:00
Lorenz Meier ed0f28ed41 Fix ver command 2014-11-15 19:43:11 +01:00
Lorenz Meier 488739cc46 Fix up ver command handling to print MCU version on all command as well 2014-11-15 19:13:46 +01:00
Lorenz Meier 2a37d274b1 Systemlib: Add MCU version command. ver commandline tool: Add support for MCU version command 2014-11-15 15:51:55 +01:00
Lorenz Meier 7b962e7d1b Version command optimization 2014-11-15 14:17:24 +01:00
Lorenz Meier 4bcb269741 Add capability to read chip ID and revision from ver command 2014-11-15 13:48:49 +01:00
ufoncz 85ac2796a0 simplified code, which is now less robust but smaller and easier to read (comment Babushkin)
formated source code with fix_code_style.sh (comment Babushkin)
fixed Copyright (comment Babushkin)
2014-05-01 23:36:35 +02:00
ufoncz bd5a0cef1a ver command ready including hwcmp which replaces hw_ver, removed hw_ver
updated all scripts to use new ver hwcmp command
q
2014-04-27 17:42:45 +02:00
ufoncz 5ea1105451 changed dir from version to ver to keep it shorter
added "hw_ver compare" as command option so we can replace hw_ver in future
2014-04-27 15:12:05 +02:00