readded get chipid parameters on print info
@@ -29,7 +29,7 @@ static void stlink_print_version(stlink_t *sl) {
}
static void stlink_print_info(stlink_t *sl) {
-
+ const struct stlink_chipid_params *params = NULL;
if (!sl) { return; }
printf(" version: "); stlink_print_version(sl);
@@ -37,6 +37,9 @@ static void stlink_print_info(stlink_t *sl) {
printf(" flash: %u (pagesize: %u)\n", (uint32_t)sl->flash_size, (uint32_t)sl->flash_pgsz);
printf(" sram: %u\n", (uint32_t)sl->sram_size);
printf(" chipid: 0x%.3x\n", sl->chip_id);
+
+ params = stlink_chipid_get_params(sl->chip_id);
+ if (params) { printf(" dev-type: %s\n", params->dev_type); }
}
static void stlink_probe(enum connect_type connect, int freq) {
