aboutsummaryrefslogtreecommitdiff
path: root/src/platforms/stm32/cdcacm.c
diff options
context:
space:
mode:
authorUwe Bonnes2013-01-17 20:05:25 +0100
committerUwe Bonnes2013-01-21 11:02:44 +0100
commit04624af4e50eb59c0be7a9e5e1ef42b968a2c200 (patch)
tree231b69f7e2ccdd938ade4fb101f4059d43173702 /src/platforms/stm32/cdcacm.c
parente3736193745ad89e3dcb69a73f8906a4de41c4ca (diff)
f4discovery: Adapt from the "native" file and add or change code where needed
- stm32_mem.py has problems with erasing the big pages, but dfu-util works - serial GDB remote server doesn't work. It neither works for the STM32F107, so maybe there is a problem with the usbd_f107_driver.
Diffstat (limited to 'src/platforms/stm32/cdcacm.c')
-rw-r--r--src/platforms/stm32/cdcacm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/platforms/stm32/cdcacm.c b/src/platforms/stm32/cdcacm.c
index 9799d13..0cbfc5f 100644
--- a/src/platforms/stm32/cdcacm.c
+++ b/src/platforms/stm32/cdcacm.c
@@ -553,7 +553,11 @@ void USB_ISR(void)
static char *get_dev_unique_id(char *s)
{
+#if defined(STM32F4)
+ volatile uint32_t *unique_id_p = (volatile uint32_t *)0x1FFF7A10;
+#else
volatile uint32_t *unique_id_p = (volatile uint32_t *)0x1FFFF7E8;
+#endif
uint32_t unique_id = *unique_id_p +
*(unique_id_p + 1) +
*(unique_id_p + 2);