Commit Graph

961 Commits

Author SHA1 Message Date
Gareth McMullin ab06243e93 target: Use size_t instead of unsigned in syscall interface. 2016-07-13 08:31:09 +12:00
Gareth McMullin 26fab877da target: Provide errno definitions and fallback for unimplemented syscalls. 2016-07-13 08:31:09 +12:00
Gareth McMullin 82cb6c8e83 target: Use target_addr for flash routines. 2016-07-13 08:31:09 +12:00
Gareth McMullin aeaca988c3 target: Use new target_addr type consistently in external interface.
Flash routines still use uint32_t internally.
2016-07-13 08:31:09 +12:00
Gareth McMullin f9bdaf06a4 Move flash stubs to target directory and update readme. 2016-07-13 08:31:09 +12:00
Gareth McMullin b494279fe5 Move target files into separate directory. 2016-07-13 08:31:09 +12:00
Gareth McMullin b644724520 Overhaul of semihosting. Remove dependence of target on gdb_packet. 2016-07-13 08:31:09 +12:00
Gareth McMullin b03cc59bea target: Add target controller structure for indirect calls back to host. 2016-07-13 08:31:09 +12:00
Gareth McMullin 5832d8a42a Clean up common SWD stuff. 2016-07-13 08:31:09 +12:00
Gareth McMullin 9b8e2c3ad1 target: Replace all calls to gdb_out with new tc_printf. 2016-07-13 08:31:09 +12:00
Gareth McMullin 5c5f76d60e target: Remove last accesses to private structure from outside.
Only include target_internal.h from inside target files.
2016-07-13 08:31:09 +12:00
Gareth McMullin 1cd03b3fa4 Allow breakpoint and watchpoint methods to be left NULL. 2016-07-13 08:31:09 +12:00
Gareth McMullin 07f27d1b70 Hide target list internals form command.c
Remove unused support for extended target structure size.
2016-07-13 08:31:09 +12:00
Gareth McMullin 72790893ae target: move mmio routines out of public interface.
Fix crc routine to use buffered reads on stm32.
2016-07-13 08:31:09 +12:00
Gareth McMullin e28e158721 Move *scan prototypes to target.h. 2016-07-13 08:31:09 +12:00
Gareth McMullin 4e04c1dded Split out non-public target stuff into new header.
Wrap target methods with functions instead of macros.
2016-07-13 08:31:09 +12:00
Gareth McMullin 67bd1530b7 Remove some unused includes. 2016-07-13 08:31:09 +12:00
Gareth McMullin 3c44cce935 Make generic jtagtap function weak and stop including the c file. 2016-07-13 08:31:09 +12:00
Gareth McMullin 0fc61efe7c Move STM32L[01] bit definitions to their driver and remove header. 2016-07-13 08:31:09 +12:00
Gareth McMullin 6b49fbe594 Quiet adiv5 probe. 2016-07-13 08:31:09 +12:00
Gareth McMullin 0480578391 stlink: New discovery boards support.
Patch from issue #103
2016-07-13 08:00:05 +12:00
Gareth McMullin fec09464ac Add STM32F302C8 ID.
From issue #100
2016-07-13 08:00:05 +12:00
Gareth McMullin 24f0c38b45 Merge pull request #142 from alex31/ictm_and_stm32f76x
° add support for ITCM flash memory (in addition of DTCM) for STM…
2016-07-12 07:11:52 +12:00
Alexandre Bustico c906a8614f ° add support for ITCM flash memory (in addition of DTCM) for STM32F7 family
° add support for STM32F76x and STM32F77x
2016-07-11 14:58:40 +02:00
Gareth McMullin 419aae4940 lpc15xx cleanup 2016-07-06 10:34:51 +12:00
Gareth McMullin 6fc49a11d8 Merge pull request #141 from dlaw/master
lpc15xx support
2016-07-06 10:27:15 +12:00
David Lawrence 4addec0a21 lpc15xx support 2016-07-05 16:53:47 -04:00
Gareth McMullin 2a5efbc1ac Merge pull request #140 from gsmcmullin/va_translation
cortexa: Virtual address translation and memory access through APB.
2016-06-30 18:23:31 +12:00
Gareth McMullin 393a8fddef Merge pull request #135 from gsmcmullin/timeout_overhaul
Timeout overhaul, improve reset spin loop on Cortex-A
2016-06-30 18:23:02 +12:00
Gareth McMullin 4596d88f72 cortexa: Use fast mode for APB mem access and allow byte access. 2016-06-30 17:56:01 +12:00
Gareth McMullin d16aca9ae0 cortexa: Fall back to APB memory access if no AHB available. 2016-06-29 11:11:27 +12:00
Gareth McMullin ea9c2a2030 cortexa: Catch and report faults on address translation. 2016-06-29 11:11:27 +12:00
Gareth McMullin 9e2b0a86d7 cortexa: Perform VA translation on memory access. 2016-06-29 11:11:27 +12:00
Gareth McMullin 09bb320a65 Change readme to markdown and add Travis and Gitter badges. 2016-06-29 10:25:09 +12:00
Gareth McMullin 9c5ff37bf8 Add monitor command to force SRST 2016-06-28 14:35:43 +12:00
Gareth McMullin 60c67ee156 cortexa: Flush I-Cache on detach. 2016-06-28 14:35:43 +12:00
Gareth McMullin 6b3c3d3473 cortexa: Add timeout to reset spin. 2016-06-28 14:35:43 +12:00
Gareth McMullin 8b4342394f Overhaul of timeouts so they may be nested. 2016-06-28 14:35:43 +12:00
Gareth McMullin 6b6ac1b961 First cut at building with Travis 2016-06-27 13:30:56 +12:00
Gareth McMullin 53c7fbd543 Fixes for verbose debug output. 2016-06-23 15:03:00 +12:00
Gareth McMullin 1f9fbd2d0e Merge pull request #139 from esden/pid_cid_tables
Use Product ID and Componend ID tables instead of defines.
2016-06-23 13:39:00 +12:00
Piotr Esden-Tempski 7b2309943a Use Product ID and Componend ID tables instead of defines.
This patch adds tables that allow us to decode the Product ID and
Component ID registers. Based on those tables we can decide what probe
function to use. Also this makes it possible for us to understand what
ADIv5 components the target is offering to us, even if we do not
need/use them.

