Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

Be aware : Launchpad can retain old code in memory

$
0
0

Hi.

Lauchpad seems to keep some older code in memory and still execute it after new upload done !

 

 

L1 and L2 are LEDs

 

When  I upload this code :

#define L1 P1_0
#define L2  P1_6
void setup() {              
  pinMode(L1, OUTPUT);   
  pinMode(L2, OUTPUT);   
  digitalWrite(L1, HIGH);
 }
void loop() {
  digitalWrite(L1, HIGH);
  digitalWrite(L2, HIGH);
}

I got L1 and L2 lighted on, wicth is fine.

Next, when I upload this code :

#define L1 P1_0
#define L2  P1_6
void setup() {                
  pinMode(L1, OUTPUT);   
  pinMode(L2, OUTPUT);   
  digitalWrite(L1, HIGH);
 }
void loop() {
  digitalWrite(L1, HIGH);
 }

I got L1 and L2 lighted on, wicth is not fine !


Viewing all articles
Browse latest Browse all 2077

Trending Articles