aboutsummaryrefslogtreecommitdiff
path: root/src/cortexm.c
AgeCommit message (Collapse)Author
2015-04-11cortexm: Add target option to inhibit assersion of SRST.Gareth McMullin
2015-04-11lpc: Reduce differences between lpc11xx and lpc43xx code.Gareth McMullin
2015-04-02Suppress warning about longjmp clobbering local variable.Gareth McMullin
2015-03-29Improve cortexm_read/write_regs. Use more sensible return types.Gareth McMullin
2015-03-29Make cortexm_pc_write static.Gareth McMullin
2015-03-29cortexm: Separate stub loading from running.Gareth McMullin
2015-03-28target: Remove pc_read/pc_write methods.Gareth McMullin
2015-03-26Remove old STM32L1 driver.Gareth McMullin
2015-03-26Consistently name target var 't' in cortexm.Gareth McMullin
2015-03-22Clean up handling of lost targets using new exceptions mechanism.Gareth McMullin
2015-03-22Raise timeout exception when target is in WFI.Gareth McMullin
Ignore the exception when polling for halt, and report the exception to the user if halting the target fails. Remove old allow_timeout flag in DP struct that's no longer needed.
2015-03-19Allow stub to return an error code.Gareth McMullin
2015-03-19Add cortexm generic stub call, and use in stm32f1 driver.Gareth McMullin
2015-03-15Replace adiv5_ap_mem* functions with inline wrappers to target mem*.Gareth McMullin
2015-03-15Consolidate target_mem_read* and target_mem_write* methods.Gareth McMullin
There are now only mem_read and mem_write, that must handle all alignments. These methods return void, errors must be checked with target_check_error.
2015-03-14adiv5: Encode APnDP into register definition.Gareth McMullin
Clean up magic numbers in adiv5 calls. Removed old adiv5_dp_write_ap and adiv5_dp_read_ap.
2015-03-14Use size_t for sizes in flash functions. Fix all sign compare warnings.Gareth McMullin
2015-03-13Fix pointer sign warnings and remove -Wno-pointer-sign.Gareth McMullin
2015-03-08STM32L0x target support.Marc Singer
Target support for stm32l0's and stm32l1's including option bytes and data EEPROM. This module will superceed the previous stm32l1 driver. o Program flash write and erase. o Options modification and interpretive status. o Stubs for program flash writes and erases. Stubs are modestly faster than non-stub version. The stm32l0 will not execute stubs when the MCU has crashed. A monitor option may be used to force non-stub flash writes. o Stubs generated from C++ code and converted to arrays of half-words. o Writes to data EEPROM supoprted when loading segments. o EEPROM data monitor command to write words. o Stubs supported on stm32l1.
2015-03-01Clean up includes everywhere.Gareth McMullin
All source files include general.h first and before anything else. This inlcludes platform.h and platform_support.h No header file needs to include to include any of these, but should include any others needed for it's own declarations.
2015-01-18Added support for SAMD10/11/21, and list of tested SAM D devicesRichard Meadows
This allows blackmagic to be used with the new Arduino Zero board via the unpopulated SWD header on the east end of the board.
2015-01-18Support for the NVMCTRL Security Bit (PROT=1)Richard Meadows
2015-01-18Avoid repetition of cortexm code in stmd20 driver.Gareth McMullin
2015-01-06First cut at Freescale Kinetis support.Gareth McMullin
2014-10-16Whitespace cleanup.Gareth McMullin
2014-09-12Give up unwinding a fault if reading the stack fails.Gareth McMullin
2014-09-03Atmel SAMD20 supportRichard Eoin Meadows
2014-05-01Nordic nRF51 series supportMike
2014-03-31Unwind hardfaults in dual-stack mode.Gareth McMullin
2013-10-05Add support for the SYS_WRITEC semihosting operation.Benno Leslie
This is implemented in the same manner as QEMU semihosting support, specifically, a SYS_WRITEC results in a single character write to STDERR.
2013-06-19Disable ADIv5 timeout while target is running.Gareth McMullin
2013-06-17Fix register array sizes.Gareth McMullin
2013-05-18semihosting: improve handling of console I/OPaul Fertser
This implements special handling for SYS_OPEN to catch requests for ":tt" which is reserved by ARM for console input/output. They're mapped to the appropriate GDB file descriptors automatically. An additional file handle offset is introduced because ARM doesn't consider zero handle to be valid. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2013-05-18Move semihosting support to cortexm.c.Gareth McMullin
Try to implement more syscalls.
2013-05-14adiv5_swdp: allow to connect to a sleeping target by pulling SRSTPaul Fertser
This patch introduces a new command, "connect_srst [enable|disable]" which allows to enable special mode in which SRST would be pulled low before the SWD scan till attaching to a target. Since on Cortex-Mx the SRST signal doesn't gate JTAG and SWD, it's possible to connect to a target while holding reset, ask it to stop at reset vector and only then deassert reset, thus allowing to attach to the kind of firmware that goes immediately to sleep or disables debugging by other means early on start. Tested on an STM32VLDiscovery board with STM32F100 configured to go to STOP mode and executing WFI in the very beginning of main(). Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2013-01-11Fixed magic numbers for CSW access.Gareth McMullin
2012-11-03Probe function return bool, true if device identified.Gareth McMullin
Correctly identify LM3S3748.
2012-11-03Recognise LPC43xx dual core devices.Gareth McMullin
2012-11-03Allow target attachment to timeout and report failure.Gareth McMullin
This is needed for if the target device is held in reset.
2012-10-25Added support for STM32L1.Vegard Storheil Eriksen
2012-08-10Add a copy of DEMCR to Cortex-M private data to preserve over 'run'.Gareth McMullin
2012-07-05Correct stepping over programmed breakpoints.Gareth McMullin
Fixes issue #2.
2012-07-05cortexm: Moved all static data to the heap.Gareth McMullin
2012-07-05cortexm: Poll for S_RESET_ST in DHCSR to detect release from reset.Gareth McMullin
2012-07-01Add delay after reset request.Gareth McMullin
Hopefully this fixes problems observed with failing vFlashWrite.
2012-06-30Signal on halt is now returned by target_halt_wait().Gareth McMullin
Fault unwinding is now handled internally in target implementation. GDB server doesn't need to know about it.
2012-06-28Clear target error on attaching.Gareth McMullin
Fixes possible lock-up on devices booting from blank flash.
2012-06-25Added 'vector_catch' command to control trapped vectors on Cortex-M.Gareth McMullin
2012-06-22First cut at an Atmel SAM3X driver.Gareth McMullin
2012-06-21Check target error after target specific probes.Gareth McMullin