The tables include a comment describing how the register bits need to be
interpreted.
2016-06-22 18:34:04 -07:00
Gareth McMullin dcff9f9186 Merge pull request #138 from esden/debug_strings
Added black magic verbose/debug mode switch.
2016-06-23 12:55:48 +12:00
Piotr Esden-Tempski 20c994eece Added black magic verbose/debug mode switch. 2016-06-22 17:28:26 -07:00
Gareth McMullin 90c0c28327 cortexa: Redirect read of PC through r0. MCR is unpredictable for r15. 2016-06-23 12:00:04 +12:00
Gareth McMullin eb1904247e Merge pull request #136 from funkobongrip/lpc82x
Add NXP LPC82x support
2016-06-22 10:06:58 +12:00
David Brandt 2639bdbe23 Add NXP LPC82x support 2016-06-21 10:33:34 +02:00
Gareth McMullin f4eda28a05 Merge pull request #134 from esden/master
BMPM V2 target power control GPIO needs to be an open drain drive.
2016-06-07 10:12:02 +12:00
Piotr Esden-Tempski 9be5cdb702 BMPM V2 target power control GPIO needs to be an open drain drive.
BMPM V2 uses a biasing resistor for the true switch mosfet circuit.
Because of that the weak pull-up/down of the stm32 is not asserting the
correct gate voltage for the mosfets to fully switch through. Because of
that we need to use open drain configulation of the GPIO instead.
2016-06-06 15:01:37 -07:00
Gareth McMullin 55cea5f90a Merge pull request #132 from dlaw/kinetis
Add Kinetis KL27 support
2016-06-01 07:48:13 +12:00