mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 00:30:50 +08:00
feat(imxrt): report the boot flash part name in the MCU version
The fmu-v6xrt boards can be fitted with either of two octal flash parts, and nothing told the user which one is on the board. The identity is already known: the bootloader stage reads the JEDEC ID to pick a config, and the app stage recognises the config from the installed read sequence, so no extra flash access is needed to report it. Keep the part name behind a weak board_get_flash_type_name() and append it to the chip tag when the board provides one, so `ver mcu` and the logged chip name read e.g. "i.MX RT1170 rA0 IS25WX512M". Boards that do not implement it are unaffected and their tag is unchanged. Signed-off-by: Peter van der Perk <peter.vanderperk@nxp.com>
This commit is contained in:
1 parent
94dddcd420
commit
c2fb94dd95
5 files changed
+57
-2
No files matched your search
@@ -1135,6 +1135,21 @@ int board_get_px4_guid_formated(char *format_buffer, int size);
|
||||
__EXPORT int board_mcu_version(char *rev, const char **revstr, const char **errata);
|
||||
#endif // !defined(BOARD_OVERRIDE_CPU_VERSION)
|
||||
|
||||
/************************************************************************************
|
||||
* Name: board_get_flash_type_name
|
||||
*
|
||||
* Description:
|
||||
* Optional. Boards that identify their external flash at boot provide the part
|
||||
* name, so it can be reported next to the chip version. Weak: test the symbol
|
||||
* before calling it, boards that do not identify their flash do not define it.
|
||||
* Spelled out rather than using NuttX's weak_function, this header is also
|
||||
* used by builds that do not provide that macro.
|
||||
*
|
||||
* Returned Value:
|
||||
* The flash part name, or NULL if it is not known
|
||||
*/
|
||||
__EXPORT const char *board_get_flash_type_name(void) __attribute__((weak));
|
||||
|
||||
#if defined(BOARD_HAS_POWER_CONTROL)
|
||||
/************************************************************************************
|
||||
* Name: board_register_power_state_notification_cb
|
||||
|
||||
Reference in new issue
Block a user