changeset 241:ce6d390043a7 burnchain

Added reset and run at end of flashing
author Windel Bouwman
date Mon, 22 Jul 2013 22:56:21 +0200
parents 6259856841a0
children c94965418684
files python/st-flash.py python/stm32f4/burn.c3
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/python/st-flash.py	Mon Jul 22 22:37:33 2013 +0200
+++ b/python/st-flash.py	Mon Jul 22 22:56:21 2013 +0200
@@ -65,6 +65,8 @@
    dev.eraseFlash()
 else:
    print('unknown command', args.command)
-   
+
+stl.reset()
+stl.run()
 stl.exitDebugMode()
 
--- a/python/stm32f4/burn.c3	Mon Jul 22 22:37:33 2013 +0200
+++ b/python/stm32f4/burn.c3	Mon Jul 22 22:56:21 2013 +0200
@@ -1,4 +1,4 @@
-/* 
+/*
 
 This file blinks a LED on the STM32F4 discovery board.
 
@@ -50,7 +50,7 @@
     RCC->AHB1ENR = RCC->AHB1ENR | (1 << 3);
 
     var int pin;
-    pin = 13;
+    pin = 15;
     // PD13 == output (01)
     GPIOD->MODER = (1 << (pin << 1));
     GPIOD->ODR = (1 << pin);