Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
mbed_crash_data_offsets.h
00001 /* mbed Microcontroller Library 00002 * Copyright (c) 2006-2019 ARM Limited 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #ifndef MBED_CRASH_DATA_INFO_H 00017 #define MBED_CRASH_DATA_INFO_H 00018 00019 #ifdef __cplusplus 00020 extern "C" { 00021 #endif 00022 00023 #if MBED_CONF_PLATFORM_CRASH_CAPTURE_ENABLED 00024 /** \ingroup mbed-os-internal */ 00025 /** \addtogroup platform-internal-api */ 00026 /** @{*/ 00027 #if defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) 00028 extern uint32_t Image$$RW_m_crash_data$$ZI$$Base[]; 00029 extern uint32_t Image$$RW_m_crash_data$$ZI$$Size; 00030 #define __CRASH_DATA_RAM_START__ Image$$RW_m_crash_data$$ZI$$Base 00031 #elif defined(__ICCARM__) 00032 extern uint32_t __CRASH_DATA_RAM_START__[]; 00033 extern uint32_t __CRASH_DATA_RAM_END__[]; 00034 #elif defined(__GNUC__) 00035 extern uint32_t __CRASH_DATA_RAM_START__[]; 00036 extern uint32_t __CRASH_DATA_RAM_END__[]; 00037 #endif /* defined(__CC_ARM) */ 00038 00039 /* Offset definitions for context capture */ 00040 #define FAULT_CONTEXT_OFFSET (0x0) 00041 #define FAULT_CONTEXT_SIZE (0x80 / 4) //32 words(128 bytes) for Fault Context 00042 #define ERROR_CONTEXT_OFFSET (FAULT_CONTEXT_OFFSET + FAULT_CONTEXT_SIZE) 00043 #define ERROR_CONTEXT_SIZE (0x80 / 4) //32 words(128 bytes) bytes for Error Context 00044 #define FAULT_CONTEXT_LOCATION (__CRASH_DATA_RAM_START__ + FAULT_CONTEXT_OFFSET) 00045 #define ERROR_CONTEXT_LOCATION (__CRASH_DATA_RAM_START__ + ERROR_CONTEXT_OFFSET) 00046 /**@}*/ 00047 #endif 00048 00049 #ifdef __cplusplus 00050 } 00051 #endif 00052 00053 #endif
Generated on Tue Jul 12 2022 13:54:33 by
