Bootload from SD card to sector 0, and jump to sector 24 where new firmware resides

Dependencies:   FatFS mbed

Fork of Panel-Controller-Bootloader by Emma

Committer:
bonchenko
Date:
Wed Apr 22 10:18:55 2015 +0000
Revision:
2:0fa89ba8f6fe
Parent:
0:c3a652eff606
Bootloader from SD card works perfectly. Compiled with offset in EmBlocks, ADE cannot print readings - but its happened without bootloader too. The problem is Emblocks compiler settings

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bonchenko 0:c3a652eff606 1 /**
bonchenko 0:c3a652eff606 2 ******************************************************************************
bonchenko 0:c3a652eff606 3 * @file Project/STM32F10x_StdPeriph_Template/stm32f10x_conf.h
bonchenko 0:c3a652eff606 4 * @author MCD Application Team
bonchenko 0:c3a652eff606 5 * @version V3.5.0
bonchenko 0:c3a652eff606 6 * @date 08-April-2011
bonchenko 0:c3a652eff606 7 * @brief Library configuration file.
bonchenko 0:c3a652eff606 8 ******************************************************************************
bonchenko 0:c3a652eff606 9 * @attention
bonchenko 0:c3a652eff606 10 *
bonchenko 0:c3a652eff606 11 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
bonchenko 0:c3a652eff606 12 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
bonchenko 0:c3a652eff606 13 * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
bonchenko 0:c3a652eff606 14 * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
bonchenko 0:c3a652eff606 15 * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
bonchenko 0:c3a652eff606 16 * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
bonchenko 0:c3a652eff606 17 *
bonchenko 0:c3a652eff606 18 * <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2>
bonchenko 0:c3a652eff606 19 ******************************************************************************
bonchenko 0:c3a652eff606 20 */
bonchenko 0:c3a652eff606 21
bonchenko 0:c3a652eff606 22 /* Define to prevent recursive inclusion -------------------------------------*/
bonchenko 0:c3a652eff606 23 #ifndef __STM32F10x_CONF_H
bonchenko 0:c3a652eff606 24 #define __STM32F10x_CONF_H
bonchenko 0:c3a652eff606 25
bonchenko 0:c3a652eff606 26 /* Includes ------------------------------------------------------------------*/
bonchenko 0:c3a652eff606 27 /* Uncomment/Comment the line below to enable/disable peripheral header file inclusion */
bonchenko 0:c3a652eff606 28 #include "stm32f10x_adc.h"
bonchenko 0:c3a652eff606 29 #include "stm32f10x_bkp.h"
bonchenko 0:c3a652eff606 30 #include "stm32f10x_can.h"
bonchenko 0:c3a652eff606 31 #include "stm32f10x_cec.h"
bonchenko 0:c3a652eff606 32 #include "stm32f10x_crc.h"
bonchenko 0:c3a652eff606 33 #include "stm32f10x_dac.h"
bonchenko 0:c3a652eff606 34 #include "stm32f10x_dbgmcu.h"
bonchenko 0:c3a652eff606 35 #include "stm32f10x_dma.h"
bonchenko 0:c3a652eff606 36 #include "stm32f10x_exti.h"
bonchenko 0:c3a652eff606 37 #include "stm32f10x_flash.h"
bonchenko 0:c3a652eff606 38 #include "stm32f10x_fsmc.h"
bonchenko 0:c3a652eff606 39 #include "stm32f10x_gpio.h"
bonchenko 0:c3a652eff606 40 #include "stm32f10x_i2c.h"
bonchenko 0:c3a652eff606 41 #include "stm32f10x_iwdg.h"
bonchenko 0:c3a652eff606 42 #include "stm32f10x_pwr.h"
bonchenko 0:c3a652eff606 43 #include "stm32f10x_rcc.h"
bonchenko 0:c3a652eff606 44 #include "stm32f10x_rtc.h"
bonchenko 0:c3a652eff606 45 #include "stm32f10x_sdio.h"
bonchenko 0:c3a652eff606 46 #include "stm32f10x_spi.h"
bonchenko 0:c3a652eff606 47 #include "stm32f10x_tim.h"
bonchenko 0:c3a652eff606 48 #include "stm32f10x_usart.h"
bonchenko 0:c3a652eff606 49 #include "stm32f10x_wwdg.h"
bonchenko 0:c3a652eff606 50 #include "misc.h" /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */
bonchenko 0:c3a652eff606 51
bonchenko 0:c3a652eff606 52 /* Exported types ------------------------------------------------------------*/
bonchenko 0:c3a652eff606 53 /* Exported constants --------------------------------------------------------*/
bonchenko 0:c3a652eff606 54 /* Uncomment the line below to expanse the "assert_param" macro in the
bonchenko 0:c3a652eff606 55 Standard Peripheral Library drivers code */
bonchenko 0:c3a652eff606 56 /* #define USE_FULL_ASSERT 1 */
bonchenko 0:c3a652eff606 57
bonchenko 0:c3a652eff606 58 /* Exported macro ------------------------------------------------------------*/
bonchenko 0:c3a652eff606 59 #ifdef USE_FULL_ASSERT
bonchenko 0:c3a652eff606 60
bonchenko 0:c3a652eff606 61 /**
bonchenko 0:c3a652eff606 62 * @brief The assert_param macro is used for function's parameters check.
bonchenko 0:c3a652eff606 63 * @param expr: If expr is false, it calls assert_failed function which reports
bonchenko 0:c3a652eff606 64 * the name of the source file and the source line number of the call
bonchenko 0:c3a652eff606 65 * that failed. If expr is true, it returns no value.
bonchenko 0:c3a652eff606 66 * @retval None
bonchenko 0:c3a652eff606 67 */
bonchenko 0:c3a652eff606 68 #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
bonchenko 0:c3a652eff606 69 /* Exported functions ------------------------------------------------------- */
bonchenko 0:c3a652eff606 70 void assert_failed(uint8_t* file, uint32_t line);
bonchenko 0:c3a652eff606 71 #else
bonchenko 0:c3a652eff606 72 #define assert_param(expr) ((void)0)
bonchenko 0:c3a652eff606 73 #endif /* USE_FULL_ASSERT */
bonchenko 0:c3a652eff606 74
bonchenko 0:c3a652eff606 75 #endif /* __STM32F10x_CONF_H */
bonchenko 0:c3a652eff606 76
bonchenko 0:c3a652eff606 77 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/