久芯网

使用外部QSPI 在KEIL里调试老是不对

avatar 憨客鱼 提问时间: 2023-08-18 16:49:05 / 未解决

我打算程序在QSPI 里运行,但是要实现在KEIL中调试,我首先将STM32H750 W25Q64对应的FLM 文件放到系统目录下,然后做好配置,然后调试程序,但是程序起始运行地址不在0X90000000对应的地址上,反而在0X8000000 对应的地址上,哪位大侠知道怎么回事情么

使用外部QSPI 在KEIL里调试老是不对 [相关图片]使用外部QSPI 在KEIL里调试老是不对 [相关图片]使用外部QSPI 在KEIL里调试老是不对 [相关图片]

3个回答
  • avatar 奇迹
    回答时间: 2023-08-18 17:06:18

    可以这样的,不过H750的默认启动地址就是这个,想把程序放到外部运行需要内部的跳转代码的

  • avatar STMWoodData
    回答时间: 2023-08-18 17:28:05

    你要先写个从0x08000000地址跳转到0X90000000地址的程序。MCU上电后默认启动地址0x08000000开始运行。所以你需要2个下载算法以及flash地址分配。

  • avatar xmshao
    回答时间: 2023-08-18 17:48:57

    对应H7芯片而言,其启动地址的确可以在较宽泛的范围指定,但也只限于0x00~0x3fff0000范围内,它不包括QSPI所对应的地址空间,所以没法直接从QSPi空间启动。至于你说的0x0800 0000是默认启动地址而已。 The BOOT_ADD0 and BOOT_ADD1 address option bytes allows to program any boot memory address from 0x0000 0000 to 0x3FFF 0000 which includes: 1、All Flash address space 2、All RAM address space: ITCM, DTCM RAMs and SRAMs 3、The TCM-RAM The BOOT_ADD0 / BOOT_ADD1 option bytes can be modified after reset in order to boot from any other boot address after next reset. If the programmed boot memory address is out of the memory mapped area or a reserved area, the default boot fetch address is programmed as follows: 1、Boot address 0: FLASH at 0x0800 0000 2、Boot address 1: ITCM-RAM at 0x0000 0000

会员中心 微信客服
客服
回到顶部