资源简介
已经在STM32F407VE上验证测试可以读写EMMC,并支持FATFS,支持文件的读写。
代码片段和文件信息
/******************************************************************************
* @file main_s.c
* @brief Code template for secure main function
* @version V1.1.1
* @date 10. January 2018
******************************************************************************/
/*
* Copyright (c) 2013-2018 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an AS IS BASIS WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* Use CMSE intrinsics */
#include
#include “RTE_Components.h“
#include CMSIS_device_header
/* TZ_START_NS: Start address of non-secure application */
#ifndef TZ_START_NS
#define TZ_START_NS (0x200000U)
#endif
/* typedef for non-secure callback functions */
typedef void (*funcptr_void) (void) __attribute__((cmse_nonsecure_call));
/* Secure main() */
int main(void) {
funcptr_void NonSecure_ResetHandler;
/* Add user setup code for secure part here*/
/* Set non-secure main stack (MSP_NS) */
__TZ_set_MSP_NS(*((uint32_t *)(TZ_START_NS)));
/* Get non-secure reset handler */
NonSecure_ResetHandler = (funcptr_void)(*((uint32_t *)((TZ_START_NS) + 4U)));
/* Start non-secure state software application */
NonSecure_ResetHandler();
/* Non-secure software does not return this code is not executed */
while (1) {
__NOP();
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 8396 2019-06-25 18:48 EMMC\.mxproject
文件 28208 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\cmsis_armcc.h
文件 56497 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\cmsis_armclang.h
文件 9014 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\cmsis_compiler.h
文件 62344 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\cmsis_gcc.h
文件 28414 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\cmsis_iccarm.h
文件 1716 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\cmsis_version.h
文件 97995 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\core_armv8mbl.h
文件 168914 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\core_armv8mml.h
文件 42208 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\core_cm0.h
文件 50464 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\core_cm0plus.h
文件 43456 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\core_cm1.h
文件 104628 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\core_cm23.h
文件 111854 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\core_cm3.h
文件 175600 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\core_cm33.h
文件 123607 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\core_cm4.h
文件 148588 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\core_cm7.h
文件 47249 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\core_sc000.h
文件 110523 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\core_sc300.h
文件 11711 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\mpu_armv7.h
文件 10958 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\mpu_armv8.h
文件 2757 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Include\tz_context.h
文件 1877 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Template\ARMv8-M\main_s.c
文件 6001 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core\Template\ARMv8-M\tz_context.c
文件 16600 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core_A\Include\cmsis_armcc.h
文件 16510 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core_A\Include\cmsis_armclang.h
文件 5456 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core_A\Include\cmsis_compiler.h
文件 12551 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core_A\Include\cmsis_cp15.h
文件 21749 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core_A\Include\cmsis_gcc.h
文件 16564 2019-06-25 16:25 EMMC\Drivers\CMSIS\Core_A\Include\cmsis_iccarm.h
............此处省略1296个文件信息
相关资源
- STM32F1 HAL库手册原版
- STM32CUBE_DCMI_DMA_OV7670(无FIFO)_UART_PI
- 基于HAL库驱动ov7670.rar
- STM32F1开发指南(精英版)-库函数版本
- STM32步进电机高效S型T梯形曲线SpTA加减
- 教案-嵌入式系统原理及应用——基于
- STM32F407音频处理代码-Cortex-M4 DSP数字音
- 《零死角玩转STM32》初级/中级/高级
- STM32电子小说阅读器.rar
- STM32F103RBT6.rar
- 基于stm32的自动气象站硬件原理图和
-
STM32 ST-li
nk Utility v4.4.0 setup.rar - 3U_v8.0.zip
- STM32输出爱心函数波形.rar
-
STM32 ST-li
nk Utility_v3.7.0 - stm32f407igt6-grbl-motioncontrol-port.rar
- STM32F103C8T6参考手册(中文).pdf
- FreeModbusTCP STM32移植
- STM32l0XX
- STM32F7通过TIM+DMA+ADC实现FFT功能.rar
- 电子-移植好的BootLoader与TRC实验APP.z
- 《零死角玩转STM32》完整版含初中高级
- 02、STM32与迪文屏通信例程.rar
- JQ8900语音模块资料包.zip
-
STM32 ST-li
nk Utility 最新版v4.2.0 stli< - STM32F10x标准外设库v3.5.0
- STM32F10X参考手册与固件库使用手册全
- 5-小车语音控制程序.rar
- 最新CANFestival源码+stm32测试代码+移植
- STM32Cube HAL库操作系统+串口+DMA收发配
评论
共有 条评论