From 616f5810f1ba98f3f963e4e8b947ad3c6bd9ea57 Mon Sep 17 00:00:00 2001 From: cpldcpu Date: Sat, 30 May 2015 18:39:45 +0200 Subject: firmware: added OSCCAL_SLOW_PROGRAMMING --- firmware/configuration/Nanite841/bootloaderconfig.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'firmware/configuration/Nanite841/bootloaderconfig.h') diff --git a/firmware/configuration/Nanite841/bootloaderconfig.h b/firmware/configuration/Nanite841/bootloaderconfig.h index 20be3f6..5812ace 100644 --- a/firmware/configuration/Nanite841/bootloaderconfig.h +++ b/firmware/configuration/Nanite841/bootloaderconfig.h @@ -190,6 +190,10 @@ * will be made to calibrate the oscillator. You should deactivate both options above * if you use this to avoid redundant code. * + * OSCCAL_SLOW_PROGRAMMING Setting this to '1' will set OSCCAL back to the factory calibration during programming to make + * sure correct timing is used for the flash writes. This is needed if the micronucleus clock + * speed significantly deviated from the default clock. E.g. 12 Mhz on ATtiny841 vs. 8Mhz default. + * * If both options are selected, OSCCAL_RESTORE_DEFAULT takes precedence. * * If no option is selected, OSCCAL will be left untouched and stays at either factory calibration or F_CPU depending @@ -200,6 +204,7 @@ #define OSCCAL_RESTORE_DEFAULT 1 #define OSCCAL_SAVE_CALIB 1 #define OSCCAL_HAVE_XTAL 0 +#define OSCCAL_SLOW_PROGRAMMING 1 /* * Defines handling of an indicator LED while the bootloader is active. -- cgit v1.2.3