Gareth McMullin
b494279fe5
Move target files into separate directory.
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
fec09464ac
Add STM32F302C8 ID.
...
From issue #100
2016-07-13 08:00:05 +12:00
Richard Meadows
beacf9c85c
Refactor stm32f1_probe
2015-07-30 07:58:55 +01:00
Richard Meadows
101821ae31
[Bugfix] stm32f1_probe would always return true, breaking support for all other targets
...
The intention of `if (t->driver)` conditional was to test if any of the cases in the preceeding switch/case were met. However t->driver was previously set to point to a default value in cortexm.c:200 and therefore this would always evaluate to true. I've replaced the broken if statement with a duplicate of the switch/case run above.
It looks like this was introduced in 09544bc710
(PR #92 ) but 492d6c9cf8
maybe contributes to the confusion in this instance.
2015-07-12 17:32:48 +01:00
Uwe Bonnes
a7f6753153
STM32f0: F07 and F09 have 2kiByte blocksize.
2015-06-22 16:44:19 +02:00
Uwe Bonnes
09544bc710
src/stm32f1.c: More verbose FO detection message.
2015-06-22 16:44:08 +02:00
Gareth McMullin
622497f7e2
stm32f1: use new flash interface.
2015-04-11 16:05:40 -07:00
Gareth McMullin
31fae032f7
cortexm: Separate stub loading from running.
2015-03-29 15:20:00 -07:00
Gareth McMullin
9f271d5cd7
Consistently use 'target *t' for target var.
2015-03-28 20:47:17 -07:00
Gareth McMullin
8ddb186b35
Allow stub to return an error code.
2015-03-19 21:49:09 -07:00
Gareth McMullin
437aedda11
Rewrote stm32f1 stub in C and call with parameters in registers.
2015-03-19 07:48:57 -07:00
Gareth McMullin
c2462a6788
Add cortexm generic stub call, and use in stm32f1 driver.
2015-03-19 07:48:47 -07:00
Gareth McMullin
e380ced517
Change STM32F1 driver to use generated stub.
2015-03-19 07:43:36 -07:00
Gareth McMullin
2bf54f9a72
Replace adiv5_ap_mem* functions with inline wrappers to target mem*.
2015-03-15 16:02:09 -07:00
Gareth McMullin
ee3af96a73
Consolidate target_mem_read* and target_mem_write* methods.
...
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-15 14:31:57 -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
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
Marc Singer
da28970c3e
Fix to move stubs into rodata.
...
o Stubs were declared as globals which means they will be initialized
data. No need for this. Now, stubs are static const and are only
present in the program image.
2015-01-09 18:18:10 -08:00
Uwe Bonnes
d162e75ceb
stm32f4.c: Add STM32F411 ID.
2014-12-23 21:32:21 +13:00
Gareth McMullin
f06bc0fd79
Minor fixes to stm32f1 flash routines.
2014-07-30 20:27:30 +12:00
bon@elektron.ikp.physik.tu-darmstadt.de
d27c50c601
Add STM32F03X and STM32F07X handling.
2014-01-24 05:03:38 +08:00
Uwe Bonnes
086f3565f0
stm32f1: Fix handling of option byte write. Write needs to happend on erased option bytes.
2013-10-20 16:14:25 +02:00
Uwe Bonnes
15e529a43a
stm32f1.c: On a read protected device, deny any other option action than erase.
...
Otherwise the first option action triggers an error, inhibiting further option
actions.
2013-10-20 16:14:19 +02:00
Gareth McMullin
8c877d6dfa
Fix trailing whitespace everywhere.
2013-06-17 15:53:32 +12:00
Uwe Bonnes
b1a942aca3
STM32F0/3: Handle the option bytes
2013-01-30 17:16:44 +01:00
Vegard Storheil Eriksen
8f04241aa8
Added support for STM32F37x.
2012-11-15 18:36:32 +01:00
Gareth McMullin
2637f072a1
Probe function return bool, true if device identified.
...
Correctly identify LM3S3748.
2012-11-03 23:53:25 +13:00
Vegard Storheil Eriksen
dddb51ca1c
Added support for STM32F0.
2012-10-24 18:08:01 +02:00
Vegard Storheil Eriksen
cb41855d91
Added support for STM32F3.
2012-10-23 19:40:23 +02:00
Gareth McMullin
4581da2034
Added option byte programming commands for STM32F1.
2012-06-26 21:02:11 +12:00
Gareth McMullin
94516329a0
Added 'erase_mass' command for STM32F1 and cleaned up some magic numbers.
2012-06-26 19:42:41 +12:00
Gareth McMullin
6089a66dce
Renamed target_flash_write_words to target_flash_write.
...
Buffer from GDB may not be aligned or integer number of words.
Corrected alignment in in STM32F1 driver.
2012-06-18 20:53:06 +12:00
Gareth McMullin
bc7e7d2112
Removed target header files containing a single prototype.
...
Target probe prototypes are all in target.h now.
2012-06-18 20:27:06 +12:00
Gareth McMullin
0599bdc5c4
Cleaned up STM32F1 driver and renamed appropriately.
2012-06-18 19:46:41 +12:00