Commit Graph

856 Commits

Author SHA1 Message Date
Triss cf8b986772 jtaglib: properly handle USB ram (cannot use quick memory access routines here) 2022-07-31 20:21:51 +02:00
Triss c801faeb80 jtaglib: test previous commit on 0x89 device, properly write the wdt password 2022-07-31 20:09:13 +02:00
Triss 2373d33bbb jtaglib: use context save/restore mechanism to keep track of registers etc. 2022-07-31 19:24:54 +02:00
Triss 8ddf3cb68c mehfet, v3hil: more detailed debugging (optional) 2022-07-31 19:24:54 +02:00
Triss 37aacaca2d jtaglib: Xv2 read/write reg now (finally) working, PC gets reset every so often due to other routines 2022-07-31 19:24:51 +02:00
Triss 649d82b695 jtaglib xv2: memory accesses start to work now 2022-07-31 19:24:31 +02:00
Triss 98c434555f jtaglib cpu16: single step issue fixed 2022-07-31 19:24:31 +02:00
Triss aed67748b1 jtaglib: misc fixes 2022-07-31 19:24:27 +02:00
Triss 2170693f2f jtaglib: getting cpuxv2 stuff to work, very slowly... 2022-07-31 19:24:08 +02:00
Triss 9809da335e jtaglib: proper device identification 2022-07-31 19:24:08 +02:00
Triss ddfffa06fb jtagdev, pif, mehfet: refactor device_class ops to be unified under jtagdev instead of using separate implementations 2022-07-31 19:24:08 +02:00
Triss 0a8ebf4a66 jtaglib: read JTAG ID early enough to know which procedures to use for JTAG access 2022-07-31 19:24:04 +02:00
Triss 5f30c8c217 jtaglib: refactor
In order to support CPUX and Xv2 devices, some refactoring is needed:

* split jtaglib into files concerning low-level JTAG/SBW physical layer
  stuff, and a file containing the actual debug routines. the latter is
  implemented in a separate file per CPU type (CPUX and Xv2 currently empty)
* use a lookup table dependig on the JTAG ID or CPU type to select which
  function to use
* move the 'struct device' dependency in pif and mehfet to jtdev, as it
  is needed everywhere, especially for device identification

In a next step, the following actions can be performed:

* Unify the read and write callbacks in pif and mehfet (used in readmem
  and writemem of struct device) to remove the redundancy
* Unify the init_device function in pif and mehfet to properly detect
  the device type, as done in v3hil. The device base type does query
  this data independenly, however, which feels unwanted.
2022-07-31 19:23:24 +02:00
Triss 924c548c2e ui/cmddb: clarify 'erase' parameters 2022-07-31 19:23:24 +02:00
Triss 39a44095eb ui/devcmd: make sure the 'total size' argument for the 'erase' command makes sense 2022-07-31 19:23:24 +02:00
Triss f1d416944c jtaglib: add 20-bit DR shift function 2022-07-31 19:23:19 +02:00
Triss 985b390ba2 elf32: don't load sections with size zero 2022-05-19 01:48:22 +02:00
Triss 63e2077d5b expr: allow '0X' hex prefix 2022-05-19 01:48:22 +02:00
Triss 9269d22d2b chipinfo db: fix entries 2022-05-19 01:48:22 +02:00
Triss 43f9d7bc54 v3hil: handle new protocol versions 2022-05-19 01:48:19 +02:00
Triss c375f74c51 v3hil: add debug logging 2022-05-19 00:46:45 +02:00
Triss 9484b1cff6 hal_proto, v3hil: add missing command and status IDs 2022-05-19 00:21:45 +02:00
Triss 9d1a2528de hal_proto: handle acknowledgement packets correctly 2022-05-19 00:10:47 +02:00
Daniel Beer 5284713769
Merge pull request #116 from LucasSnatiago/master
[feat] added Arch commands
2022-03-21 15:55:37 +13:00
Lucas Santiago 6332574323 [feat] Arch commands 2022-03-20 10:30:18 -03:00
Daniel Beer 4858be123c
Merge pull request #114 from sorber/fix-hidapi-bug
fixed hidapi compile bug, missing vid/pid arguments
2022-02-13 18:35:03 +13:00
Jacob Sorber 7283b49e13 fixed hidapi compile bug, missing vid/pid arguments 2022-02-11 08:21:27 -05:00
Daniel Beer e39ff3c1d9
Merge pull request #112 from chrissphinx/master
generalize x86-specific trap instruction
2022-01-25 10:14:33 +13:00
chrissphinx f2f763b043 remove statement leftover from debugging 2022-01-24 14:48:30 -05:00
Triss a1a06e7e65 jtaglib: fix register reading on MSP430G2452 and similar chips 2021-10-11 12:34:59 +02:00
Triss 30af3e9483 mehfet: add driver and transport 2021-10-11 12:34:50 +02:00
Triss ab76a0ef3c jtaglib: refactor: allow driver backends to implement higher-level IR/DR-shifts, TMS-sequence, etc. commands instead of requiring a bit-banging interface 2021-10-10 00:05:50 +02:00
Triss c576441fb7 add -V option to specify/override VID and PID of USB device 2021-10-10 00:05:43 +02:00
Hose wie Jacke 4c4d94e43b simio/tracer: fix output format
This commit adds ":" after "SMCLK".

