We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a board with RA4M2 series chip, and I want to use openocd debug with this, use these cfg files. target level cfg:
source [find target/swj-dp.tcl] #source [find mem_helper.tcl] if { [info exists CHIPNAME] } { set _CHIPNAME $CHIPNAME } else { set _CHIPNAME ra4m2 } set FLASH_SIZE 0x80000 # Allow overriding the Flash bank size if { [info exists FLASH_SIZE] } { set _FLASH_SIZE $FLASH_SIZE } else { # autodetect size set _FLASH_SIZE 0 } # ONLY use ENDIAN with targets that can change it. if { [info exists ENDIAN] } { set _ENDIAN $ENDIAN } else { set _ENDIAN little } if { [info exists CPUTAPID ] } { set _CPUTAPID $CPUTAPID } else { #set _CPUTAPID 0x1be12aeb set _CPUTAPID 0x410fd214 #1aeb0015 } set _TARGETNAME $_CHIPNAME.cpu #swj_newdap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0xf -ignore-version -expected-id $_CPUTAPID swj_newdap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID dap create $_CHIPNAME.dap -chain-position $_TARGETNAME target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap -ap-num 0 # 定义一块内存区域用来烧录程序到 flash 临时使用 # 定义一块内存区域的起始地址,在 MMU 未开启时使用 $_TARGETNAME configure -work-area-phys 0x30000000 -work-area-size 0x4000 set _FLASHNAME $_CHIPNAME.flash #flash bank $_FLASHNAME rpchf 0x00000000 $_FLASH_SIZE 0 0 $_TARGETNAME #flash bank $_FLASHNAME mm32f527x 0x08000000 $_FLASH_SIZE 0 0 $_TARGETNAME proc ra4m2_reset_init {} { # 配置 PLL 时钟 # mww } $_TARGETNAME configure -event reset-init { ra4m2_reset_init } cortex_m reset_config sysresetreq #$CHIPNAME init
and board level cfg:
source [find interface/jlink.cfg] transport select swd adapter speed 100 source [find ra4m2.cfg] proc stmd { pos } { if { $pos == 0 } { reset; halt; flash write_image erase rtthread.bin 0x000000; reset; echo "stm down firm 2 internal flash success" } }
I can connect with the chip, but couldn't debug or flash with it. I wonder is there will be any support with connect RA4M2 chip under openocd ?
connect RA4M2 chip under openocd
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a board with RA4M2 series chip, and I want to use openocd debug with this, use these cfg files.
target level cfg:
and
board level cfg:
I can connect with the chip, but couldn't debug or flash with it.
I wonder is there will be any support with
connect RA4M2 chip under openocd
?The text was updated successfully, but these errors were encountered: