Skip to content

Commit

Permalink
enhance: refine openocd scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Jul 2, 2024
1 parent 9cd65fd commit 54986d2
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions run-openocd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,15 @@ export HPM_SDK_BASE=`pwd`/../hpm_sdk

# openocd -f $OPENOCD_CFG/probes/ft2232.cfg -f $OPENOCD_CFG/soc/hpm5300.cfg -f $OPENOCD_CFG/boards/hpm5300evk.cfg

export FAMILY=hpm6e00
export BOARD=hpm6e00evk
export PROBE=ft2232
export FAMILY=hpm6e00; export BOARD=hpm6e00evk

# export FAMILY=hpm5300; export BOARD=hpm5301evklite
# export FAMILY=hpm5300; export BOARD=hpm5300evk

# export FAMILY=hpm6300; export BOARD=hpm6300evk


# export BOARD=hpm5301evklite
# export BOARD=hpm5300evk
# export PROBE=cmsis_dap
export PROBE=ft2232
# export PROBE=cmsis_dap

#export FAMILY=hpm5300
export FAMILY=hpm6e00

openocd -c "set HPM_SDK_BASE ${HPM_SDK_BASE}; set BOARD ${BOARD}; set PROBE ${PROBE};" -f ${HPM_SDK_BASE}/boards/openocd/${FAMILY}_all_in_one.cfg

0 comments on commit 54986d2

Please sign in to comment.