-
大小: 33.07MB文件类型: .rar金币: 1下载: 0 次发布日期: 2023-07-27
- 语言: 其他
- 标签:
资源简介
理论来说,STM32CubeProgrammer和 STM32 ST-LINK Utility下载算法程序是一样的,都能相互使用。
但是不知道为什么,STM32CubeProgrammer调用外部存储下载程序没有问题,STM32 ST-LINK Utility调用却失败。
不过也没关系了。不过没关系了,生产就用STM32CubeProgrammer,开发就用STM32CubeIDE。
所以一开始我是以STM32 ST-LINK Utility的例程去编程,然后无论我怎么测试都不行。但是我把生成的stldr下载算法文件放到
STM32CubeProgrammer这个软件试试,结果能正
代码片段和文件信息
/******************************************************************************
* @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();
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 28208 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\cmsis_armcc.h
文件 56497 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\cmsis_armclang.h
文件 9014 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\cmsis_compiler.h
文件 62344 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\cmsis_gcc.h
文件 28414 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\cmsis_iccarm.h
文件 1716 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\cmsis_version.h
文件 97995 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\core_armv8mbl.h
文件 168914 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\core_armv8mml.h
文件 42208 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\core_cm0.h
文件 50464 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\core_cm0plus.h
文件 43456 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\core_cm1.h
文件 104628 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\core_cm23.h
文件 111854 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\core_cm3.h
文件 175600 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\core_cm33.h
文件 123607 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\core_cm4.h
文件 148588 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\core_cm7.h
文件 47249 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\core_sc000.h
文件 110523 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\core_sc300.h
文件 11711 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\mpu_armv7.h
文件 10958 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\mpu_armv8.h
文件 2757 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Include\tz_context.h
文件 1877 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Template\ARMv8-M\main_s.c
文件 6001 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core\Template\ARMv8-M\tz_context.c
文件 16600 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core_A\Include\cmsis_armcc.h
文件 16510 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core_A\Include\cmsis_armclang.h
文件 5456 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core_A\Include\cmsis_compiler.h
文件 12551 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core_A\Include\cmsis_cp15.h
文件 21749 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core_A\Include\cmsis_gcc.h
文件 16564 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core_A\Include\cmsis_iccarm.h
文件 108936 2020-09-01 11:01 STM32CubeProgrammerFlashAlgorithm\W25Q64_STM32H743_HAL\Drivers\CMSIS\Core_A\Include\core_ca.h
............此处省略1181个文件信息
评论
共有 条评论