Antti Nykänen
3f9ea8250a
Defined snprintf to sniprintf on launchpad-icdi
2015-10-22 19:33:45 +03:00
Antti Nykänen
2365bbe010
TI TM4C/LM4F cdc-acm fixes
2015-09-30 15:48:01 +03:00
Nicolas Schodet
b60f5283ae
Fix usage of USB_VBUS
...
USB_VBUS is not an alternate function, it is an additionnal function which is
always enabled.
If configured as an alternate function, it will draw current from VBUS.
2015-06-23 11:51:56 +02:00
Gareth McMullin
0fc635b3f8
Add functions for dynamically generating the XML memory map.
2015-04-03 21:18:16 -07:00
Gareth McMullin
482070c91b
Merge branch 'v1.6-branch'
...
Conflicts:
src/Makefile
src/platforms/stlink/platform.h
src/platforms/swlink/platform.h
2015-04-03 21:02:01 -07:00
Gareth McMullin
97824b7f02
Use git describe for version in generated header file.
2015-04-03 20:21:33 -07:00
Gareth McMullin
68f54a3545
Remove old platform specific error handling macros.
2015-03-22 14:06:56 -07:00
Gareth McMullin
5ab8564ff6
Clean up handling of lost targets using new exceptions mechanism.
2015-03-22 14:05:12 -07:00
Gareth McMullin
588bad34ba
Build with -Os for swlink.
2015-03-22 12:26:45 -07:00
Gareth McMullin
9a8dbdeff7
Fix errors when building for non-native platforms.
2015-03-22 12:26:45 -07:00
Gareth McMullin
fa046601a5
Add exception handling mechanism and raise exception on low-level comms failure.
2015-03-22 12:26:45 -07:00
Gareth McMullin
f5f87bf70f
Build for stlink with -Os.
2015-03-15 20:39:19 -07:00
Gareth McMullin
6f5b1873d7
Use size_t for sizes in flash functions. Fix all sign compare warnings.
2015-03-14 15:18:22 -07:00
Gareth McMullin
f5c856af3b
Fix pointer sign warnings and remove -Wno-pointer-sign.
2015-03-13 20:35:39 -07:00
Gareth McMullin
3d28c1418c
Cleaned up printf/scanf for C99 integer types.
2015-03-11 20:47:42 -07:00
Gareth McMullin
4baa8aba4f
cdcacm: Fix DCD for second ACM interface.
2015-03-11 20:13:38 -07:00
Gareth McMullin
7c1c19881f
Reassert DCD after DTR is written. Fixes #41 .
2015-03-11 05:45:43 -07:00
Gareth McMullin
0d99e22a26
Quieten build system.
2015-03-07 11:03:50 -08:00
Gareth McMullin
1eac78b1c8
Move targets to make bin and hex files to toplevel makefile.
2015-03-07 11:03:50 -08:00
Gareth McMullin
49390fee2a
Fix Windows DFU instructions in the Hydrabus readme.
2015-03-04 20:22:19 -08:00
Benjamin Vernoux
9f0c29d329
Add support for HydraBus (tested with SWD with STM32F405 and SWD+JTAG with LPC4330 M0/M4)
2015-03-04 20:22:00 -08:00
Gareth McMullin
c731c6ece3
Make F4 conditionals check STM32F4, not F4DISCOVERY.
2015-03-03 21:39:29 -08:00
Gareth McMullin
3e466f2d23
Factor out timing routines common to all STM32 targets.
2015-03-02 21:59:04 -08:00
Gareth McMullin
b07ffffcee
Factor out common cdcacm.c from stm32 and tm4c.
...
Cleaned up interface to enter bootloader and read serial number.
2015-03-02 10:16:33 -08:00
Gareth McMullin
4d4813de87
Clean up includes everywhere.
...
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-03-01 22:16:04 -08:00
Gareth McMullin
9d80641261
Move common platform include to a common directory.
2015-03-01 20:15:31 -08:00
Gareth McMullin
476f83b69a
Move common USB stuff out of platform header files.
2015-02-28 22:48:26 -08:00
Gareth McMullin
5eff0ab5d6
Factor out common GPIO code in STM32 platforms.
2015-02-28 22:09:50 -08:00
Gareth McMullin
75001a4421
Factor Morse code functions out of platform code.
2015-02-28 22:05:10 -08:00
Gareth McMullin
5d136398e1
Use sensible return convention for platform_target_get_power()
2015-02-28 21:23:24 -08:00
Fredrik Ahlberg
346258934b
Added support for TI TM4C123 Launchpad
2014-11-23 22:59:16 +01:00
Gareth McMullin
fd9eef821e
Revert USB double buffered OUT handling on STM32F1.
...
This introduced a bug where the endpoint can get stuck, forever sending NAK.
2014-10-16 13:50:56 -07:00
Gareth McMullin
f85a8c4ebb
Fix build for f4discovery by defining platform_hwversion().
2014-10-16 13:50:56 -07:00
Gareth McMullin
a5549d630c
Whitespace cleanup.
2014-10-16 13:50:56 -07:00
Gareth McMullin
8a32b46f65
Fix build for non-native targets.
2014-08-08 20:22:33 +12:00
Gareth McMullin
84fc40085e
Send a null packet on end of USB transfer if last data packet is full.
2014-08-06 12:38:57 +12:00
Gareth McMullin
fad6eb3c14
Fix parity support on USB UART interface.
2014-07-30 19:57:18 +12:00
Gareth McMullin
bfe5d1168b
Merge pull request #47 from richardeoin/target-power
...
Added monitor option to toggle target power
2014-07-30 14:19:46 +12:00
Richard Eoin Meadows
c1b1d45155
TRST only exists on hardware version 0
2014-05-28 12:45:21 +01:00
Richard Eoin Meadows
42e41edfa1
Target power option is only for versions > 0
2014-05-28 12:33:43 +01:00
Richard Eoin Meadows
c9089f5851
Added monitor option to toggle target power
2014-05-28 12:25:48 +01:00
Richard Eoin Meadows
63bce97cbd
PLATFORM_FATAL_ERRORs are now caught even when they happen in the
...
initial JTAG scan that occours during platform_init.
Previously any fatal errors that occoured during this scan caused a
hardfault.
2014-05-28 12:10:26 +01:00
Gareth McMullin
72ae78a185
Updated libopencm3. Fixes broken bootloader, issue #43 .
2014-05-08 11:02:35 -07:00
Frantisek Burian
12aeaad441
[locm3] Use the new clock-enabling mechanisms in locm3.
2014-02-13 18:21:16 +01:00
Frantisek Burian
690e99c6b2
Fix the STK_CTRL to the STK_CSR library change.
2014-02-13 17:52:09 +01:00
bon@elektron.ikp.physik.tu-darmstadt.de
0c9d5d8166
Add dfu bootloader update application and use absolute delay for stlink
...
Hello,
appended 3 patches
- adds a dfu-bootloader appliaction
- uses absolute delays when waiting for pull-up delays on the STLINK
(hopefully fixes issue #30 )
Updating the dfu-bootloader by additional application is helpfull for the
STLINK, as for flashing the bootloader by SWDb otherwise jumpers need to be
soldered or external SWD is not possible.
Use like:
- dfu-util -s 0x08002000:leave -D dfu_upgrade.bin
- dfu-util -s 0x08000000:leave -D blackmagic_dfu.bin
- Push reset buttom and reconnect to enter new dfu bootloader
- dfu-util -s 0x08002000:leave -D blackmagic.bin
--
Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
>From fae5022c304a8866f056ea66660ac7ce3809dcf8 Mon Sep 17 00:00:00 2001
From: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Date: Sun, 20 Oct 2013 15:00:36 +0200
Subject: F1: Prepare to update dfu bootloader via DFU with additional
application.
2014-01-24 04:59:09 +08:00
Frantisek Burian
8014d434de
Update to the newest libopencm3
2014-01-04 17:29:54 +01:00
Gareth McMullin
8835df1822
Merge remote-tracking branch 'origin/usbuart_highrate'
2013-12-04 16:16:08 +13:00
Uwe Bonnes
09fbe783c5
f4discovery: Limit clock to 48 MHz and stack 24 kiByte so that code can be compiled unchanged for F401Discovery too.
...
TODO: Bump clk up to 84 MHz as soon as libopencm3 supports that speed.
2013-10-22 07:26:35 +08:00
Uwe Bonnes
5aa802969b
stlink: Give the NRST check more time as otherwise some L1 discovery board stayed in the bootloader.
2013-10-22 07:18:09 +08:00