*/
#include <getopt.h>
+#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <signal.h>
#endif
#include <stlink-common.h>
int main(int argc, char** argv) {
+ int32_t voltage;
stlink_t *sl = NULL;
printf("Chip ID is %08x, Core ID is %08x.\n", sl->chip_id, sl->core_id);
+ voltage = stlink_target_voltage(sl);
+ if (voltage != -1) {
+ printf("Target voltage is %d mV.\n", voltage);
+ }
+
sl->verbose=0;
current_memory_map = make_memory_map(sl);