188 Commits

Author SHA1 Message Date
Jason Kotzin
94238fd95b samd: ability to printout entire serial number 2019-03-29 16:34:12 -07:00
Ryan
5c835bc0f6 samd: srst_get_val now actually works 2019-02-22 18:21:13 -08:00
Jason Kotzin
880e977fb6 samd: custom serial string for easy opening on mac 2019-02-09 13:48:04 -08:00
Ryan
3a9b0eee7a samd: added tpwr support 2019-02-04 18:19:28 -08:00
Jason Kotzin
6baf90ac4c samd: adding dfu bootloader, compile support, and combined image 2018-12-20 13:35:45 -08:00
Ryan
77064754ad samd: fixed first-scan failure 2018-10-17 15:08:08 -07:00
Ryan
92ed79e68e samd: button code updated for libopencm3 2018-10-04 14:24:18 -07:00
Ryan
b91a975d56 samd: button must hold for 5 seconds now 2018-10-03 16:04:32 -07:00
Ryan
84b6818982 samd: convert_tdio command cleaned up 2018-09-28 14:54:31 -07:00
Ryan
4aee9fe2a3 samd: enter_bootldr command, bootldr button 2018-09-28 14:37:33 -07:00
Ryan
4847e0d1e6 samd: uart ports updated for bm-sam hw 2018-09-05 15:52:04 -07:00
Ryan
a599b989cf samd: TDI/O conversion, usart line coding 2018-09-05 12:10:43 -07:00
Ryan
50658a5c0a samd: small fixes to uart 2018-08-27 16:22:48 -07:00
Ryan
f828fc1ac1 samd voltage detection and line coding 2018-08-07 14:32:00 -07:00
Jason Kotzin
bd71ca2a3c Minor updates to help with speed, temporarily disabling uart 2018-08-01 19:10:01 -07:00
Ryan
2d38c9614e fixed typo in jeff/platform.h 2018-08-01 16:22:03 -07:00
Jason Kotzin
7ce265f2cf Adding queue.h file and fixing some compile errors 2018-08-01 14:26:31 -07:00
Jason Kotzin
638299534b samd: updates for jeff probe pcb 2018-07-13 23:48:52 -07:00
Jason Kotzin
58865ca5ec samd: uart support 2018-07-12 18:54:13 -07:00
Jason Kotzin
d62d82bb2f M0 SWDIO 2x performance improvements 2018-07-10 16:18:05 -07:00
Jason Kotzin
f1ecd66283 Initial support for samd hardware and jeff ‘probe’ 2018-07-10 15:42:44 -07:00
Jason Kotzin
1cc3e05c11 Force USB connect 2018-07-10 13:36:00 -07:00
Jason Kotzin
d5b6d4ab12 Allow support for older chip architectures 2018-07-10 13:35:45 -07:00
Gareth McMullin
633662dbb3 Hold TMS high during reset.
This is a questionable fix for the Kinetis K22F that samples
this pin on release from reset to enable its EzPort which
makes the flash unusable and disables the rest of the micro.
2017-04-21 11:05:07 +12:00
Gareth McMullin
e5395aaba7 Merge pull request #91 from schodet/usb-vbus
Fix usage of USB_VBUS
2017-04-18 08:22:57 +12:00
Gareth McMullin
394fd4894b Increase st-link flash allowance to 128K.
Although the devices are only documented to have 64K flash,
they have been obeserved to have a full 128K, although the undocumented
half may be untested and have problems.
2017-04-13 09:01:26 +12:00
Gareth McMullin
7ba2987a83 native: Fix macros for setting pin mode.
Fixes #184
2017-01-24 10:49:45 +13:00
Gareth McMullin
a77fb9ac1b Merge pull request #180 from paramaggarwal/patch-1
Actual pin mappings and the comment differ!
2017-01-09 14:39:06 +13:00
Piotr Esden-Tempski
606b73601c Added TMS/SWDIO direction pin & adjusted SRST sense.
1) This version uses a direction control level shifters. We need to control
the direction of the TMS/SWDIO pin.
2.1) Because we want to support a large voltage range for SRST we use an
external dual MOSFET for asserting and sensing the SRST line. We have
added the hardware version 3 to be handled the same way as version 0.
Meaning using separate pins for assertion and sensing of the SRST line.
2.2) The new SRST sense circuit is inverting, thus we have dedicated
code for hardware version 3 that inverts the SRST status pin on read.
2017-01-06 18:31:55 -08:00
Param Aggarwal
51ac0fe319 Actual pin mappings and the comment differ!
I was stuck trying to debug the issue why my probe would not find any attached targets. This is because I was doing the pin mapping as per the comments, and not the actual code. There is a mismatch!

This PR updates the comment to reflect the values set in code. :)
2017-01-01 14:50:58 +05:30
Chuck McManis
a3c2592e44 Review feedback 2016-12-04 13:15:45 -08:00
Chuck McManis
0aef6c6774 SAM4L: Add extended reset to target interface
This adds a new function to the internal target interface
to allow the target to get control before reset is complete
so that it can do any additional work. On this target there
is a proprietary internal bit that has to be reset in some
cases to allow the core to continue operating.
2016-12-02 00:08:21 -08:00
Gareth McMullin
7730d3b198 Don't enable usb uart on v2 when debugging 2016-11-22 12:45:59 +13:00
Gareth McMullin
f947465fe4 libftdi: Disable Nagle algorithm and buffer sends internally.
This significantly improves performance by not waiting for TCP
timeout on transmission.
2016-10-25 10:07:04 -07:00
Piotr Esden-Tempski
fdeb6471a8 Added missing #include guard. 2016-10-19 14:56:52 -07:00
Piotr Esden-Tempski
2d37de773c Fixed #include guard. 2016-10-19 14:36:27 -07:00
Piotr Esden-Tempski
8a009ca6ae Corrected jtagtap_next signature.
The parameter is TDI (as in input) not TDO. The header signature and
comment are correct.
2016-10-19 13:53:04 -07:00
Gareth McMullin
3abb4afdf6 Merge pull request #153 from gsmcmullin/restore_leds
Restore LED behaviour.
2016-10-05 10:37:36 -07:00
Gareth McMullin
966f360515 debug: Use semihosting if available or output via usbuart. 2016-09-29 21:31:13 -07:00
Gareth McMullin
40f960db4d Restore LED behaviour. 2016-09-28 22:15:15 -07:00
Gareth McMullin
45e322b9a3 Handle usart errors. 2016-08-22 09:57:52 +12:00
Gareth McMullin
5832d8a42a Clean up common SWD stuff. 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
0480578391 stlink: New discovery boards support.
Patch from issue #103
2016-07-13 08:00:05 +12:00
Gareth McMullin
8b4342394f Overhaul of timeouts so they may be nested. 2016-06-28 14:35:43 +12:00
Gareth McMullin
53c7fbd543 Fixes for verbose debug output. 2016-06-23 15:03:00 +12:00
Piotr Esden-Tempski
20c994eece Added black magic verbose/debug mode switch. 2016-06-22 17:28:26 -07: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
8d9d6f692c Fix platform_delay 2016-04-19 13:23:04 -07:00
Gareth McMullin
cd1d72257f Cleanup of SRST handling.
- Remove connect_assert_srst global.
- Attach functions always release reset.
- Platforms provide a method to poll the reset pin.
- Reset on scan is all internal to command.c
- Reset is released on a failed scan.  Fixes #111
2016-04-19 13:12:16 -07:00