Skip to content

Commit

Permalink
efm32: Fixed a couple of format string errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux committed Nov 8, 2024
1 parent a430b33 commit 7db1c2f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/target/efm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
* * EFR32BG13P532F512GM32 (EFR Blue Gecko)
*/

/* Refer to the family reference manuals:
/*
* Refer to the family reference manuals:
*
* Also refer to AN0062 "Programming Internal Flash Over the Serial Wire Debug Interface"
* http://www.silabs.com/Support%20Documents/TechnicalDocs/an0062.pdf
Expand Down Expand Up @@ -98,7 +99,7 @@ const command_s efm32_cmd_list[] = {
/* Flash Information Area */
/* -------------------------------------------------------------------------- */

#define EFM32_INFO 0x0fe00000U
#define EFM32_INFO UINT32_C(0x0fe00000)
#define EFM32_USER_DATA (EFM32_INFO + 0x0000U)
#define EFM32_LOCK_BITS (EFM32_INFO + 0x4000U)
#define EFM32_V1_DI (EFM32_INFO + 0x8000U)
Expand Down Expand Up @@ -768,11 +769,11 @@ static bool efm32_cmd_efm_info(target_s *t, int argc, const char **argv)

switch (di_version) {
case 1:
tc_printf(t, "DI version 1 (silabs remix?) base 0x%08" PRIx16 "\n\n", EFM32_V1_DI);
tc_printf(t, "DI version 1 (silabs remix?) base 0x%08" PRIx32 "\n\n", EFM32_V1_DI);
break;

case 2:
tc_printf(t, "DI version 2 (energy micro remix?) base 0x%08" PRIx16 "\n\n", EFM32_V2_DI);
tc_printf(t, "DI version 2 (energy micro remix?) base 0x%08" PRIx32 "\n\n", EFM32_V2_DI);
break;

default:
Expand Down

0 comments on commit 7db1c2f

Please sign in to comment.