Jonne Valola / PokittoLib Featured

Dependents:   YATTT sd_map_test cPong SnowDemo ... more

PokittoLib

Library for programming Pokitto hardware

How to Use

  1. Import this library to online compiler (see button "import" on the right hand side
  2. DO NOT import mbed-src anymore, a better version is now included inside PokittoLib
  3. Change My_settings.h according to your project
  4. Start coding!
Revision:
58:5f58a2846a20
Parent:
52:c04087025cab
diff -r 63853054a4d9 -r 5f58a2846a20 POKITTO_HW/iap.cpp
--- a/POKITTO_HW/iap.cpp	Tue Oct 02 20:38:50 2018 +0000
+++ b/POKITTO_HW/iap.cpp	Sun Oct 07 10:06:28 2018 +0000
@@ -30,10 +30,10 @@
 
 int CopyPageToFlash (uint32_t address, uint8_t* data) {
     IAP iap_call = (IAP) IAP_LOCATION;
-    uint32_t writecount=0;
+    //uint32_t writecount=0;
 	__disable_irq();
 
-    unsigned int sector, page;
+    unsigned int sector;//, page;
     bool firstpage=false, erasepage=false;
 
     //DEBUG//
@@ -190,7 +190,7 @@
 
     SCB->AIRCR = 0x05FA0004; //issue system reset
     while(1); //should never come here
-    return teahupoo;
+    //return teahupoo;
 }