Skip to content
New issue

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

OpenOCD configuration file does not work with newer versions #27

Open
2 of 9 tasks
leandrolanzieri opened this issue Dec 18, 2018 · 0 comments
Open
2 of 9 tasks
Assignees
Labels

Comments

@leandrolanzieri
Copy link
Owner

Adding a

  • 🐛 bug report
  • ⭐ feature request

Brief description

While trying to flash the board using OpenOCD v0.10.0+dev-00523-g2a3b709a (2018-08-23-10:48) the configuration fails.

Steps to reproduce

  1. Try to flash using the above version of OpenOCD and the .cfg file that is included in the template.

Expected results

Board flashes.

Actual results

Fails to flash due to a wrong definition of taps.

OS:

  • Ubuntu 64 bits
  • Ubuntu 32 bits
  • Debian 64 bits
  • Debian 32 bits
  • Windows 64 bits
  • Windows 32 bits
  • Otro

Version

CIAABOT v0.0.7

Possible solution

Change OpenOCD configuration file with:

interface ftdi
ftdi_device_desc "Dual RS232-HS"
ftdi_vid_pid 0x0403 0x6010
ftdi_channel 0

ftdi_layout_init 0x0708 0xFFFB
ftdi_layout_signal nTRST -data 0x0100
ftdi_layout_signal nSRST -data 0x0200

transport select jtag
adapter_khz 2000

set _CHIPNAME lpc4337

set _M4_JTAG_TAPID 0x4ba00477
set _M0_JTAG_TAPID 0x0ba01477

jtag newtap $_CHIPNAME m4 -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_M4_JTAG_TAPID
dap create $_CHIPNAME.m4.dap -chain-position $_CHIPNAME.m4
target create $_CHIPNAME.m4 cortex_m -dap $_CHIPNAME.m4.dap

jtag newtap $_CHIPNAME m0 -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_M0_JTAG_TAPID
dap create $_CHIPNAME.m0.dap -chain-position $_CHIPNAME.m0
target create $_CHIPNAME.m0 cortex_m -dap $_CHIPNAME.m0.dap

set _WORKAREASIZE 0x8000
$_CHIPNAME.m4 configure -work-area-phys 0x10000000 -work-area-size $_WORKAREASIZE

set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME lpc2000 0x1a000000 0x80000 0 0 $_CHIPNAME.m4 lpc4300 96000 calc_checksum

reset_config none

cortex_m reset_config vectreset

targets $_CHIPNAME.m4

$_CHIPNAME.m4 configure -event gdb-attach {
   echo "Reset Halt, due to gdb attached...!"
   reset halt
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant