all: propagate verify with a message when not supported

This commit is contained in:
Gwenhael Goavec-Merou
2021-06-25 08:58:45 +02:00
parent fe0a315456
commit 2af64e9af4
12 changed files with 40 additions and 21 deletions
+3 -1
View File
@@ -4,6 +4,7 @@
#include <iostream>
#include <string>
#include "display.hpp"
#include "jtag.hpp"
/* GGM: TODO: program must have an optional
@@ -33,7 +34,8 @@ class Device {
virtual void program(unsigned int offset = 0) = 0;
virtual bool dumpFlash(const std::string &filename,
uint32_t base_addr, uint32_t len) {
(void)filename; (void) base_addr; (void) len; return false;}
(void)filename; (void) base_addr; (void) len;
printError("dump flash not supported"); return false;}
virtual int idCode() = 0;
virtual void reset();