当前位置: 首页 > news >正文

瑞萨MCU RA4M1 FLASH锁死问题记录

前言

最近接触了一块瑞萨的开发板RA4M1-EK,发现MDK烧录调试时打断点总是无法生效(要么不对,要么乱飞),启动时总会跳到莫名的汇编地址

在这里插入图片描述

问题记录

MDK烧录提示

Rebuild started: Project: LED
*** Using Compiler 'V6.19', folder: 'D:\software\MDK5.38\ARM\ARMCLANG\Bin'
Rebuild target 'Target_1'
Before Build - User command #1: cmd /c ""D:\renesas\fsp\ra4m1\led\rasc_launcher.bat" "D:\renesas\fsp\ra4m1\led\rasc_version.txt" -nosplash --launcher.suppressErrors --generate --compiler ARMv6 --devicefamily ra "D:\renesas\fsp\ra4m1\led\configuration.xml" 2> "%TEMP%\rasc_stderr.out" && echo. > "D:\renesas\fsp\ra4m1\led\output.rasc""
[INFO] Input file "D:\renesas\fsp\ra4m1\LED\configuration.xml" is older than output file "D:\renesas\fsp\ra4m1\LED\output.rasc". Skipping RASC invocation.
compiling hal_entry.c...
compiling bsp_guard.c...
compiling board_leds.c...
compiling bsp_sbrk.c...
compiling bsp_group_irq.c...
compiling board_init.c...
compiling bsp_macl.c...
compiling bsp_io.c...
compiling startup.c...
compiling bsp_ipc.c...
compiling bsp_delay.c...
compiling bsp_irq.c...
compiling bsp_common.c...
compiling bsp_register_protection.c...
compiling system.c...
compiling bsp_clocks.c...
compiling bsp_sdram.c...
compiling bsp_security.c...
compiling bsp_linker.c...
compiling hal_data.c...
compiling vector_data.c...
compiling pin_data.c...
compiling common_data.c...
compiling main.c...
compiling r_ioport.c...
linking...
Program Size: Code=2020 RO-data=464 RW-data=0 ZI-data=1124  
FromELF: creating hex file...
After Build - User command #1: cmd /c ""D:\renesas\fsp\ra4m1\led\rasc_launcher.bat" "D:\renesas\fsp\ra4m1\led\rasc_version.txt" -nosplash --launcher.suppressErrors --gensmartbundle --compiler ARMv6 --devicefamily ra "D:\renesas\fsp\ra4m1\led\configuration.xml" "D:\renesas\fsp\ra4m1\led\Objects\LED.axf" 2> "%TEMP%\rasc_stderr.out""
[INFO] Input file "D:\renesas\fsp\ra4m1\led\Objects\LED.axf" is newer than output file "D:\renesas\fsp\ra4m1\LED\Objects\LED.sbd". Proceeding with RASC invocation...
Generating Smart Bundle..
".\Objects\LED.axf" - 0 Error(s), 0 Warning(s).
Build Time Elapsed:  00:00:09
Load "D:\\renesas\\fsp\\ra4m1\\led\\Objects\\LED.axf" 
Set JLink Project File to "D:\renesas\fsp\ra4m1\led\JLinkSettings.ini"
* JLink Info: Device "R7FA4M1AB" selected.JLink info:
------------
DLL: V8.60 , compiled Aug 13 2025 12:04:02
Firmware: J-Link OB-S124 compiled Apr  1 2025 10:13:40
Hardware: V1.00
S/N : 831189195 * JLink Info: InitTarget() start
* JLink Info: Identifying target device...
* JLink Info: SWD selected. Executing JTAG -> SWD switching sequence...
* JLink Info: Initializing DAP...
* JLink Info: DAP initialized successfully.
* JLink Info: InitTarget() end - Took 22.9ms
* JLink Info: Found SW-DP with ID 0x5BA02477
* JLink Info: DPIDR: 0x5BA02477
* JLink Info: CoreSight SoC-400 or earlier
* JLink Info: Scanning AP map to find all available APs
* JLink Info: AP[2]: Stopped AP scan as end of AP map has been reached
* JLink Info: AP[0]: AHB-AP (IDR: 0x24770011, ADDR: 0x00000000)
* JLink Info: AP[1]: APB-AP (IDR: 0x44770002, ADDR: 0x01000000)
* JLink Info: Iterating through AP map to find AHB-AP to use
* JLink Info: AP[0]: Core found
* JLink Info: AP[0]: AHB-AP ROM base: 0xE00FF000
* JLink Info: CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
* JLink Info: Found Cortex-M4 r0p1, Little endian.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
* JLink Info: CoreSight components:
* JLink Info: ROMTbl[0] @ E00FF000
* JLink Info: [0][0]: E000E000 CID B105E00D PID 000BB00C SCS-M7
* JLink Info: [0][1]: E0001000 CID B105E00D PID 003BB002 DWT
* JLink Info: [0][2]: E0002000 CID B105E00D PID 002BB003 FPB
* JLink Info: [0][3]: E0000000 CID B105E00D PID 003BB001 ITM
* JLink Info: [0][4]: E0040000 CID B105900D PID 000BB9A1 TPIU
* JLink Info: [0][5]: E0041000 CID B105900D PID 000BB925 ETM
* JLink Info: [0][6]: E0042000 CID B105900D PID 002BB908 CSTF
* JLink Info: [0][7]: E0043000 CID B105900D PID 001BB961 TMC
* JLink Info: [0][8]: E0044000 CID B105F00D PID 001BB101 TSG
ROMTableAddr = 0xE00FF000
* JLink Info: Reset type: NORMAL (https://wiki.segger.com/J-Link_Reset_Strategies)
* JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
* JLink Info: Reset: Reset device via AIRCR.SYSRESETREQ.
* JLink Info: T-bit of XPSR is 0 but should be 1. Changed to 1.
* JLink Info: T-bit of XPSR is 0 but should be 1. Changed to 1.Target info:
------------
Device: R7FA4M1AB
VTarget = 3.300V
State of Pins: 
TCK: 0, TDI: 1, TDO: 1, TMS: 1, TRES: 1, TRST: 255
Hardware-Breakpoints: 6
Software-Breakpoints: 8192
Watchpoints:          4
JTAG speed: 2000 kHz* JLink Info: Memory map 'after startup completion point' is active
* JLink Info: T-bit of XPSR is 0 but should be 1. Changed to 1.
* JLink Info: T-bit of XPSR is 0 but should be 1. Changed to 1.
Erase Failed!
Error: Flash Download failed  -  "Cortex-M4"
* JLink Info: OnDisconnectTarget() start
* JLink Info: OnDisconnectTarget() end - Took 17us
Flash Load finished at 08:45:44

手动用JFlashLite.exe烧录也提示失败

在这里插入图片描述

用RFP工具烧录也无济于事

在这里插入图片描述

硬件连线已经进入SCI Boot模式

在这里插入图片描述

EK板子上是内置了一块JLINK芯片的,RFP配置选择了jlink && SWD

在这里插入图片描述

另外V3.20版本的RFP没有看到相关初始化选项(瑞萨技术客服说正常连接时是可以看到的,不是版本的问题)

在这里插入图片描述

尝试仅擦除,不烧录,还是提示Error

在这里插入图片描述

UART烧录也会失败

在这里插入图片描述

最后瑞萨的技术支持说:这个情况只能换板子上的芯片了。(真是无语了,瑞萨的芯片居然这么脆弱!)

在这里插入图片描述


文章转载自:

http://cYZ5vxXd.srbbh.cn
http://4EHD66sE.srbbh.cn
http://tVCu6GEp.srbbh.cn
http://vwDSReCf.srbbh.cn
http://H4VOVXOy.srbbh.cn
http://Y4IIrQxP.srbbh.cn
http://tWAip3XX.srbbh.cn
http://vb0OUat1.srbbh.cn
http://4V4xkBjf.srbbh.cn
http://KAz99RwT.srbbh.cn
http://1I5qdiet.srbbh.cn
http://2BnSyYLn.srbbh.cn
http://pqkzCgal.srbbh.cn
http://PTq55xFd.srbbh.cn
http://wt3IrDGV.srbbh.cn
http://I0LQTlC2.srbbh.cn
http://5P10TUmM.srbbh.cn
http://Owtg03iL.srbbh.cn
http://ySwBoNBx.srbbh.cn
http://3cfmyrmB.srbbh.cn
http://XRErkMwB.srbbh.cn
http://ITrs0UOG.srbbh.cn
http://7Nl9FKnr.srbbh.cn
http://wmKcTS9C.srbbh.cn
http://5F3m84b8.srbbh.cn
http://iNKchi2o.srbbh.cn
http://iy7T0jI2.srbbh.cn
http://PFRnneeW.srbbh.cn
http://KKxpZYE9.srbbh.cn
http://9Q2DgLOD.srbbh.cn
http://www.dtcms.com/a/386946.html

相关文章:

  • Kubernetes 调度器(Scheduler)
  • Java设计模型-责任链模式
  • Linux 服务器安全优化:firewalld SSH 限制 白名单与 SCP 服务禁用流程
  • bisheng 智能体
  • 学完Python之后我写了一个免费看电影的软件
  • 【ROS2】Concept(Advanced )
  • Apifox自动化测试场景设计
  • 知识复用缺乏跨角色适配该如何改善
  • XML 与 YML 全方位对比:从语法到应用场景
  • pandas方法集
  • PAT乙级_1106 2019数列_Python_AC解法_含疑难点
  • 自动检测并交互删除未使用 Docker 自定义网桥
  • 物联网卡相关知识
  • 访答编辑器使用体验
  • 日常系统问题解决:数据库查询停止
  • 5.3 文件系统 (答案见原书)
  • 【C++】C++11(一)
  • 两数的乘积 = 最大公约数 × 最小公倍数
  • 【Block总结】FDConv,多频动态调制卷积模块|即插即用|CVPR2025
  • Python 爬虫入门:如何抓取电商网站商品数据
  • 2025年上半年软考系统架构设计师备考指南
  • 双反向传播训练光子神经网络(未做完)
  • Java和rust的AES加解密算法互相转化,秘钥key格式不一致带来的问题
  • Altium Designer(AD24)导入DDB库文件(Protel 99SE)方法
  • GEO数据集编号,我为您整理了对应的芯片平台信息的获得办法
  • 《漫威争锋》新内容曝光:刀锋战士预热登场及多项更新
  • 【Redis】-- 哨兵
  • C++八大排序
  • 特殊文件,日志
  • Linux命令大全(文件管理)