aboutsummaryrefslogtreecommitdiff
path: root/src/cortexm3.c
diff options
context:
space:
mode:
authorGareth McMullin2011-11-12 19:15:52 +1300
committerGareth McMullin2011-11-12 19:15:52 +1300
commitd73ac40ef19be5f76b907513f158f3d435819e47 (patch)
tree08785866348ac66917a2b0366704bda7e0bd2dce /src/cortexm3.c
parent6a6b52bf54ae2400634d69f4f0cc632592b40a96 (diff)
Added preliminary support for the STM32F4.
Diffstat (limited to 'src/cortexm3.c')
-rw-r--r--src/cortexm3.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cortexm3.c b/src/cortexm3.c
index 539ca8f..645fe3e 100644
--- a/src/cortexm3.c
+++ b/src/cortexm3.c
@@ -210,9 +210,10 @@ cm3_probe(struct target_s *target)
target->fault_unwind = cm3_fault_unwind;
target->regs_size = 16<<2;
- /* if not STM32 try LMI */
- if(stm32_probe(target) != 0)
- lmi_probe(target);
+ if(stm32_probe(target) == 0) return 0;
+ if(stm32f4_probe(target) == 0) return 0;
+ /* if not STM32 try LMI which I don't know how to detect reliably */
+ lmi_probe(target);
return 0;
}