wm_flash_map.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * @file wm_flash_map.h
  3. *
  4. * @brief flash zone map
  5. *
  6. * @author dave
  7. *
  8. * Copyright (c) 2014 Winner Microelectronics Co., Ltd.
  9. */
  10. #ifndef __WM_FLASH_MAP_H__
  11. #define __WM_FLASH_MAP_H__
  12. /**FLASH MAP**/
  13. /**Flash Base Address */
  14. #define FLASH_BASE_ADDR (0x8000000UL)
  15. /**Upgrade image area*/
  16. #define CODE_UPD_START_ADDR (0x8010000UL)
  17. /**Run-time image header area*/
  18. #define CODE_RUN_START_ADDR (0x80D0000UL)
  19. // #define CODE_RUN_START_ADDR (0x8010000UL)
  20. /**Area can be used by User*/
  21. #define USER_ADDR_START (0x81E0000UL)
  22. // #define USER_ADDR_START (0x81C0000UL)
  23. /**System parameter defined in wm_internal_fls.c*/
  24. extern unsigned int TLS_FLASH_MESH_PARAM_ADDR;
  25. extern unsigned int TLS_FLASH_PARAM_DEFAULT;
  26. extern unsigned int TLS_FLASH_PARAM1_ADDR;
  27. extern unsigned int TLS_FLASH_PARAM2_ADDR;
  28. extern unsigned int TLS_FLASH_PARAM_RESTORE_ADDR;
  29. extern unsigned int TLS_FLASH_OTA_FLAG_ADDR;
  30. extern unsigned int TLS_FLASH_END_ADDR;
  31. #define SIGNATURE_WORD (0xA0FFFF9FUL)
  32. #define IMAGE_START_ADDR_MSK (0x400)
  33. #endif /*__WM_CONFIG_H__*/