This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gpio_mode_setup(WINC1500_PORT, GPIO_MODE_INPUT, GPIO_PUPD_NONE, WINC1500_IRQ); // Input signal with pulldown | |
exti_select_source(WINC1500_IRQ, WINC1500_PORT); | |
exti_set_trigger(WINC1500_IRQ, EXTI_TRIGGER_FALLING); | |
exti_enable_request(WINC1500_IRQ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\iccv9cortex\GnuARM\bin> .\arm-none-eabi-gdb.exe C:\iccv9_samples\NewProjectWizard\JSAPI-F4\bin\Debug\JumpStart_STM | |
32F4xx.elf | |
GNU gdb (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 8.0.50.20171128-git | |
Copyright (C) 2017 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "--host=i686-w64-mingw32 --target=arm-none-eabi". | |
Type "show configuration" for configuration details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This first set of commands are from a BMP attached to CN7 of a Nucleo-F411RE | |
(gdb) target extended-remote //./com14 | |
Remote debugging using //./com14 | |
(gdb) mon sw | |
Target voltage: 3.3V | |
Available Targets: | |
No. Att Driver | |
1 STM32F4xx | |
(gdb) attach 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GNU gdb (GDB) 8.0.1 | |
Copyright (C) 2017 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "--host=i686-w64-mingw32 --target=arm-eabi". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: | |
<http://www.gnu.org/software/gdb/bugs/>. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void (*SysMemBootJump)(void); | |
volatile uint32_t addr = 0x1FFF0000; | |
/* Jump to the built in bootloader by mapping System flash */ | |
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_SYSCFGEN); | |
SYSCFG_MEMRM &= ~3; | |
SYSCFG_MEMRM |= 1; | |
/* | |
set the jump address | |
*/ | |
SysMemBootJump = (void (*)(void)) (*((uint32_t *) (addr + 4))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Updating the firmware on Windows requires a driver installation and the use of a tool called DF-Util. | |
The driver (on Windows 10) is installed using a utility from http://zadig.akeo.ie/. Black Magic Probe uses a driver called libusbK, a selection offered by the Zadig tool. | |
In a command window then execute the following command: | |
dfu-util.exe -d 1d50:6018,:6017 -E 20 -s 0x08002000:leave -D blackmagic.bin | |
Notes: | |
1. BMP will enter DFU mode but may not have a driver installed. If that is the case install a driver for the update device using Zadig and run the above command again. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(gdb) | |
load | |
&"load\n" | |
~"Loading section .isr_vector, size 0x1c8 lma 0x8000000\n" | |
+download,{section=".isr_vector",section-size="456",total-size="437540"} | |
+download,{section=".isr_vector",section-sent="456",section-size="456",total-sent="456",total-size="437540"} | |
~"Loading section .text, size 0x15dfc lma 0x80001d0\n" | |
+download,{section=".text",section-size="89596",total-size="437540"} | |
+download,{section=".text",section-sent="3008",section-size="89596",total-sent="3464",total-size="437540"} | |
+download,{section=".text",section-sent="6016",section-size="89596",total-sent="6472",total-size="437540"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\DataRoot\Projects\blackmagic\scripts> python .\stm32_mem.py ..\src\blackmagic.bin | |
USB Device Firmware Upgrade - Host Utility -- version 1.2 | |
Copyright (C) 2011 Black Sphere Technologies | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
Found Black Sphere Technologies | |
Device ID: 1d50:6017 | |
Manufacturer: b'Black Sphere Technologies' | |
Product: b'Black Magic Probe (Upgrade)' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This needs some fixing... */ | |
/* Toggle required to sort out line drivers... */ | |
gpio_port_write(GPIOA, 0x8102); | |
gpio_port_write(GPIOB, 0x2000); | |
gpio_port_write(GPIOA, 0x8182); | |
gpio_port_write(GPIOB, 0x2002); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gpio_port_write (GPIOA, 0xA102); | |
gpio_port_write (GPIOB, 0x0000); | |
gpio_port_write (GPIOA, 0xA182); | |
gpio_port_write (GPIOB, 0x0002); | |
OlderNewer