Previous output:
    MCLK:              ...
    SMCLK              ...
    ACLK:              ...

Current output:
    MCLK:              ...
    SMCLK:             ...
    ACLK:              ...
2021-05-12 10:01:45 +12:00
Daniel Beer 66dd71e62d
Merge pull request #103 from w0xel/hotfix/rodata2-init-array-section
elf32.c: Extract and flash INIT_ARRAY sections
2021-03-11 11:57:12 +13:00
Sebastian Würl 1633ed504a
elf32.c: Extract and flash INIT_ARRAY sections 2021-03-08 12:57:05 +01:00
Daniel Beer 6740d7d98b simx: MSP430X simulator by Bruce Burns <bgb@alum.mit.edu> 2020-09-05 14:56:37 +12:00
Daniel Beer e65bc6910a
Merge pull request #95 from iddq/master
fix jtag_read_reg and jtag_write_reg functions according to the docum…
2020-06-02 09:22:38 +12:00
iddq 0c5f33ec42 fix jtag_read_reg and jtag_write_reg functions according to the documentation: SLAU320 MSP430 Programming via JTAG User's Guide
tclk set and clr was in wrong order
2020-06-01 06:56:52 +02:00
Daniel Beer 493f38bb85
Merge pull request #93 from WeilunFong/master
Add uninstall phony target for Makefile
2020-04-02 10:27:59 +13:00
WeilunFong cbe5fccb9c Add uninstall phony target for Makefile 2020-03-31 01:02:53 +08:00
Daniel Beer 0efcf40f4d
Merge pull request #92 from tgtakaoka/update-chipinfo-mspds-3.15.0.1
Update chipinfo.db with MSPDS-OPEN-SOURCE_3.15.0.1
2020-03-18 10:03:39 +13:00
Tadashi G. Takaoka f8852df217 Update chipinfo.db with MSPDS-OPEN-SOURCE_3.15.0.1
The chipinfo.db is extracted from MSPDS.
  https://www.ti.com/tool/download/MSPDS-OPEN-SOURCE
The latest is MSPDS-OPEN_SOURCE_3.15.0.1.
  http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPDS/3_15_0_000/export/MSPDebugStack_OS_Package_3_15_0_1.zip
You can find the release note of version 3.15.0.1 at
  http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPDS/3_15_0_000/export/Release_Notes.html

The following msp-ds-dumpdb.patch is necessary to extract chipinfo.db
from MSPDS, using msp-ds-dumpdb command.
  https://raw.githubusercontent.com/tgtakaoka/homebrew-mspdebug-mspds/master/patches/msp-ds-3.15.0.1-dumpdb.patch
2020-03-16 23:27:16 +09:00
Daniel Beer b506542094
Merge pull request #90 from Mauroq/master
Support files for FR5994 (Launchpad) and FR5964
2019-11-05 09:39:19 +13:00
Dennis de Lange 713541525c Added the FR5994 and FR5964 chips (based upon the FR5968) 2019-11-04 11:28:26 +01:00
Dennis de Lange 51ef323568 Included missing devices from fet_db into devicelist. See 2b4b409 2019-11-04 10:12:07 +01:00
Daniel Beer fb29ec1236 gdb: fix parsing of register values. 2019-10-22 11:35:00 +13:00
Daniel Beer eb77903392
Merge pull request #88 from thiloschulz/master
Increase limit on number of ELF program / section headers
2019-09-21 10:07:57 +12:00
Thilo Schulz 4f21d592f3 Increase limit on number of ELF program / section headers 2019-09-20 16:21:39 +02:00
Daniel Beer 4f6a845fb4 Fix operation size error in instruction decoding. 2019-03-28 14:26:28 +13:00