• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 Winner Microelectronics Co., Ltd. All rights reserved.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 /**
17  * @file    wm_flash_map.h
18  *
19  * @brief   flash zone map
20  *
21  * @author  dave
22  *
23  * Copyright (c) 2014 Winner Microelectronics Co., Ltd.
24  */
25 #ifndef __WM_FLASH_MAP_H__
26 #define __WM_FLASH_MAP_H__
27 
28 /**FLASH MAP**/
29 
30 /**Flash Base Address */
31 #define FLASH_BASE_ADDR                        (0x8000000UL)
32 
33 /**Upgrade image area */
34 #define CODE_UPD_START_ADDR                    (0x8010000UL)
35 
36 /**Run-time image header area */
37 #define CODE_RUN_START_ADDR                 (0x80D0000UL)
38 
39 /**Area can be used by User */
40 #define USER_ADDR_START                        (0x81E0000UL)
41 
42 /**System parameter defined in wm_internal_fls.c */
43 extern unsigned int TLS_FLASH_PARAM_DEFAULT;
44 extern unsigned int TLS_FLASH_PARAM1_ADDR;
45 extern unsigned int TLS_FLASH_PARAM2_ADDR;
46 extern unsigned int TLS_FLASH_PARAM_RESTORE_ADDR;
47 extern unsigned int TLS_FLASH_OTA_FLAG_ADDR;
48 extern unsigned int TLS_FLASH_END_ADDR;
49 
50 #define SIGNATURE_WORD                      (0xA0FFFF9FUL)
51 #define IMAGE_START_ADDR_MSK                (0x400)
52 #endif /* __WM_CONFIG_H__ */
53 
54