Error Message: Verify successful, Set boot flash true, CPU reset.

The program loads but does not run. I have two Ardruino boards. Blink works OK on both OK. The program I get the error message on works ok on one board but not the other. Using same IDE different ports. On the other board it loads OK but I get the error message in red letters and the program does not run. I hit erase and reset buttons but still get the error on just the one board. The program has to be OK since it runs ok on one board. The boards have to be ok since BLINK runs ok on both. Real mystery. If I only knew what causes this particular error message to appear would be helpful.

If I only knew what boards you had and what this particular error message were.

Using two identicle SainSmart Arduino due boards. using same Arduino IDE 1.6.6 loaded with same program. I just unplug one board, change the port number and load again. The program loads and I see the rx tx lights blinking. After uploading the program at the bottom of the IDE in red letters is says: Verify successful Set boot flash true CPU reset.

The program starts with #include <DueTimer.h> Perhaps this library is not getting included when running on the second board for some reason. Strange part is the program works perfectly as is on the first board.

#include <DueTimer.h>
#define SYNTHOUT DAC0
#define DACOUT DAC1
#define ANALOGIN A5
const float pi = 3.14159 ;
float T = 20 ; // sample time in microseconds
const float freq = 2000 ; // frequency of tone in hertz
const float omega = 2pifreq ;
const float A = 490 ; // amplitude
// next line initializes oscillation with amplitude A
float a[3]={0.0, Asin(omegaT/1000000.0),0.0};
// c1 is the difference equation coefficient
const float c1 = (8.0 - 2.0pow(omegaT/1000000.0,2))/(4.0+pow(omega*T/1000000.0,2));

void setup() {
pinMode(SYNTHOUT, OUTPUT);
analogWriteResolution(10);
analogReadResolution(10);
Timer1.attachInterrupt(compute );
Timer1.start(T) ;
}

void loop() {
}

void compute(){
a[2] = c1*a[1] - a[0] ; // recursion equation
a[0] = a[1] ;
a[1] = a[2] ;
analogWrite(SYNTHOUT, 500 + a[2] );
analogWrite(DACOUT, analogRead(ANALOGIN));
}

Nice name!

LarryD

Interesting. Didn't think they would let that happen.

Mine is a type. Ha!

Hi,

Can you please post a copy of your sketch, using code tags?
They are made with the </> icon in the reply Menu.
See section 7 http://forum.arduino.cc/index.php/topic,148850.0.html

Tom… :slight_smile:

#include <DueTimer.h>
#define SYNTHOUT    DAC0
#define DACOUT      DAC1
#define ANALOGIN    A5
const float pi = 3.14159 ;
float T = 20 ;    // sample time in microseconds
const float freq = 2000 ;  // frequency of tone in hertz
const float omega = 2*pi*freq ;
const float A = 490 ;  // amplitude
// next line initializes oscillation with amplitude A
float a[3]={0.0, A*sin(omega*T/1000000.0),0.0}; 
// c1 is the difference equation coefficient
const float c1 = (8.0 - 2.0*pow(omega*T/1000000.0,2))/(4.0+pow(omega*T/1000000.0,2));

void setup()  { 
  pinMode(SYNTHOUT, OUTPUT);
  analogWriteResolution(10);
  analogReadResolution(10);
  Timer1.attachInterrupt(compute );
  Timer1.start(T) ;
} 

void loop()  { 
} 

void compute(){
  a[2] = c1*a[1] - a[0] ;  // recursion equation
  a[0] = a[1] ;
  a[1] = a[2] ;
  analogWrite(SYNTHOUT, 500 + a[2] );
  analogWrite(DACOUT, analogRead(ANALOGIN));
}