Created
July 2, 2021 03:55
-
-
Save ht93/c5c5f12034628205ea3719283cea5093 to your computer and use it in GitHub Desktop.
blackpill st7789 stm32duino core 1.9.0
This file contains 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
Breakpoint 3, setup () | |
at C:\Users\E1200\Dropbox\Guitar\pedal\stm32\stm32duino\sketch_file\midi_controller_adafruit/midi_controller_adafruit.ino:30 | |
30 Adafruit_ST7789 tft = Adafruit_ST7789(&SPI_1, TFT_CS, TFT_DC, TFT_RST); | |
(gdb) list | |
25 | |
26 void setup(void) { | |
27 delay(10000); | |
28 // delay(1000); | |
29 // delay(5000); | |
30 Adafruit_ST7789 tft = Adafruit_ST7789(&SPI_1, TFT_CS, TFT_DC, TFT_RST); | |
31 tft.init(240, 320); // Init ST7789 320x240 | |
32 tft.fillScreen(ST77XX_BLACK); | |
33 tft.setRotation(1); | |
34 tft.setTextWrap(false); | |
(gdb) s | |
halted: PC: 0x08000256 | |
halted: PC: 0x08000258 | |
halted: PC: 0x0800025a | |
halted: PC: 0x0800025c | |
halted: PC: 0x0800025e | |
halted: PC: 0x08000260 | |
halted: PC: 0x08001d10 | |
Adafruit_ST7789::Adafruit_ST7789 (this=0x2001ff9c, spiClass=0x200000a8 <SPI_1>, cs=41 ')', dc=46 '.', rst=45 '-') | |
at C:\Users\E1200\Documents\Arduino\libraries\Adafruit_ST7735_and_ST7789_Library\Adafruit_ST7789.cpp:35 | |
35 Adafruit_ST7789::Adafruit_ST7789(SPIClass *spiClass, int8_t cs, int8_t dc, | |
(gdb) | |
halted: PC: 0x08001d12 | |
halted: PC: 0x08001d14 | |
halted: PC: 0x08001d16 | |
halted: PC: 0x08001d1a | |
halted: PC: 0x08001d1c | |
halted: PC: 0x08001d1e | |
halted: PC: 0x08001d20 | |
halted: PC: 0x08001d22 | |
halted: PC: 0x08001d26 | |
halted: PC: 0x08001d28 | |
halted: PC: 0x08001ed8 | |
Adafruit_ST77xx::Adafruit_ST77xx (this=0x2001ff9c, w=240, h=320, spiClass=0x200000a8 <SPI_1>, cs=41 ')', dc=46 '.', | |
rst=45 '-') | |
at C:\Users\E1200\Documents\Arduino\libraries\Adafruit_ST7735_and_ST7789_Library\Adafruit_ST77xx.cpp:79 | |
79 Adafruit_ST77xx::Adafruit_ST77xx(uint16_t w, uint16_t h, SPIClass *spiClass, | |
(gdb) | |
halted: PC: 0x08001eda | |
halted: PC: 0x08001edc | |
halted: PC: 0x08001ede | |
halted: PC: 0x08001ee2 | |
halted: PC: 0x08001ee4 | |
halted: PC: 0x08001ee8 | |
halted: PC: 0x08001eea | |
halted: PC: 0x08001eee | |
halted: PC: 0x08001ef0 | |
halted: PC: 0x080012d0 | |
Adafruit_SPITFT::Adafruit_SPITFT (this=0x2001ff9c, w=240, h=320, spiClass=0x200000a8 <SPI_1>, cs=41 ')', dc=46 '.', | |
rst=45 '-') at C:\Users\E1200\Documents\Arduino\libraries\Adafruit_GFX_Library\Adafruit_SPITFT.cpp:281 | |
281 Adafruit_SPITFT::Adafruit_SPITFT(uint16_t w, uint16_t h, SPIClass *spiClass, | |
(gdb) | |
halted: PC: 0x080012d2 | |
halted: PC: 0x080012d4 | |
halted: PC: 0x080012d6 | |
halted: PC: 0x080012d8 | |
halted: PC: 0x080012da | |
halted: PC: 0x08000e40 | |
Adafruit_GFX::Adafruit_GFX (this=0x2001ff9c, w=240, h=320) | |
at C:\Users\E1200\Documents\Arduino\libraries\Adafruit_GFX_Library\Adafruit_GFX.cpp:110 | |
110 Adafruit_GFX::Adafruit_GFX(int16_t w, int16_t h) : WIDTH(w), HEIGHT(h) { | |
(gdb) | |
halted: PC: 0x08000e42 | |
Print::Print (this=0x2001ff9c) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/Print.h:52 | |
52 Print() : write_error(0) {} | |
(gdb) | |
halted: PC: 0x08000e44 | |
halted: PC: 0x08000e46 | |
halted: PC: 0x08000e48 | |
halted: PC: 0x08000e4a | |
halted: PC: 0x08000e4c | |
halted: PC: 0x08000e4e | |
111 _width = WIDTH; | |
(gdb) | |
halted: PC: 0x08000e50 | |
112 _height = HEIGHT; | |
(gdb) | |
halted: PC: 0x08000e52 | |
113 rotation = 0; | |
(gdb) | |
halted: PC: 0x08000e54 | |
114 cursor_y = cursor_x = 0; | |
(gdb) | |
halted: PC: 0x08000e56 | |
halted: PC: 0x08000e58 | |
115 textsize_x = textsize_y = 1; | |
(gdb) | |
halted: PC: 0x08000e5a | |
halted: PC: 0x08000e5c | |
halted: PC: 0x08000e5e | |
116 textcolor = textbgcolor = 0xFFFF; | |
(gdb) | |
halted: PC: 0x08000e62 | |
halted: PC: 0x08000e64 | |
halted: PC: 0x08000e66 | |
117 wrap = true; | |
(gdb) | |
halted: PC: 0x08000e68 | |
118 _cp437 = false; | |
(gdb) | |
halted: PC: 0x08000e6a | |
119 gfxFont = NULL; | |
(gdb) | |
halted: PC: 0x08000e6c | |
halted: PC: 0x08000e6e | |
halted: PC: 0x080012de | |
halted: PC: 0x080012e0 | |
halted: PC: 0x080012e2 | |
halted: PC: 0x080012e4 | |
halted: PC: 0x080012e8 | |
halted: PC: 0x080012ec | |
halted: PC: 0x080012f0 | |
halted: PC: 0x080012f4 | |
halted: PC: 0x080012f8 | |
halted: PC: 0x080012fc | |
halted: PC: 0x08001300 | |
halted: PC: 0x08001302 | |
halted: PC: 0x08001304 | |
halted: PC: 0x08001308 | |
halted: PC: 0x0800130c | |
halted: PC: 0x0800130e | |
Adafruit_SPITFT::Adafruit_SPITFT (this=0x2001ff9c, w=<optimized out>, h=<optimized out>, spiClass=0x200000a8 <SPI_1>, | |
cs=41 ')', dc=46 '.', rst=45 '-') | |
at C:\Users\E1200\Documents\Arduino\libraries\Adafruit_GFX_Library\Adafruit_SPITFT.cpp:285 | |
285 hwspi._spi = spiClass; | |
(gdb) | |
halted: PC: 0x08001310 | |
halted: PC: 0x08001312 | |
halted: PC: 0x08001ef4 | |
halted: PC: 0x08001ef6 | |
halted: PC: 0x08001ef8 | |
halted: PC: 0x08001efa | |
halted: PC: 0x08001efe | |
halted: PC: 0x08001f02 | |
halted: PC: 0x08001f06 | |
halted: PC: 0x08001f08 | |
halted: PC: 0x08001f0a | |
halted: PC: 0x08001d2c | |
halted: PC: 0x08001d2e | |
halted: PC: 0x08001d30 | |
halted: PC: 0x08001d32 | |
halted: PC: 0x08001d36 | |
halted: PC: 0x08001d3a | |
halted: PC: 0x08001d3c | |
halted: PC: 0x08001d3e | |
halted: PC: 0x08000264 | |
setup () | |
at C:\Users\E1200\Dropbox\Guitar\pedal\stm32\stm32duino\sketch_file\midi_controller_adafruit/midi_controller_adafruit.ino:31 | |
31 tft.init(240, 320); // Init ST7789 320x240 | |
(gdb) | |
halted: PC: 0x08000266 | |
halted: PC: 0x0800026a | |
halted: PC: 0x0800026c | |
halted: PC: 0x0800026e | |
halted: PC: 0x08001d44 | |
Adafruit_ST7789::init (this=this@entry=0x2001ff9c, width=width@entry=240, height=height@entry=320, | |
mode=mode@entry=0 '\000') | |
at C:\Users\E1200\Documents\Arduino\libraries\Adafruit_ST7735_and_ST7789_Library\Adafruit_ST7789.cpp:91 | |
91 void Adafruit_ST7789::init(uint16_t width, uint16_t height, uint8_t mode) { | |
(gdb) | |
halted: PC: 0x08001d46 | |
halted: PC: 0x08001d48 | |
halted: PC: 0x08001d4a | |
halted: PC: 0x08001d4c | |
100 spiMode = mode; | |
(gdb) | |
halted: PC: 0x08001d50 | |
104 commonInit(NULL); | |
(gdb) | |
halted: PC: 0x08001d52 | |
halted: PC: 0x08001f5e | |
Adafruit_ST77xx::commonInit (this=this@entry=0x2001ff9c, cmdList=cmdList@entry=0x0) | |
at C:\Users\E1200\Documents\Arduino\libraries\Adafruit_ST7735_and_ST7789_Library\Adafruit_ST77xx.cpp:139 | |
139 void Adafruit_ST77xx::commonInit(const uint8_t *cmdList) { | |
(gdb) | |
halted: PC: 0x08001f60 | |
halted: PC: 0x08001f62 | |
halted: PC: 0x08001f64 | |
140 begin(); | |
(gdb) | |
halted: PC: 0x08001f66 | |
halted: PC: 0x08001f68 | |
halted: PC: 0x08001f6a | |
halted: PC: 0x08001dec | |
Adafruit_ST77xx::begin (this=0x2001ff9c, freq=0) | |
at C:\Users\E1200\Documents\Arduino\libraries\Adafruit_ST7735_and_ST7789_Library\Adafruit_ST77xx.cpp:121 | |
121 void Adafruit_ST77xx::begin(uint32_t freq) { | |
(gdb) | |
halted: PC: 0x08001dee | |
122 if (!freq) { | |
(gdb) | |
halted: PC: 0x08001df0 | |
halted: PC: 0x08001df2 | |
halted: PC: 0x08001df4 | |
125 _freq = freq; | |
(gdb) | |
halted: PC: 0x08001df6 | |
127 invertOnCommand = ST77XX_INVON; | |
(gdb) | |
halted: PC: 0x08001df8 | |
halted: PC: 0x08001dfc | |
128 invertOffCommand = ST77XX_INVOFF; | |
(gdb) | |
halted: PC: 0x08001dfe | |
halted: PC: 0x08001e02 | |
130 initSPI(freq, spiMode); | |
(gdb) | |
halted: PC: 0x08001e06 | |
halted: PC: 0x08001e08 | |
halted: PC: 0x08001318 | |
Adafruit_SPITFT::initSPI (this=0x2001ff9c, freq=32000000, spiMode=0 '\000') | |
at C:\Users\E1200\Documents\Arduino\libraries\Adafruit_GFX_Library\Adafruit_SPITFT.cpp:527 | |
527 void Adafruit_SPITFT::initSPI(uint32_t freq, uint8_t spiMode) { | |
(gdb) | |
halted: PC: 0x0800131a | |
halted: PC: 0x0800131c | |
halted: PC: 0x0800131e | |
halted: PC: 0x08001320 | |
529 if (!freq) | |
(gdb) | |
halted: PC: 0x08001322 | |
halted: PC: 0x08001326 | |
533 if (_cs >= 0) { | |
(gdb) | |
halted: PC: 0x0800132a | |
halted: PC: 0x0800132c | |
halted: PC: 0x08001384 | |
534 pinMode(_cs, OUTPUT); | |
(gdb) | |
halted: PC: 0x08001386 | |
halted: PC: 0x08004f6c | |
pinMode (ulPin=41, ulMode=ulMode@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_digital.c:30 | |
30 { | |
(gdb) | |
halted: PC: 0x08004f6e | |
halted: PC: 0x08004f70 | |
31 PinName p = digitalPinToPinName(ulPin); | |
(gdb) | |
halted: PC: 0x08004f72 | |
halted: PC: 0x08004fa4 | |
halted: PC: 0x08004fa6 | |
halted: PC: 0x08004fa8 | |
halted: PC: 0x08004faa | |
halted: PC: 0x08004fac | |
halted: PC: 0x08004fb0 | |
halted: PC: 0x08004fb2 | |
halted: PC: 0x08004fb6 | |
halted: PC: 0x08004f7a | |
33 if (p != NC) { | |
(gdb) | |
halted: PC: 0x08004f7e | |
halted: PC: 0x08004f80 | |
37 if (is_pin_configured(p, g_anOutputPinConfigured)) { | |
(gdb) | |
halted: PC: 0x08004f84 | |
halted: PC: 0x08004f86 | |
halted: PC: 0x08004f8a | |
halted: PC: 0x08004f8e | |
halted: PC: 0x08004f90 | |
halted: PC: 0x08004f94 | |
halted: PC: 0x08004f96 | |
53 switch (ulMode) { | |
(gdb) | |
halted: PC: 0x08004f98 | |
halted: PC: 0x08004f9a | |
halted: PC: 0x08005008 | |
67 pin_function(p, STM_PIN_DATA(STM_MODE_OUTPUT_PP, GPIO_NOPULL, 0)); | |
(gdb) | |
halted: PC: 0x0800500a | |
halted: PC: 0x0800500c | |
halted: PC: 0x08004020 | |
pin_function (pin=pin@entry=PA_4, function=function@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:63 | |
63 { | |
(gdb) | |
halted: PC: 0x08004024 | |
halted: PC: 0x08004026 | |
halted: PC: 0x08004028 | |
65 uint32_t mode = STM_PIN_FUNCTION(function); | |
(gdb) | |
halted: PC: 0x0800402c | |
66 uint32_t afnum = STM_PIN_AFNUM(function); | |
(gdb) | |
halted: PC: 0x08004030 | |
67 uint32_t port = STM_PORT(pin); | |
(gdb) | |
halted: PC: 0x08004034 | |
68 uint32_t ll_pin = STM_LL_GPIO_PIN(pin); | |
(gdb) | |
halted: PC: 0x08004038 | |
halted: PC: 0x0800403a | |
halted: PC: 0x0800403e | |
71 if (pin == (PinName)NC) { | |
(gdb) | |
halted: PC: 0x08004042 | |
halted: PC: 0x08004044 | |
99 GPIO_TypeDef *gpio = set_GPIO_Port_Clock(port); | |
(gdb) | |
halted: PC: 0x08004046 | |
halted: PC: 0x08003eb8 | |
set_GPIO_Port_Clock (port_idx=port_idx@entry=0) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\PortNam | |
es.c:69 | |
69 { | |
(gdb) | |
halted: PC: 0x08003eba | |
71 switch (port_idx) { | |
(gdb) | |
halted: PC: 0x08003ebc | |
halted: PC: 0x08003ebe | |
halted: PC: 0x08003ec8 | |
74 __HAL_RCC_GPIOA_CLK_ENABLE(); | |
(gdb) | |
halted: PC: 0x08003eca | |
halted: PC: 0x08003ecc | |
halted: PC: 0x08003ece | |
halted: PC: 0x08003ed0 | |
halted: PC: 0x08003ed4 | |
halted: PC: 0x08003ed6 | |
halted: PC: 0x08003ed8 | |
halted: PC: 0x08003edc | |
halted: PC: 0x08003ede | |
halted: PC: 0x08003ee0 | |
75 break; | |
(gdb) | |
halted: PC: 0x08003ee2 | |
halted: PC: 0x08003ee4 | |
halted: PC: 0x0800404a | |
halted: PC: 0x0800404c | |
pin_function (pin=pin@entry=PA_4, function=function@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:113 | |
113 LL_GPIO_SetPinSpeed(gpio, ll_pin, LL_GPIO_SPEED_FREQ_VERY_HIGH); | |
(gdb) | |
LL_GPIO_SetPinSpeed (Speed=3, Pin=16, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:417 | |
417 MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDER_OSPEEDR0 << (POSITION_VAL(Pin) * 2U)), | |
(gdb) | |
halted: PC: 0x0800404e | |
__RBIT (value=16) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004052 | |
LL_GPIO_SetPinSpeed (Speed=3, Pin=16, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:417 | |
417 MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDER_OSPEEDR0 << (POSITION_VAL(Pin) * 2U)), | |
(gdb) | |
__CLZ (value=134217728) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004054 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004058 | |
halted: PC: 0x0800405a | |
halted: PC: 0x0800405c | |
halted: PC: 0x08004060 | |
halted: PC: 0x08004064 | |
__RBIT (value=16) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004068 | |
LL_GPIO_SetPinSpeed (Speed=3, Pin=16, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:417 | |
417 MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDER_OSPEEDR0 << (POSITION_VAL(Pin) * 2U)), | |
(gdb) | |
__CLZ (value=134217728) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x0800406a | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x0800406e | |
halted: PC: 0x08004070 | |
halted: PC: 0x08004072 | |
halted: PC: 0x08004076 | |
halted: PC: 0x08004078 | |
halted: PC: 0x0800407a | |
pin_function (pin=pin@entry=PA_4, function=function@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:121 | |
121 switch (mode) { | |
(gdb) | |
halted: PC: 0x0800407c | |
halted: PC: 0x0800407e | |
halted: PC: 0x08004128 | |
halted: PC: 0x0800412a | |
144 LL_GPIO_SetPinMode(gpio, ll_pin, ll_mode); | |
(gdb) | |
LL_GPIO_SetPinMode (Mode=1, Pin=16, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:276 | |
276 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODER0 << (POSITION_VAL(Pin) * 2U)), (Mode << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
halted: PC: 0x0800412c | |
__RBIT (value=16) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004130 | |
LL_GPIO_SetPinMode (Mode=1, Pin=16, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:276 | |
276 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODER0 << (POSITION_VAL(Pin) * 2U)), (Mode << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=134217728) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004132 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004136 | |
halted: PC: 0x08004138 | |
halted: PC: 0x0800413a | |
halted: PC: 0x0800413e | |
halted: PC: 0x08004142 | |
__RBIT (value=16) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004146 | |
LL_GPIO_SetPinMode (Mode=1, Pin=16, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:276 | |
276 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODER0 << (POSITION_VAL(Pin) * 2U)), (Mode << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=134217728) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004148 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x0800414c | |
halted: PC: 0x0800414e | |
halted: PC: 0x08004152 | |
halted: PC: 0x08004154 | |
halted: PC: 0x08004156 | |
pin_function (pin=pin@entry=PA_4, function=function@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:155 | |
155 if ((mode == STM_PIN_OUTPUT) || (mode == STM_PIN_ALTERNATE)) { | |
(gdb) | |
halted: PC: 0x08004158 | |
halted: PC: 0x0800415a | |
halted: PC: 0x08004192 | |
156 if (STM_PIN_OD(function)) { | |
(gdb) | |
halted: PC: 0x08004196 | |
halted: PC: 0x080041cc | |
159 LL_GPIO_SetPinOutputType(gpio, ll_pin, LL_GPIO_OUTPUT_PUSHPULL); | |
(gdb) | |
LL_GPIO_SetPinOutputType (OutputType=0, Pin=16, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:345 | |
345 MODIFY_REG(GPIOx->OTYPER, (GPIO_OTYPER_OT_0 << POSITION_VAL(Pin)), (OutputType << POSITION_VAL(Pin))); | |
(gdb) | |
halted: PC: 0x080041ce | |
__RBIT (value=16) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x080041d2 | |
LL_GPIO_SetPinOutputType (OutputType=0, Pin=16, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:345 | |
345 MODIFY_REG(GPIOx->OTYPER, (GPIO_OTYPER_OT_0 << POSITION_VAL(Pin)), (OutputType << POSITION_VAL(Pin))); | |
(gdb) | |
__CLZ (value=134217728) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x080041d4 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x080041d8 | |
halted: PC: 0x080041da | |
halted: PC: 0x080041de | |
halted: PC: 0x080041e2 | |
__RBIT (value=16) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x080041e6 | |
LL_GPIO_SetPinOutputType (OutputType=0, Pin=16, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x080041e8 | |
halted: PC: 0x0800415c | |
pin_function (pin=pin@entry=PA_4, function=function@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:163 | |
163 pin_PullConfig(gpio, ll_pin, STM_PIN_PUPD(function)); | |
(gdb) | |
halted: PC: 0x08004160 | |
pin_PullConfig (pull_config=0, ll_pin=16, gpio=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/pinconfig.h:59 | |
59 switch (pull_config) { | |
(gdb) | |
halted: PC: 0x08004162 | |
halted: PC: 0x08004164 | |
halted: PC: 0x08004166 | |
halted: PC: 0x08004168 | |
83 LL_GPIO_SetPinPull(gpio, ll_pin, LL_GPIO_PULL_NO); | |
(gdb) | |
LL_GPIO_SetPinPull (Pull=0, Pin=16, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:488 | |
488 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPDR0 << (POSITION_VAL(Pin) * 2U)), (Pull << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
halted: PC: 0x0800416a | |
__RBIT (value=16) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x0800416e | |
LL_GPIO_SetPinPull (Pull=0, Pin=16, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:488 | |
488 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPDR0 << (POSITION_VAL(Pin) * 2U)), (Pull << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=134217728) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004170 | |
halted: PC: 0x08004172 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004176 | |
halted: PC: 0x08004178 | |
halted: PC: 0x0800417a | |
halted: PC: 0x0800417e | |
halted: PC: 0x08004182 | |
__RBIT (value=16) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004186 | |
LL_GPIO_SetPinPull (Pull=0, Pin=16, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004188 | |
pin_function (pin=pin@entry=PA_4, function=function@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/pinconfig.h:46 | |
46 UNUSED(pin); | |
(gdb) | |
halted: PC: 0x0800421c | |
halted: PC: 0x08005010 | |
pinMode (ulPin=<optimized out>, ulMode=ulMode@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_digital.c:68 | |
68 break; | |
(gdb) | |
halted: PC: 0x08004fe8 | |
56 break; | |
(gdb) | |
halted: PC: 0x0800138a | |
Adafruit_SPITFT::initSPI (this=0x2001ff9c, freq=32000000, spiMode=<optimized out>) | |
at C:\Users\E1200\Documents\Arduino\libraries\Adafruit_GFX_Library\Adafruit_SPITFT.cpp:535 | |
535 digitalWrite(_cs, HIGH); // Deselect | |
(gdb) | |
halted: PC: 0x0800138c | |
halted: PC: 0x08001390 | |
halted: PC: 0x0800503c | |
digitalWrite (ulPin=41, ulVal=ulVal@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_digital.c:81 | |
81 digitalWriteFast(digitalPinToPinName(ulPin), ulVal); | |
(gdb) | |
halted: PC: 0x0800503e | |
halted: PC: 0x08005064 | |
halted: PC: 0x08005066 | |
halted: PC: 0x08005068 | |
halted: PC: 0x0800506a | |
halted: PC: 0x0800506c | |
halted: PC: 0x08005070 | |
halted: PC: 0x08005072 | |
halted: PC: 0x08005076 | |
halted: PC: 0x08005046 | |
digitalWriteFast (ulVal=1, pn=PA_4) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/digital_io.h:96 | |
96 digital_io_write(get_GPIO_Port(STM_PORT(pn)), STM_LL_GPIO_PIN(pn), ulVal); | |
(gdb) | |
halted: PC: 0x0800504a | |
halted: PC: 0x0800504c | |
halted: PC: 0x0800504e | |
halted: PC: 0x08005050 | |
halted: PC: 0x08005054 | |
halted: PC: 0x08005058 | |
halted: PC: 0x0800505a | |
halted: PC: 0x0800505e | |
digital_io_write (val=1, pin=16, port=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/digital_io.h:59 | |
59 if (val) { | |
(gdb) | |
halted: PC: 0x08005060 | |
60 LL_GPIO_SetOutputPin(port, pin); | |
(gdb) | |
LL_GPIO_SetOutputPin (PinMask=16, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:885 | |
885 WRITE_REG(GPIOx->BSRR, PinMask); | |
(gdb) | |
halted: PC: 0x08005062 | |
halted: PC: 0x08001394 | |
halted: PC: 0x0800132e | |
Adafruit_SPITFT::initSPI (this=0x2001ff9c, freq=32000000, spiMode=<optimized out>) | |
at C:\Users\E1200\Documents\Arduino\libraries\Adafruit_GFX_Library\Adafruit_SPITFT.cpp:537 | |
537 pinMode(_dc, OUTPUT); | |
(gdb) | |
halted: PC: 0x08001330 | |
halted: PC: 0x08001334 | |
halted: PC: 0x08004f6c | |
pinMode (ulPin=46, ulMode=ulMode@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_digital.c:30 | |
30 { | |
(gdb) | |
halted: PC: 0x08004f6e | |
halted: PC: 0x08004f70 | |
31 PinName p = digitalPinToPinName(ulPin); | |
(gdb) | |
halted: PC: 0x08004f72 | |
halted: PC: 0x08004fa4 | |
halted: PC: 0x08004fa6 | |
halted: PC: 0x08004fa8 | |
halted: PC: 0x08004faa | |
halted: PC: 0x08004fac | |
halted: PC: 0x08004fb0 | |
halted: PC: 0x08004fb2 | |
halted: PC: 0x08004fb6 | |
halted: PC: 0x08004f7a | |
33 if (p != NC) { | |
(gdb) | |
halted: PC: 0x08004f7e | |
halted: PC: 0x08004f80 | |
37 if (is_pin_configured(p, g_anOutputPinConfigured)) { | |
(gdb) | |
halted: PC: 0x08004f84 | |
halted: PC: 0x08004f86 | |
halted: PC: 0x08004f8a | |
halted: PC: 0x08004f8e | |
halted: PC: 0x08004f90 | |
halted: PC: 0x08004f94 | |
halted: PC: 0x08004f96 | |
53 switch (ulMode) { | |
(gdb) | |
halted: PC: 0x08004f98 | |
halted: PC: 0x08004f9a | |
halted: PC: 0x08005008 | |
67 pin_function(p, STM_PIN_DATA(STM_MODE_OUTPUT_PP, GPIO_NOPULL, 0)); | |
(gdb) | |
halted: PC: 0x0800500a | |
halted: PC: 0x0800500c | |
halted: PC: 0x08004020 | |
pin_function (pin=pin@entry=PB_1, function=function@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:63 | |
63 { | |
(gdb) | |
halted: PC: 0x08004024 | |
halted: PC: 0x08004026 | |
halted: PC: 0x08004028 | |
65 uint32_t mode = STM_PIN_FUNCTION(function); | |
(gdb) | |
halted: PC: 0x0800402c | |
66 uint32_t afnum = STM_PIN_AFNUM(function); | |
(gdb) | |
halted: PC: 0x08004030 | |
67 uint32_t port = STM_PORT(pin); | |
(gdb) | |
halted: PC: 0x08004034 | |
68 uint32_t ll_pin = STM_LL_GPIO_PIN(pin); | |
(gdb) | |
halted: PC: 0x08004038 | |
halted: PC: 0x0800403a | |
halted: PC: 0x0800403e | |
71 if (pin == (PinName)NC) { | |
(gdb) | |
halted: PC: 0x08004042 | |
halted: PC: 0x08004044 | |
99 GPIO_TypeDef *gpio = set_GPIO_Port_Clock(port); | |
(gdb) | |
halted: PC: 0x08004046 | |
halted: PC: 0x08003eb8 | |
set_GPIO_Port_Clock (port_idx=port_idx@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\PortNames.c:69 | |
69 { | |
(gdb) | |
halted: PC: 0x08003eba | |
71 switch (port_idx) { | |
(gdb) | |
halted: PC: 0x08003ebc | |
halted: PC: 0x08003ebe | |
halted: PC: 0x08003ee6 | |
78 __HAL_RCC_GPIOB_CLK_ENABLE(); | |
(gdb) | |
halted: PC: 0x08003ee8 | |
halted: PC: 0x08003eea | |
halted: PC: 0x08003eec | |
halted: PC: 0x08003eee | |
halted: PC: 0x08003ef2 | |
halted: PC: 0x08003ef4 | |
halted: PC: 0x08003ef6 | |
halted: PC: 0x08003efa | |
halted: PC: 0x08003efc | |
halted: PC: 0x08003efe | |
79 break; | |
(gdb) | |
halted: PC: 0x08003f00 | |
halted: PC: 0x08003ee2 | |
halted: PC: 0x08003ee4 | |
halted: PC: 0x0800404a | |
halted: PC: 0x0800404c | |
pin_function (pin=pin@entry=PB_1, function=function@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:113 | |
113 LL_GPIO_SetPinSpeed(gpio, ll_pin, LL_GPIO_SPEED_FREQ_VERY_HIGH); | |
(gdb) | |
LL_GPIO_SetPinSpeed (Speed=3, Pin=2, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:417 | |
417 MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDER_OSPEEDR0 << (POSITION_VAL(Pin) * 2U)), | |
(gdb) | |
halted: PC: 0x0800404e | |
__RBIT (value=2) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004052 | |
LL_GPIO_SetPinSpeed (Speed=3, Pin=2, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:417 | |
417 MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDER_OSPEEDR0 << (POSITION_VAL(Pin) * 2U)), | |
(gdb) | |
__CLZ (value=1073741824) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004054 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004058 | |
halted: PC: 0x0800405a | |
halted: PC: 0x0800405c | |
halted: PC: 0x08004060 | |
halted: PC: 0x08004064 | |
__RBIT (value=2) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004068 | |
LL_GPIO_SetPinSpeed (Speed=3, Pin=2, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:417 | |
417 MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDER_OSPEEDR0 << (POSITION_VAL(Pin) * 2U)), | |
(gdb) | |
__CLZ (value=1073741824) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x0800406a | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x0800406e | |
halted: PC: 0x08004070 | |
halted: PC: 0x08004072 | |
halted: PC: 0x08004076 | |
halted: PC: 0x08004078 | |
halted: PC: 0x0800407a | |
pin_function (pin=pin@entry=PB_1, function=function@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:121 | |
121 switch (mode) { | |
(gdb) | |
halted: PC: 0x0800407c | |
halted: PC: 0x0800407e | |
halted: PC: 0x08004128 | |
halted: PC: 0x0800412a | |
144 LL_GPIO_SetPinMode(gpio, ll_pin, ll_mode); | |
(gdb) | |
LL_GPIO_SetPinMode (Mode=1, Pin=2, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:276 | |
276 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODER0 << (POSITION_VAL(Pin) * 2U)), (Mode << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
halted: PC: 0x0800412c | |
__RBIT (value=2) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004130 | |
LL_GPIO_SetPinMode (Mode=1, Pin=2, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:276 | |
276 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODER0 << (POSITION_VAL(Pin) * 2U)), (Mode << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=1073741824) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004132 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004136 | |
halted: PC: 0x08004138 | |
halted: PC: 0x0800413a | |
halted: PC: 0x0800413e | |
halted: PC: 0x08004142 | |
__RBIT (value=2) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004146 | |
LL_GPIO_SetPinMode (Mode=1, Pin=2, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:276 | |
276 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODER0 << (POSITION_VAL(Pin) * 2U)), (Mode << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=1073741824) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004148 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x0800414c | |
halted: PC: 0x0800414e | |
halted: PC: 0x08004152 | |
halted: PC: 0x08004154 | |
halted: PC: 0x08004156 | |
pin_function (pin=pin@entry=PB_1, function=function@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:155 | |
155 if ((mode == STM_PIN_OUTPUT) || (mode == STM_PIN_ALTERNATE)) { | |
(gdb) | |
halted: PC: 0x08004158 | |
halted: PC: 0x0800415a | |
halted: PC: 0x08004192 | |
156 if (STM_PIN_OD(function)) { | |
(gdb) | |
halted: PC: 0x08004196 | |
halted: PC: 0x080041cc | |
159 LL_GPIO_SetPinOutputType(gpio, ll_pin, LL_GPIO_OUTPUT_PUSHPULL); | |
(gdb) | |
LL_GPIO_SetPinOutputType (OutputType=0, Pin=2, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:345 | |
345 MODIFY_REG(GPIOx->OTYPER, (GPIO_OTYPER_OT_0 << POSITION_VAL(Pin)), (OutputType << POSITION_VAL(Pin))); | |
(gdb) | |
halted: PC: 0x080041ce | |
__RBIT (value=2) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x080041d2 | |
LL_GPIO_SetPinOutputType (OutputType=0, Pin=2, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:345 | |
345 MODIFY_REG(GPIOx->OTYPER, (GPIO_OTYPER_OT_0 << POSITION_VAL(Pin)), (OutputType << POSITION_VAL(Pin))); | |
(gdb) | |
__CLZ (value=1073741824) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x080041d4 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x080041d8 | |
halted: PC: 0x080041da | |
halted: PC: 0x080041de | |
halted: PC: 0x080041e2 | |
__RBIT (value=2) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x080041e6 | |
LL_GPIO_SetPinOutputType (OutputType=0, Pin=2, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x080041e8 | |
halted: PC: 0x0800415c | |
pin_function (pin=pin@entry=PB_1, function=function@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:163 | |
163 pin_PullConfig(gpio, ll_pin, STM_PIN_PUPD(function)); | |
(gdb) | |
halted: PC: 0x08004160 | |
pin_PullConfig (pull_config=0, ll_pin=2, gpio=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/pinconfig.h:59 | |
59 switch (pull_config) { | |
(gdb) | |
halted: PC: 0x08004162 | |
halted: PC: 0x08004164 | |
halted: PC: 0x08004166 | |
halted: PC: 0x08004168 | |
83 LL_GPIO_SetPinPull(gpio, ll_pin, LL_GPIO_PULL_NO); | |
(gdb) | |
LL_GPIO_SetPinPull (Pull=0, Pin=2, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:488 | |
488 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPDR0 << (POSITION_VAL(Pin) * 2U)), (Pull << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
halted: PC: 0x0800416a | |
__RBIT (value=2) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x0800416e | |
LL_GPIO_SetPinPull (Pull=0, Pin=2, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:488 | |
488 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPDR0 << (POSITION_VAL(Pin) * 2U)), (Pull << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=1073741824) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004170 | |
halted: PC: 0x08004172 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004176 | |
halted: PC: 0x08004178 | |
halted: PC: 0x0800417a | |
halted: PC: 0x0800417e | |
halted: PC: 0x08004182 | |
__RBIT (value=2) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004186 | |
LL_GPIO_SetPinPull (Pull=0, Pin=2, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004188 | |
pin_function (pin=pin@entry=PB_1, function=function@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/pinconfig.h:46 | |
46 UNUSED(pin); | |
(gdb) | |
halted: PC: 0x0800421c | |
halted: PC: 0x08005010 | |
pinMode (ulPin=<optimized out>, ulMode=ulMode@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_digital.c:68 | |
68 break; | |
(gdb) | |
halted: PC: 0x08004fe8 | |
56 break; | |
(gdb) | |
halted: PC: 0x08001338 | |
Adafruit_SPITFT::initSPI (this=0x2001ff9c, freq=32000000, spiMode=<optimized out>) | |
at C:\Users\E1200\Documents\Arduino\libraries\Adafruit_GFX_Library\Adafruit_SPITFT.cpp:538 | |
538 digitalWrite(_dc, HIGH); // Data mode | |
(gdb) | |
halted: PC: 0x0800133a | |
halted: PC: 0x0800133e | |
halted: PC: 0x0800503c | |
digitalWrite (ulPin=46, ulVal=ulVal@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_digital.c:81 | |
81 digitalWriteFast(digitalPinToPinName(ulPin), ulVal); | |
(gdb) | |
halted: PC: 0x0800503e | |
halted: PC: 0x08005064 | |
halted: PC: 0x08005066 | |
halted: PC: 0x08005068 | |
halted: PC: 0x0800506a | |
halted: PC: 0x0800506c | |
halted: PC: 0x08005070 | |
halted: PC: 0x08005072 | |
halted: PC: 0x08005076 | |
halted: PC: 0x08005046 | |
digitalWriteFast (ulVal=1, pn=PB_1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/digital_io.h:96 | |
96 digital_io_write(get_GPIO_Port(STM_PORT(pn)), STM_LL_GPIO_PIN(pn), ulVal); | |
(gdb) | |
halted: PC: 0x0800504a | |
halted: PC: 0x0800504c | |
halted: PC: 0x0800504e | |
halted: PC: 0x08005050 | |
halted: PC: 0x08005054 | |
halted: PC: 0x08005058 | |
halted: PC: 0x0800505a | |
halted: PC: 0x0800505e | |
digital_io_write (val=1, pin=2, port=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/digital_io.h:59 | |
59 if (val) { | |
(gdb) | |
halted: PC: 0x08005060 | |
60 LL_GPIO_SetOutputPin(port, pin); | |
(gdb) | |
LL_GPIO_SetOutputPin (PinMask=2, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:885 | |
885 WRITE_REG(GPIOx->BSRR, PinMask); | |
(gdb) | |
halted: PC: 0x08005062 | |
halted: PC: 0x08001342 | |
Adafruit_SPITFT::initSPI (this=0x2001ff9c, freq=32000000, spiMode=<optimized out>) | |
at C:\Users\E1200\Documents\Arduino\libraries\Adafruit_GFX_Library\Adafruit_SPITFT.cpp:540 | |
540 if (connection == TFT_HARD_SPI) { | |
(gdb) | |
halted: PC: 0x08001346 | |
halted: PC: 0x08001348 | |
543 hwspi.settings = SPISettings(freq, MSBFIRST, spiMode); | |
(gdb) | |
SPISettings::SPISettings (noRecv=false, dataMode=0 '\000', bitOrder=MSBFIRST, clock=32000000, this=0x2001ff4c) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src/SPI.h:79 | |
79 clk = clock; | |
(gdb) | |
halted: PC: 0x0800134a | |
80 bOrder = bitOrder; | |
(gdb) | |
halted: PC: 0x0800134c | |
halted: PC: 0x08001350 | |
81 noReceive = noRecv; | |
(gdb) | |
halted: PC: 0x08001352 | |
halted: PC: 0x08001356 | |
83 if (SPI_MODE0 == dataMode) { | |
(gdb) | |
halted: PC: 0x08001358 | |
84 dMode = SPI_MODE_0; | |
(gdb) | |
halted: PC: 0x0800135c | |
halted: PC: 0x0800135e | |
halted: PC: 0x08001360 | |
halted: PC: 0x08001362 | |
halted: PC: 0x08001364 | |
halted: PC: 0x08001366 | |
halted: PC: 0x08001368 | |
halted: PC: 0x0800136a | |
halted: PC: 0x0800136e | |
547 hwspi._mode = spiMode; // Save spiMode value for later | |
(gdb) | |
halted: PC: 0x08001370 | |
584 hwspi._spi->begin(); | |
(gdb) | |
halted: PC: 0x08001372 | |
halted: PC: 0x08001374 | |
halted: PC: 0x08000484 | |
SPIClass::begin (this=0x200000a8 <SPI_1>, _pin=_pin@entry=36 '$') | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src\SPI.cpp:64 | |
64 if (_pin > NUM_DIGITAL_PINS) { | |
(gdb) | |
halted: PC: 0x08000486 | |
halted: PC: 0x08000488 | |
halted: PC: 0x0800048a | |
halted: PC: 0x0800048c | |
halted: PC: 0x0800048e | |
68 idx = pinIdx(_pin, ADD_NEW_PIN); | |
(gdb) | |
0x0800048e in SPIClass::pinIdx (option=<optimized out>, _pin=<optimized out>, this=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src/SPI.h:255 | |
255 for (i = 0; i < NB_SPI_SETTINGS; i++) { | |
(gdb) | |
halted: PC: 0x08000490 | |
halted: PC: 0x08000492 | |
halted: PC: 0x08000494 | |
256 if (_pin == spiSettings[i].pinCS) { | |
(gdb) | |
halted: PC: 0x08000498 | |
halted: PC: 0x0800049c | |
halted: PC: 0x0800049e | |
halted: PC: 0x080004a0 | |
255 for (i = 0; i < NB_SPI_SETTINGS; i++) { | |
(gdb) | |
halted: PC: 0x080004a2 | |
halted: PC: 0x080004a4 | |
halted: PC: 0x08000490 | |
halted: PC: 0x08000492 | |
halted: PC: 0x08000494 | |
256 if (_pin == spiSettings[i].pinCS) { | |
(gdb) | |
halted: PC: 0x08000498 | |
halted: PC: 0x0800049c | |
halted: PC: 0x0800049e | |
halted: PC: 0x080004a0 | |
255 for (i = 0; i < NB_SPI_SETTINGS; i++) { | |
(gdb) | |
halted: PC: 0x080004a2 | |
halted: PC: 0x080004a4 | |
halted: PC: 0x08000490 | |
halted: PC: 0x08000492 | |
halted: PC: 0x08000494 | |
256 if (_pin == spiSettings[i].pinCS) { | |
(gdb) | |
halted: PC: 0x08000498 | |
halted: PC: 0x0800049c | |
halted: PC: 0x0800049e | |
halted: PC: 0x080004a0 | |
255 for (i = 0; i < NB_SPI_SETTINGS; i++) { | |
(gdb) | |
halted: PC: 0x080004a2 | |
halted: PC: 0x080004a4 | |
halted: PC: 0x08000490 | |
halted: PC: 0x08000492 | |
halted: PC: 0x08000494 | |
256 if (_pin == spiSettings[i].pinCS) { | |
(gdb) | |
halted: PC: 0x08000498 | |
halted: PC: 0x0800049c | |
halted: PC: 0x0800049e | |
halted: PC: 0x080004a0 | |
255 for (i = 0; i < NB_SPI_SETTINGS; i++) { | |
(gdb) | |
halted: PC: 0x080004a2 | |
halted: PC: 0x080004a4 | |
halted: PC: 0x08000490 | |
halted: PC: 0x08000492 | |
halted: PC: 0x080004a6 | |
halted: PC: 0x080004a8 | |
262 for (i = 0; i < NB_SPI_SETTINGS; i++) { | |
(gdb) | |
halted: PC: 0x080004aa | |
halted: PC: 0x080004ac | |
263 if (spiSettings[i].pinCS == -1) { | |
(gdb) | |
halted: PC: 0x080004b0 | |
halted: PC: 0x080004b4 | |
halted: PC: 0x080004b8 | |
halted: PC: 0x080004c0 | |
264 spiSettings[i].pinCS = _pin; | |
(gdb) | |
halted: PC: 0x080004c4 | |
halted: PC: 0x080004c8 | |
SPIClass::begin (this=0x200000a8 <SPI_1>, _pin=_pin@entry=36 '$') | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src\SPI.cpp:69 | |
69 if (idx >= NB_SPI_SETTINGS) { | |
(gdb) | |
halted: PC: 0x080004ca | |
halted: PC: 0x080004cc | |
73 if ((_pin != CS_PIN_CONTROLLED_BY_USER) && (_spi.pin_ssel == NC)) { | |
(gdb) | |
halted: PC: 0x080004ce | |
halted: PC: 0x080004da | |
78 _spi.handle.State = HAL_SPI_STATE_RESET; | |
(gdb) | |
halted: PC: 0x080004dc | |
halted: PC: 0x080004e0 | |
79 spi_init(&_spi, spiSettings[idx].clk, | |
(gdb) | |
halted: PC: 0x080004e4 | |
halted: PC: 0x080004e8 | |
halted: PC: 0x080004ea | |
halted: PC: 0x080004ec | |
halted: PC: 0x080004ee | |
halted: PC: 0x080004f0 | |
halted: PC: 0x080004f4 | |
halted: PC: 0x0800074c | |
spi_init (obj=obj@entry=0x200000dc <SPI_1+52>, speed=4000000, mode=SPI_MODE_0, msb=1 '\001') | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src\utility\spi_com.c:159 | |
159 if (obj == NULL) { | |
(gdb) | |
halted: PC: 0x0800074e | |
halted: PC: 0x08000752 | |
halted: PC: 0x08000756 | |
halted: PC: 0x08000758 | |
halted: PC: 0x0800075a | |
halted: PC: 0x0800075c | |
halted: PC: 0x0800075e | |
halted: PC: 0x08000760 | |
168 SPI_TypeDef *spi_mosi = pinmap_peripheral(obj->pin_mosi, PinMap_SPI_MOSI); | |
(gdb) | |
halted: PC: 0x08000762 | |
halted: PC: 0x08000766 | |
halted: PC: 0x080042ba | |
pinmap_peripheral (pin=PA_7, map=0x80066c8 <PinMap_SPI_MOSI>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:203 | |
203 if (pin != (PinName)NC) { | |
(gdb) | |
halted: PC: 0x080042be | |
halted: PC: 0x080042c0 | |
halted: PC: 0x080042c2 | |
204 peripheral = pinmap_find_peripheral(pin, map); | |
(gdb) | |
halted: PC: 0x080042a0 | |
pinmap_find_peripheral (pin=PA_7, map=0x80066c8 <PinMap_SPI_MOSI>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:190 | |
190 while (map->pin != NC) { | |
(gdb) | |
halted: PC: 0x080042a4 | |
halted: PC: 0x080042a8 | |
halted: PC: 0x080042aa | |
191 if (map->pin == pin) { | |
(gdb) | |
halted: PC: 0x080042ac | |
halted: PC: 0x080042ae | |
194 map++; | |
(gdb) | |
halted: PC: 0x080042b0 | |
halted: PC: 0x080042a0 | |
190 while (map->pin != NC) { | |
(gdb) | |
halted: PC: 0x080042a4 | |
halted: PC: 0x080042a8 | |
halted: PC: 0x080042aa | |
191 if (map->pin == pin) { | |
(gdb) | |
halted: PC: 0x080042ac | |
halted: PC: 0x080042b2 | |
192 return map->peripheral; | |
(gdb) | |
halted: PC: 0x080042b4 | |
halted: PC: 0x080042c6 | |
halted: PC: 0x0800076a | |
halted: PC: 0x0800076c | |
spi_init (obj=obj@entry=0x200000dc <SPI_1+52>, speed=4000000, mode=<optimized out>, msb=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src\utility\spi_com.c:169 | |
169 SPI_TypeDef *spi_miso = pinmap_peripheral(obj->pin_miso, PinMap_SPI_MISO); | |
(gdb) | |
halted: PC: 0x0800076e | |
halted: PC: 0x08000772 | |
halted: PC: 0x080042ba | |
pinmap_peripheral (pin=PA_6, map=0x8006680 <PinMap_SPI_MISO>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:203 | |
203 if (pin != (PinName)NC) { | |
(gdb) | |
halted: PC: 0x080042be | |
halted: PC: 0x080042c0 | |
halted: PC: 0x080042c2 | |
204 peripheral = pinmap_find_peripheral(pin, map); | |
(gdb) | |
halted: PC: 0x080042a0 | |
pinmap_find_peripheral (pin=PA_6, map=0x8006680 <PinMap_SPI_MISO>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:190 | |
190 while (map->pin != NC) { | |
(gdb) | |
halted: PC: 0x080042a4 | |
halted: PC: 0x080042a8 | |
halted: PC: 0x080042aa | |
191 if (map->pin == pin) { | |
(gdb) | |
halted: PC: 0x080042ac | |
halted: PC: 0x080042b2 | |
192 return map->peripheral; | |
(gdb) | |
halted: PC: 0x080042b4 | |
halted: PC: 0x080042c6 | |
halted: PC: 0x08000776 | |
halted: PC: 0x08000778 | |
spi_init (obj=obj@entry=0x200000dc <SPI_1+52>, speed=4000000, mode=<optimized out>, msb=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src\utility\spi_com.c:170 | |
170 SPI_TypeDef *spi_sclk = pinmap_peripheral(obj->pin_sclk, PinMap_SPI_SCLK); | |
(gdb) | |
halted: PC: 0x0800077a | |
halted: PC: 0x0800077e | |
halted: PC: 0x080042ba | |
pinmap_peripheral (pin=PA_5, map=0x800671c <PinMap_SPI_SCLK>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:203 | |
203 if (pin != (PinName)NC) { | |
(gdb) | |
halted: PC: 0x080042be | |
halted: PC: 0x080042c0 | |
halted: PC: 0x080042c2 | |
204 peripheral = pinmap_find_peripheral(pin, map); | |
(gdb) | |
halted: PC: 0x080042a0 | |
pinmap_find_peripheral (pin=PA_5, map=0x800671c <PinMap_SPI_SCLK>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:190 | |
190 while (map->pin != NC) { | |
(gdb) | |
halted: PC: 0x080042a4 | |
halted: PC: 0x080042a8 | |
halted: PC: 0x080042aa | |
191 if (map->pin == pin) { | |
(gdb) | |
halted: PC: 0x080042ac | |
halted: PC: 0x080042b2 | |
192 return map->peripheral; | |
(gdb) | |
halted: PC: 0x080042b4 | |
halted: PC: 0x080042c6 | |
halted: PC: 0x08000782 | |
halted: PC: 0x08000784 | |
spi_init (obj=obj@entry=0x200000dc <SPI_1+52>, speed=4000000, mode=<optimized out>, msb=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src\utility\spi_com.c:171 | |
171 SPI_TypeDef *spi_ssel = pinmap_peripheral(obj->pin_ssel, PinMap_SPI_SSEL); | |
(gdb) | |
halted: PC: 0x08000786 | |
halted: PC: 0x0800078a | |
halted: PC: 0x080042ba | |
pinmap_peripheral (pin=NC, map=0x8006770 <PinMap_SPI_SSEL>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:203 | |
203 if (pin != (PinName)NC) { | |
(gdb) | |
halted: PC: 0x080042be | |
halted: PC: 0x080042c8 | |
halted: PC: 0x080042ca | |
206 return peripheral; | |
(gdb) | |
halted: PC: 0x0800078e | |
halted: PC: 0x08000790 | |
spi_init (obj=obj@entry=0x200000dc <SPI_1+52>, speed=4000000, mode=<optimized out>, msb=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src\utility\spi_com.c:174 | |
174 if (spi_mosi == NP || spi_miso == NP || spi_sclk == NP) { | |
(gdb) | |
halted: PC: 0x08000794 | |
halted: PC: 0x08000798 | |
halted: PC: 0x0800079c | |
halted: PC: 0x080007a0 | |
halted: PC: 0x080007a4 | |
halted: PC: 0x080007a8 | |
179 SPI_TypeDef *spi_data = pinmap_merge_peripheral(spi_mosi, spi_miso); | |
(gdb) | |
halted: PC: 0x080007aa | |
halted: PC: 0x080007ac | |
halted: PC: 0x080042f4 | |
pinmap_merge_peripheral (a=a@entry=0x40013000, b=b@entry=0x40013000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:255 | |
255 if (a == b) { | |
(gdb) | |
halted: PC: 0x080042f6 | |
halted: PC: 0x08004302 | |
halted: PC: 0x080007b0 | |
halted: PC: 0x080007b2 | |
spi_init (obj=obj@entry=0x200000dc <SPI_1+52>, speed=4000000, mode=<optimized out>, msb=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src\utility\spi_com.c:180 | |
180 SPI_TypeDef *spi_cntl = pinmap_merge_peripheral(spi_sclk, spi_ssel); | |
(gdb) | |
halted: PC: 0x080007b4 | |
halted: PC: 0x080007b6 | |
halted: PC: 0x080042f4 | |
pinmap_merge_peripheral (a=a@entry=0x40013000, b=b@entry=0x0) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:255 | |
255 if (a == b) { | |
(gdb) | |
halted: PC: 0x080042f6 | |
halted: PC: 0x080042f8 | |
260 if (a == NP) { | |
(gdb) | |
halted: PC: 0x080042fa | |
263 if (b == NP) { | |
(gdb) | |
halted: PC: 0x08004302 | |
halted: PC: 0x080007ba | |
halted: PC: 0x080007bc | |
spi_init (obj=obj@entry=0x200000dc <SPI_1+52>, speed=4000000, mode=<optimized out>, msb=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src\utility\spi_com.c:182 | |
182 obj->spi = pinmap_merge_peripheral(spi_data, spi_cntl); | |
(gdb) | |
halted: PC: 0x080007be | |
halted: PC: 0x080007c0 | |
halted: PC: 0x080042f4 | |
pinmap_merge_peripheral (a=a@entry=0x40013000, b=b@entry=0x40013000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:255 | |
255 if (a == b) { | |
(gdb) | |
halted: PC: 0x080042f6 | |
halted: PC: 0x08004302 | |
halted: PC: 0x080007c4 | |
halted: PC: 0x080007c6 | |
spi_init (obj=obj@entry=0x200000dc <SPI_1+52>, speed=4000000, mode=<optimized out>, msb=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src\utility\spi_com.c:185 | |
185 if (spi_data == NP || spi_cntl == NP || obj->spi == NP) { | |
(gdb) | |
halted: PC: 0x080007ca | |
halted: PC: 0x080007ce | |
halted: PC: 0x080007d2 | |
halted: PC: 0x080007d6 | |
halted: PC: 0x080007d8 | |
halted: PC: 0x080007dc | |
191 if (obj->pin_ssel != NC) { | |
(gdb) | |
halted: PC: 0x080007e0 | |
halted: PC: 0x080007e4 | |
halted: PC: 0x08000812 | |
194 handle->Init.NSS = SPI_NSS_SOFT; | |
(gdb) | |
halted: PC: 0x08000816 | |
halted: PC: 0x08000818 | |
halted: PC: 0x080007ec | |
198 handle->Instance = obj->spi; | |
(gdb) | |
halted: PC: 0x080007ee | |
199 handle->Init.Mode = SPI_MODE_MASTER; | |
(gdb) | |
halted: PC: 0x080007f2 | |
halted: PC: 0x080007f4 | |
201 spi_freq = spi_getClkFreqInst(obj->spi); | |
(gdb) | |
halted: PC: 0x08000700 | |
spi_getClkFreqInst (spi_inst=0x40013000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src\utility\spi_com.c:56 | |
56 { | |
(gdb) | |
halted: PC: 0x08000702 | |
halted: PC: 0x08000704 | |
57 uint32_t spi_freq = SystemCoreClock; | |
(gdb) | |
halted: PC: 0x08000706 | |
halted: PC: 0x08000708 | |
87 if (spi_inst != NP) { | |
(gdb) | |
halted: PC: 0x0800070a | |
halted: PC: 0x0800070c | |
89 switch ((uint32_t)spi_inst) { | |
(gdb) | |
halted: PC: 0x0800070e | |
halted: PC: 0x08000710 | |
halted: PC: 0x08000712 | |
halted: PC: 0x08000714 | |
halted: PC: 0x08000716 | |
halted: PC: 0x08000718 | |
halted: PC: 0x0800071a | |
halted: PC: 0x0800071e | |
halted: PC: 0x08000720 | |
halted: PC: 0x08000722 | |
halted: PC: 0x08000726 | |
halted: PC: 0x08000728 | |
halted: PC: 0x0800073a | |
105 spi_freq = HAL_RCC_GetPCLK2Freq(); | |
(gdb) | |
halted: PC: 0x080037d0 | |
HAL_RCC_GetPCLK2Freq () | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c:958 | |
958 return (HAL_RCC_GetHCLKFreq()>> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE2)>> RCC_CFGR_PPRE2_Pos]); | |
(gdb) | |
halted: PC: 0x080037a4 | |
HAL_RCC_GetHCLKFreq () | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c:934 | |
934 return SystemCoreClock; | |
(gdb) | |
halted: PC: 0x080037a6 | |
halted: PC: 0x080037a8 | |
halted: PC: 0x080037d6 | |
halted: PC: 0x080037d8 | |
halted: PC: 0x080037da | |
halted: PC: 0x080037de | |
halted: PC: 0x080037e0 | |
halted: PC: 0x080037e2 | |
halted: PC: 0x080037e4 | |
halted: PC: 0x0800073e | |
spi_getClkFreqInst (spi_inst=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src\utility\spi_com.c:106 | |
106 break; | |
(gdb) | |
halted: PC: 0x0800072a | |
halted: PC: 0x080007f8 | |
spi_init (obj=obj@entry=0x200000dc <SPI_1+52>, speed=4000000, mode=<optimized out>, msb=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src\utility\spi_com.c:202 | |
202 if (speed >= (spi_freq / SPI_SPEED_CLOCK_DIV2_MHZ)) { | |
(gdb) | |
halted: PC: 0x080007fc | |
halted: PC: 0x0800081a | |
204 } else if (speed >= (spi_freq / SPI_SPEED_CLOCK_DIV4_MHZ)) { | |
(gdb) | |
halted: PC: 0x0800081e | |
halted: PC: 0x08000826 | |
206 } else if (speed >= (spi_freq / SPI_SPEED_CLOCK_DIV8_MHZ)) { | |
(gdb) | |
halted: PC: 0x0800082a | |
halted: PC: 0x08000832 | |
208 } else if (speed >= (spi_freq / SPI_SPEED_CLOCK_DIV16_MHZ)) { | |
(gdb) | |
halted: PC: 0x08000836 | |
halted: PC: 0x0800083e | |
210 } else if (speed >= (spi_freq / SPI_SPEED_CLOCK_DIV32_MHZ)) { | |
(gdb) | |
halted: PC: 0x08000842 | |
halted: PC: 0x08000844 | |
211 handle->Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_32; | |
(gdb) | |
halted: PC: 0x08000846 | |
halted: PC: 0x08000848 | |
halted: PC: 0x08000802 | |
224 handle->Init.Direction = SPI_DIRECTION_2LINES; | |
(gdb) | |
halted: PC: 0x08000804 | |
halted: PC: 0x08000806 | |
226 if ((mode == SPI_MODE_0) || (mode == SPI_MODE_2)) { | |
(gdb) | |
halted: PC: 0x08000868 | |
227 handle->Init.CLKPhase = SPI_PHASE_1EDGE; | |
(gdb) | |
halted: PC: 0x0800086a | |
halted: PC: 0x0800086c | |
232 if ((mode == SPI_MODE_0) || (mode == SPI_MODE_1)) { | |
(gdb) | |
halted: PC: 0x0800086e | |
halted: PC: 0x080008f4 | |
233 handle->Init.CLKPolarity = SPI_POLARITY_LOW; | |
(gdb) | |
halted: PC: 0x080008f6 | |
halted: PC: 0x080008f8 | |
halted: PC: 0x08000874 | |
238 handle->Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; | |
(gdb) | |
halted: PC: 0x08000876 | |
halted: PC: 0x08000878 | |
239 handle->Init.CRCPolynomial = 7; | |
(gdb) | |
halted: PC: 0x0800087a | |
halted: PC: 0x0800087c | |
240 handle->Init.DataSize = SPI_DATASIZE_8BIT; | |
(gdb) | |
halted: PC: 0x0800087e | |
242 if (msb == 0) { | |
(gdb) | |
halted: PC: 0x08000880 | |
halted: PC: 0x080008fa | |
245 handle->Init.FirstBit = SPI_FIRSTBIT_MSB; | |
(gdb) | |
halted: PC: 0x080008fc | |
halted: PC: 0x080008fe | |
halted: PC: 0x08000886 | |
248 handle->Init.TIMode = SPI_TIMODE_DISABLE; | |
(gdb) | |
halted: PC: 0x08000888 | |
halted: PC: 0x0800088a | |
256 pinmap_pinout(obj->pin_mosi, PinMap_SPI_MOSI); | |
(gdb) | |
halted: PC: 0x0800088c | |
halted: PC: 0x08000890 | |
halted: PC: 0x0800426c | |
pinmap_pinout (pin=PA_7, map=0x80066c8 <PinMap_SPI_MOSI>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:174 | |
174 if (pin == NC) { | |
(gdb) | |
halted: PC: 0x08004270 | |
halted: PC: 0x08004272 | |
halted: PC: 0x08004274 | |
178 while (map->pin != NC) { | |
(gdb) | |
halted: PC: 0x08004278 | |
halted: PC: 0x0800427c | |
halted: PC: 0x0800427e | |
179 if (map->pin == pin) { | |
(gdb) | |
halted: PC: 0x08004280 | |
halted: PC: 0x08004282 | |
183 map++; | |
(gdb) | |
halted: PC: 0x08004284 | |
halted: PC: 0x08004274 | |
178 while (map->pin != NC) { | |
(gdb) | |
halted: PC: 0x08004278 | |
halted: PC: 0x0800427c | |
halted: PC: 0x0800427e | |
179 if (map->pin == pin) { | |
(gdb) | |
halted: PC: 0x08004280 | |
halted: PC: 0x08004288 | |
180 pin_function(pin, map->function); | |
(gdb) | |
halted: PC: 0x0800428a | |
halted: PC: 0x08004020 | |
pin_function (pin=PA_7, function=1298) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap. | |
c:63 | |
63 { | |
(gdb) | |
halted: PC: 0x08004024 | |
halted: PC: 0x08004026 | |
halted: PC: 0x08004028 | |
65 uint32_t mode = STM_PIN_FUNCTION(function); | |
(gdb) | |
halted: PC: 0x0800402c | |
66 uint32_t afnum = STM_PIN_AFNUM(function); | |
(gdb) | |
halted: PC: 0x08004030 | |
67 uint32_t port = STM_PORT(pin); | |
(gdb) | |
halted: PC: 0x08004034 | |
68 uint32_t ll_pin = STM_LL_GPIO_PIN(pin); | |
(gdb) | |
halted: PC: 0x08004038 | |
halted: PC: 0x0800403a | |
halted: PC: 0x0800403e | |
71 if (pin == (PinName)NC) { | |
(gdb) | |
halted: PC: 0x08004042 | |
halted: PC: 0x08004044 | |
99 GPIO_TypeDef *gpio = set_GPIO_Port_Clock(port); | |
(gdb) | |
halted: PC: 0x08004046 | |
halted: PC: 0x08003eb8 | |
set_GPIO_Port_Clock (port_idx=port_idx@entry=0) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\PortNames.c:69 | |
69 { | |
(gdb) | |
halted: PC: 0x08003eba | |
71 switch (port_idx) { | |
(gdb) | |
halted: PC: 0x08003ebc | |
halted: PC: 0x08003ebe | |
halted: PC: 0x08003ec8 | |
74 __HAL_RCC_GPIOA_CLK_ENABLE(); | |
(gdb) | |
halted: PC: 0x08003eca | |
halted: PC: 0x08003ecc | |
halted: PC: 0x08003ece | |
halted: PC: 0x08003ed0 | |
halted: PC: 0x08003ed4 | |
halted: PC: 0x08003ed6 | |
halted: PC: 0x08003ed8 | |
halted: PC: 0x08003edc | |
halted: PC: 0x08003ede | |
halted: PC: 0x08003ee0 | |
75 break; | |
(gdb) | |
halted: PC: 0x08003ee2 | |
halted: PC: 0x08003ee4 | |
halted: PC: 0x0800404a | |
halted: PC: 0x0800404c | |
pin_function (pin=<optimized out>, function=1298) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:113 | |
113 LL_GPIO_SetPinSpeed(gpio, ll_pin, LL_GPIO_SPEED_FREQ_VERY_HIGH); | |
(gdb) | |
LL_GPIO_SetPinSpeed (Speed=3, Pin=128, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:417 | |
417 MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDER_OSPEEDR0 << (POSITION_VAL(Pin) * 2U)), | |
(gdb) | |
halted: PC: 0x0800404e | |
__RBIT (value=128) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004052 | |
LL_GPIO_SetPinSpeed (Speed=3, Pin=128, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:417 | |
417 MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDER_OSPEEDR0 << (POSITION_VAL(Pin) * 2U)), | |
(gdb) | |
__CLZ (value=16777216) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004054 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004058 | |
halted: PC: 0x0800405a | |
halted: PC: 0x0800405c | |
halted: PC: 0x08004060 | |
halted: PC: 0x08004064 | |
__RBIT (value=128) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004068 | |
LL_GPIO_SetPinSpeed (Speed=3, Pin=128, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:417 | |
417 MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDER_OSPEEDR0 << (POSITION_VAL(Pin) * 2U)), | |
(gdb) | |
__CLZ (value=16777216) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x0800406a | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x0800406e | |
halted: PC: 0x08004070 | |
halted: PC: 0x08004072 | |
halted: PC: 0x08004076 | |
halted: PC: 0x08004078 | |
halted: PC: 0x0800407a | |
pin_function (pin=<optimized out>, function=1298) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:121 | |
121 switch (mode) { | |
(gdb) | |
halted: PC: 0x0800407c | |
halted: PC: 0x0800407e | |
halted: PC: 0x08004098 | |
135 pin_SetAFPin(gpio, pin, afnum); | |
(gdb) | |
pin_SetAFPin (afnum=5, pin=PA_7, gpio=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/pinconfig.h:102 | |
102 uint32_t ll_pin = STM_LL_GPIO_PIN(pin); | |
(gdb) | |
halted: PC: 0x0800409c | |
halted: PC: 0x0800409e | |
halted: PC: 0x080040a2 | |
104 if (STM_PIN(pin) > 7) { | |
(gdb) | |
halted: PC: 0x080040a6 | |
halted: PC: 0x080040e4 | |
107 LL_GPIO_SetAFPin_0_7(gpio, ll_pin, afnum); | |
(gdb) | |
LL_GPIO_SetAFPin_0_7 (Alternate=5, Pin=128, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:560 | |
560 MODIFY_REG(GPIOx->AFR[0], (GPIO_AFRL_AFSEL0 << (POSITION_VAL(Pin) * 4U)), | |
(gdb) | |
halted: PC: 0x080040e6 | |
__RBIT (value=128) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x080040ea | |
LL_GPIO_SetAFPin_0_7 (Alternate=5, Pin=128, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:560 | |
560 MODIFY_REG(GPIOx->AFR[0], (GPIO_AFRL_AFSEL0 << (POSITION_VAL(Pin) * 4U)), | |
(gdb) | |
__CLZ (value=16777216) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x080040ec | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x080040f0 | |
halted: PC: 0x080040f2 | |
halted: PC: 0x080040f4 | |
halted: PC: 0x080040f8 | |
halted: PC: 0x080040fc | |
__RBIT (value=128) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004100 | |
LL_GPIO_SetAFPin_0_7 (Alternate=5, Pin=128, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:560 | |
560 MODIFY_REG(GPIOx->AFR[0], (GPIO_AFRL_AFSEL0 << (POSITION_VAL(Pin) * 4U)), | |
(gdb) | |
__CLZ (value=16777216) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004102 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004106 | |
halted: PC: 0x08004108 | |
halted: PC: 0x0800410c | |
halted: PC: 0x08004110 | |
halted: PC: 0x08004112 | |
halted: PC: 0x080040d8 | |
halted: PC: 0x080040da | |
135 pin_SetAFPin(gpio, pin, afnum); | |
(gdb) | |
0x080040da in pin_SetAFPin (afnum=0, pin=PA_7, gpio=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/pinconfig.h:113 | |
113 } | |
(gdb) | |
halted: PC: 0x0800412a | |
pin_function (pin=<optimized out>, function=1298) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:144 | |
144 LL_GPIO_SetPinMode(gpio, ll_pin, ll_mode); | |
(gdb) | |
LL_GPIO_SetPinMode (Mode=2, Pin=128, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:276 | |
276 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODER0 << (POSITION_VAL(Pin) * 2U)), (Mode << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
halted: PC: 0x0800412c | |
__RBIT (value=128) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004130 | |
LL_GPIO_SetPinMode (Mode=2, Pin=128, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:276 | |
276 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODER0 << (POSITION_VAL(Pin) * 2U)), (Mode << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=16777216) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004132 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004136 | |
halted: PC: 0x08004138 | |
halted: PC: 0x0800413a | |
halted: PC: 0x0800413e | |
halted: PC: 0x08004142 | |
__RBIT (value=128) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004146 | |
LL_GPIO_SetPinMode (Mode=2, Pin=128, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:276 | |
276 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODER0 << (POSITION_VAL(Pin) * 2U)), (Mode << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=16777216) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004148 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x0800414c | |
halted: PC: 0x0800414e | |
halted: PC: 0x08004152 | |
halted: PC: 0x08004154 | |
halted: PC: 0x08004156 | |
pin_function (pin=<optimized out>, function=1298) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:155 | |
155 if ((mode == STM_PIN_OUTPUT) || (mode == STM_PIN_ALTERNATE)) { | |
(gdb) | |
halted: PC: 0x08004158 | |
halted: PC: 0x0800415a | |
halted: PC: 0x08004192 | |
156 if (STM_PIN_OD(function)) { | |
(gdb) | |
halted: PC: 0x08004196 | |
halted: PC: 0x080041cc | |
159 LL_GPIO_SetPinOutputType(gpio, ll_pin, LL_GPIO_OUTPUT_PUSHPULL); | |
(gdb) | |
LL_GPIO_SetPinOutputType (OutputType=0, Pin=128, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:345 | |
345 MODIFY_REG(GPIOx->OTYPER, (GPIO_OTYPER_OT_0 << POSITION_VAL(Pin)), (OutputType << POSITION_VAL(Pin))); | |
(gdb) | |
halted: PC: 0x080041ce | |
__RBIT (value=128) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x080041d2 | |
LL_GPIO_SetPinOutputType (OutputType=0, Pin=128, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:345 | |
345 MODIFY_REG(GPIOx->OTYPER, (GPIO_OTYPER_OT_0 << POSITION_VAL(Pin)), (OutputType << POSITION_VAL(Pin))); | |
(gdb) | |
__CLZ (value=16777216) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x080041d4 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x080041d8 | |
halted: PC: 0x080041da | |
halted: PC: 0x080041de | |
halted: PC: 0x080041e2 | |
__RBIT (value=128) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x080041e6 | |
LL_GPIO_SetPinOutputType (OutputType=0, Pin=128, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x080041e8 | |
halted: PC: 0x0800415c | |
pin_function (pin=<optimized out>, function=1298) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:163 | |
163 pin_PullConfig(gpio, ll_pin, STM_PIN_PUPD(function)); | |
(gdb) | |
halted: PC: 0x08004160 | |
pin_PullConfig (pull_config=1, ll_pin=128, gpio=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/pinconfig.h:59 | |
59 switch (pull_config) { | |
(gdb) | |
halted: PC: 0x08004162 | |
halted: PC: 0x080041ee | |
pin_function (pin=<optimized out>, function=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:163 | |
163 pin_PullConfig(gpio, ll_pin, STM_PIN_PUPD(function)); | |
(gdb) | |
pin_PullConfig (pull_config=1, ll_pin=128, gpio=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/pinconfig.h:66 | |
66 LL_GPIO_SetPinPull(gpio, ll_pin, LL_GPIO_PULL_UP); | |
(gdb) | |
LL_GPIO_SetPinPull (Pull=1, Pin=128, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:488 | |
488 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPDR0 << (POSITION_VAL(Pin) * 2U)), (Pull << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
halted: PC: 0x080041f0 | |
__RBIT (value=128) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x080041f4 | |
LL_GPIO_SetPinPull (Pull=1, Pin=128, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:488 | |
488 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPDR0 << (POSITION_VAL(Pin) * 2U)), (Pull << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=16777216) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x080041f6 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x080041fa | |
halted: PC: 0x080041fc | |
halted: PC: 0x080041fe | |
halted: PC: 0x08004202 | |
halted: PC: 0x08004206 | |
__RBIT (value=128) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x0800420a | |
LL_GPIO_SetPinPull (Pull=1, Pin=128, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:488 | |
488 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPDR0 << (POSITION_VAL(Pin) * 2U)), (Pull << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=16777216) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x0800420c | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004210 | |
halted: PC: 0x08004212 | |
halted: PC: 0x08004214 | |
halted: PC: 0x08004218 | |
halted: PC: 0x0800421a | |
halted: PC: 0x0800421c | |
halted: PC: 0x0800428e | |
pinmap_pinout (pin=<optimized out>, map=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:181 | |
181 return; | |
(gdb) | |
halted: PC: 0x08004298 | |
halted: PC: 0x08000894 | |
spi_init (obj=obj@entry=0x200000dc <SPI_1+52>, speed=4000000, mode=<optimized out>, msb=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src\utility\spi_com.c:257 | |
257 pinmap_pinout(obj->pin_miso, PinMap_SPI_MISO); | |
(gdb) | |
halted: PC: 0x08000896 | |
halted: PC: 0x0800089a | |
halted: PC: 0x0800426c | |
pinmap_pinout (pin=PA_6, map=0x8006680 <PinMap_SPI_MISO>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:174 | |
174 if (pin == NC) { | |
(gdb) | |
halted: PC: 0x08004270 | |
halted: PC: 0x08004272 | |
halted: PC: 0x08004274 | |
178 while (map->pin != NC) { | |
(gdb) | |
halted: PC: 0x08004278 | |
halted: PC: 0x0800427c | |
halted: PC: 0x0800427e | |
179 if (map->pin == pin) { | |
(gdb) | |
halted: PC: 0x08004280 | |
halted: PC: 0x08004288 | |
180 pin_function(pin, map->function); | |
(gdb) | |
halted: PC: 0x0800428a | |
halted: PC: 0x08004020 | |
pin_function (pin=PA_6, function=1298) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:63 | |
63 { | |
(gdb) | |
halted: PC: 0x08004024 | |
halted: PC: 0x08004026 | |
halted: PC: 0x08004028 | |
65 uint32_t mode = STM_PIN_FUNCTION(function); | |
(gdb) | |
halted: PC: 0x0800402c | |
66 uint32_t afnum = STM_PIN_AFNUM(function); | |
(gdb) | |
halted: PC: 0x08004030 | |
67 uint32_t port = STM_PORT(pin); | |
(gdb) | |
halted: PC: 0x08004034 | |
68 uint32_t ll_pin = STM_LL_GPIO_PIN(pin); | |
(gdb) | |
halted: PC: 0x08004038 | |
halted: PC: 0x0800403a | |
halted: PC: 0x0800403e | |
71 if (pin == (PinName)NC) { | |
(gdb) | |
halted: PC: 0x08004042 | |
halted: PC: 0x08004044 | |
99 GPIO_TypeDef *gpio = set_GPIO_Port_Clock(port); | |
(gdb) | |
halted: PC: 0x08004046 | |
halted: PC: 0x08003eb8 | |
set_GPIO_Port_Clock (port_idx=port_idx@entry=0) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\PortNames.c:69 | |
69 { | |
(gdb) | |
halted: PC: 0x08003eba | |
71 switch (port_idx) { | |
(gdb) | |
halted: PC: 0x08003ebc | |
halted: PC: 0x08003ebe | |
halted: PC: 0x08003ec8 | |
74 __HAL_RCC_GPIOA_CLK_ENABLE(); | |
(gdb) | |
halted: PC: 0x08003eca | |
halted: PC: 0x08003ecc | |
halted: PC: 0x08003ece | |
halted: PC: 0x08003ed0 | |
halted: PC: 0x08003ed4 | |
halted: PC: 0x08003ed6 | |
halted: PC: 0x08003ed8 | |
halted: PC: 0x08003edc | |
halted: PC: 0x08003ede | |
halted: PC: 0x08003ee0 | |
75 break; | |
(gdb) | |
halted: PC: 0x08003ee2 | |
halted: PC: 0x08003ee4 | |
halted: PC: 0x0800404a | |
halted: PC: 0x0800404c | |
pin_function (pin=<optimized out>, function=1298) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:113 | |
113 LL_GPIO_SetPinSpeed(gpio, ll_pin, LL_GPIO_SPEED_FREQ_VERY_HIGH); | |
(gdb) | |
LL_GPIO_SetPinSpeed (Speed=3, Pin=64, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:417 | |
417 MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDER_OSPEEDR0 << (POSITION_VAL(Pin) * 2U)), | |
(gdb) | |
halted: PC: 0x0800404e | |
__RBIT (value=64) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004052 | |
LL_GPIO_SetPinSpeed (Speed=3, Pin=64, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:417 | |
417 MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDER_OSPEEDR0 << (POSITION_VAL(Pin) * 2U)), | |
(gdb) | |
__CLZ (value=33554432) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004054 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004058 | |
halted: PC: 0x0800405a | |
halted: PC: 0x0800405c | |
halted: PC: 0x08004060 | |
halted: PC: 0x08004064 | |
__RBIT (value=64) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004068 | |
LL_GPIO_SetPinSpeed (Speed=3, Pin=64, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:417 | |
417 MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDER_OSPEEDR0 << (POSITION_VAL(Pin) * 2U)), | |
(gdb) | |
__CLZ (value=33554432) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x0800406a | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x0800406e | |
halted: PC: 0x08004070 | |
halted: PC: 0x08004072 | |
halted: PC: 0x08004076 | |
halted: PC: 0x08004078 | |
halted: PC: 0x0800407a | |
pin_function (pin=<optimized out>, function=1298) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:121 | |
121 switch (mode) { | |
(gdb) | |
halted: PC: 0x0800407c | |
halted: PC: 0x0800407e | |
halted: PC: 0x08004098 | |
135 pin_SetAFPin(gpio, pin, afnum); | |
(gdb) | |
pin_SetAFPin (afnum=5, pin=PA_6, gpio=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/pinconfig.h:102 | |
102 uint32_t ll_pin = STM_LL_GPIO_PIN(pin); | |
(gdb) | |
halted: PC: 0x0800409c | |
halted: PC: 0x0800409e | |
halted: PC: 0x080040a2 | |
104 if (STM_PIN(pin) > 7) { | |
(gdb) | |
halted: PC: 0x080040a6 | |
halted: PC: 0x080040e4 | |
107 LL_GPIO_SetAFPin_0_7(gpio, ll_pin, afnum); | |
(gdb) | |
LL_GPIO_SetAFPin_0_7 (Alternate=5, Pin=64, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:560 | |
560 MODIFY_REG(GPIOx->AFR[0], (GPIO_AFRL_AFSEL0 << (POSITION_VAL(Pin) * 4U)), | |
(gdb) | |
halted: PC: 0x080040e6 | |
__RBIT (value=64) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x080040ea | |
LL_GPIO_SetAFPin_0_7 (Alternate=5, Pin=64, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:560 | |
560 MODIFY_REG(GPIOx->AFR[0], (GPIO_AFRL_AFSEL0 << (POSITION_VAL(Pin) * 4U)), | |
(gdb) | |
__CLZ (value=33554432) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x080040ec | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x080040f0 | |
halted: PC: 0x080040f2 | |
halted: PC: 0x080040f4 | |
halted: PC: 0x080040f8 | |
halted: PC: 0x080040fc | |
__RBIT (value=64) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004100 | |
LL_GPIO_SetAFPin_0_7 (Alternate=5, Pin=64, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:560 | |
560 MODIFY_REG(GPIOx->AFR[0], (GPIO_AFRL_AFSEL0 << (POSITION_VAL(Pin) * 4U)), | |
(gdb) | |
__CLZ (value=33554432) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004102 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004106 | |
halted: PC: 0x08004108 | |
halted: PC: 0x0800410c | |
halted: PC: 0x08004110 | |
halted: PC: 0x08004112 | |
halted: PC: 0x080040d8 | |
halted: PC: 0x080040da | |
135 pin_SetAFPin(gpio, pin, afnum); | |
(gdb) | |
0x080040da in pin_SetAFPin (afnum=0, pin=PA_6, gpio=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/pinconfig.h:113 | |
113 } | |
(gdb) | |
halted: PC: 0x0800412a | |
pin_function (pin=<optimized out>, function=1298) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:144 | |
144 LL_GPIO_SetPinMode(gpio, ll_pin, ll_mode); | |
(gdb) | |
LL_GPIO_SetPinMode (Mode=2, Pin=64, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:276 | |
276 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODER0 << (POSITION_VAL(Pin) * 2U)), (Mode << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
halted: PC: 0x0800412c | |
__RBIT (value=64) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004130 | |
LL_GPIO_SetPinMode (Mode=2, Pin=64, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:276 | |
276 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODER0 << (POSITION_VAL(Pin) * 2U)), (Mode << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=33554432) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004132 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004136 | |
halted: PC: 0x08004138 | |
halted: PC: 0x0800413a | |
halted: PC: 0x0800413e | |
halted: PC: 0x08004142 | |
__RBIT (value=64) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004146 | |
LL_GPIO_SetPinMode (Mode=2, Pin=64, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:276 | |
276 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODER0 << (POSITION_VAL(Pin) * 2U)), (Mode << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=33554432) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004148 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x0800414c | |
halted: PC: 0x0800414e | |
halted: PC: 0x08004152 | |
halted: PC: 0x08004154 | |
halted: PC: 0x08004156 | |
pin_function (pin=<optimized out>, function=1298) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:155 | |
155 if ((mode == STM_PIN_OUTPUT) || (mode == STM_PIN_ALTERNATE)) { | |
(gdb) | |
halted: PC: 0x08004158 | |
halted: PC: 0x0800415a | |
halted: PC: 0x08004192 | |
156 if (STM_PIN_OD(function)) { | |
(gdb) | |
halted: PC: 0x08004196 | |
halted: PC: 0x080041cc | |
159 LL_GPIO_SetPinOutputType(gpio, ll_pin, LL_GPIO_OUTPUT_PUSHPULL); | |
(gdb) | |
LL_GPIO_SetPinOutputType (OutputType=0, Pin=64, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:345 | |
345 MODIFY_REG(GPIOx->OTYPER, (GPIO_OTYPER_OT_0 << POSITION_VAL(Pin)), (OutputType << POSITION_VAL(Pin))); | |
(gdb) | |
halted: PC: 0x080041ce | |
__RBIT (value=64) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x080041d2 | |
LL_GPIO_SetPinOutputType (OutputType=0, Pin=64, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:345 | |
345 MODIFY_REG(GPIOx->OTYPER, (GPIO_OTYPER_OT_0 << POSITION_VAL(Pin)), (OutputType << POSITION_VAL(Pin))); | |
(gdb) | |
__CLZ (value=33554432) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x080041d4 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x080041d8 | |
halted: PC: 0x080041da | |
halted: PC: 0x080041de | |
halted: PC: 0x080041e2 | |
__RBIT (value=64) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x080041e6 | |
LL_GPIO_SetPinOutputType (OutputType=0, Pin=64, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x080041e8 | |
halted: PC: 0x0800415c | |
pin_function (pin=<optimized out>, function=1298) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:163 | |
163 pin_PullConfig(gpio, ll_pin, STM_PIN_PUPD(function)); | |
(gdb) | |
halted: PC: 0x08004160 | |
pin_PullConfig (pull_config=1, ll_pin=64, gpio=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/pinconfig.h:59 | |
59 switch (pull_config) { | |
(gdb) | |
halted: PC: 0x08004162 | |
halted: PC: 0x080041ee | |
pin_function (pin=<optimized out>, function=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:163 | |
163 pin_PullConfig(gpio, ll_pin, STM_PIN_PUPD(function)); | |
(gdb) | |
pin_PullConfig (pull_config=1, ll_pin=64, gpio=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/pinconfig.h:66 | |
66 LL_GPIO_SetPinPull(gpio, ll_pin, LL_GPIO_PULL_UP); | |
(gdb) | |
LL_GPIO_SetPinPull (Pull=1, Pin=64, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:488 | |
488 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPDR0 << (POSITION_VAL(Pin) * 2U)), (Pull << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
halted: PC: 0x080041f0 | |
__RBIT (value=64) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x080041f4 | |
LL_GPIO_SetPinPull (Pull=1, Pin=64, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:488 | |
488 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPDR0 << (POSITION_VAL(Pin) * 2U)), (Pull << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=33554432) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x080041f6 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x080041fa | |
halted: PC: 0x080041fc | |
halted: PC: 0x080041fe | |
halted: PC: 0x08004202 | |
halted: PC: 0x08004206 | |
__RBIT (value=64) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x0800420a | |
LL_GPIO_SetPinPull (Pull=1, Pin=64, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:488 | |
488 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPDR0 << (POSITION_VAL(Pin) * 2U)), (Pull << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=33554432) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x0800420c | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004210 | |
halted: PC: 0x08004212 | |
halted: PC: 0x08004214 | |
halted: PC: 0x08004218 | |
halted: PC: 0x0800421a | |
halted: PC: 0x0800421c | |
halted: PC: 0x0800428e | |
pinmap_pinout (pin=<optimized out>, map=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:181 | |
181 return; | |
(gdb) | |
halted: PC: 0x08004298 | |
halted: PC: 0x0800089e | |
spi_init (obj=obj@entry=0x200000dc <SPI_1+52>, speed=4000000, mode=<optimized out>, msb=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src\utility\spi_com.c:258 | |
258 pinmap_pinout(obj->pin_sclk, PinMap_SPI_SCLK); | |
(gdb) | |
halted: PC: 0x080008a0 | |
halted: PC: 0x080008a4 | |
halted: PC: 0x0800426c | |
pinmap_pinout (pin=PA_5, map=0x800671c <PinMap_SPI_SCLK>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:174 | |
174 if (pin == NC) { | |
(gdb) | |
halted: PC: 0x08004270 | |
halted: PC: 0x08004272 | |
halted: PC: 0x08004274 | |
178 while (map->pin != NC) { | |
(gdb) | |
halted: PC: 0x08004278 | |
halted: PC: 0x0800427c | |
halted: PC: 0x0800427e | |
179 if (map->pin == pin) { | |
(gdb) | |
halted: PC: 0x08004280 | |
halted: PC: 0x08004288 | |
180 pin_function(pin, map->function); | |
(gdb) | |
halted: PC: 0x0800428a | |
halted: PC: 0x08004020 | |
pin_function (pin=PA_5, function=1298) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:63 | |
63 { | |
(gdb) | |
halted: PC: 0x08004024 | |
halted: PC: 0x08004026 | |
halted: PC: 0x08004028 | |
65 uint32_t mode = STM_PIN_FUNCTION(function); | |
(gdb) | |
halted: PC: 0x0800402c | |
66 uint32_t afnum = STM_PIN_AFNUM(function); | |
(gdb) | |
halted: PC: 0x08004030 | |
67 uint32_t port = STM_PORT(pin); | |
(gdb) | |
halted: PC: 0x08004034 | |
68 uint32_t ll_pin = STM_LL_GPIO_PIN(pin); | |
(gdb) | |
halted: PC: 0x08004038 | |
halted: PC: 0x0800403a | |
halted: PC: 0x0800403e | |
71 if (pin == (PinName)NC) { | |
(gdb) | |
halted: PC: 0x08004042 | |
halted: PC: 0x08004044 | |
99 GPIO_TypeDef *gpio = set_GPIO_Port_Clock(port); | |
(gdb) | |
halted: PC: 0x08004046 | |
halted: PC: 0x08003eb8 | |
set_GPIO_Port_Clock (port_idx=port_idx@entry=0) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\PortNames.c:69 | |
69 { | |
(gdb) | |
halted: PC: 0x08003eba | |
71 switch (port_idx) { | |
(gdb) | |
halted: PC: 0x08003ebc | |
halted: PC: 0x08003ebe | |
halted: PC: 0x08003ec8 | |
74 __HAL_RCC_GPIOA_CLK_ENABLE(); | |
(gdb) | |
halted: PC: 0x08003eca | |
halted: PC: 0x08003ecc | |
halted: PC: 0x08003ece | |
halted: PC: 0x08003ed0 | |
halted: PC: 0x08003ed4 | |
halted: PC: 0x08003ed6 | |
halted: PC: 0x08003ed8 | |
halted: PC: 0x08003edc | |
halted: PC: 0x08003ede | |
halted: PC: 0x08003ee0 | |
75 break; | |
(gdb) | |
halted: PC: 0x08003ee2 | |
halted: PC: 0x08003ee4 | |
halted: PC: 0x0800404a | |
halted: PC: 0x0800404c | |
pin_function (pin=<optimized out>, function=1298) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:113 | |
113 LL_GPIO_SetPinSpeed(gpio, ll_pin, LL_GPIO_SPEED_FREQ_VERY_HIGH); | |
(gdb) | |
LL_GPIO_SetPinSpeed (Speed=3, Pin=32, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:417 | |
417 MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDER_OSPEEDR0 << (POSITION_VAL(Pin) * 2U)), | |
(gdb) | |
halted: PC: 0x0800404e | |
__RBIT (value=32) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004052 | |
LL_GPIO_SetPinSpeed (Speed=3, Pin=32, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:417 | |
417 MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDER_OSPEEDR0 << (POSITION_VAL(Pin) * 2U)), | |
(gdb) | |
__CLZ (value=67108864) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004054 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004058 | |
halted: PC: 0x0800405a | |
halted: PC: 0x0800405c | |
halted: PC: 0x08004060 | |
halted: PC: 0x08004064 | |
__RBIT (value=32) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004068 | |
LL_GPIO_SetPinSpeed (Speed=3, Pin=32, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:417 | |
417 MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDER_OSPEEDR0 << (POSITION_VAL(Pin) * 2U)), | |
(gdb) | |
__CLZ (value=67108864) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x0800406a | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x0800406e | |
halted: PC: 0x08004070 | |
halted: PC: 0x08004072 | |
halted: PC: 0x08004076 | |
halted: PC: 0x08004078 | |
halted: PC: 0x0800407a | |
pin_function (pin=<optimized out>, function=1298) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:121 | |
121 switch (mode) { | |
(gdb) | |
halted: PC: 0x0800407c | |
halted: PC: 0x0800407e | |
halted: PC: 0x08004098 | |
135 pin_SetAFPin(gpio, pin, afnum); | |
(gdb) | |
pin_SetAFPin (afnum=5, pin=PA_5, gpio=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/pinconfig.h:102 | |
102 uint32_t ll_pin = STM_LL_GPIO_PIN(pin); | |
(gdb) | |
halted: PC: 0x0800409c | |
halted: PC: 0x0800409e | |
halted: PC: 0x080040a2 | |
104 if (STM_PIN(pin) > 7) { | |
(gdb) | |
halted: PC: 0x080040a6 | |
halted: PC: 0x080040e4 | |
107 LL_GPIO_SetAFPin_0_7(gpio, ll_pin, afnum); | |
(gdb) | |
LL_GPIO_SetAFPin_0_7 (Alternate=5, Pin=32, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:560 | |
560 MODIFY_REG(GPIOx->AFR[0], (GPIO_AFRL_AFSEL0 << (POSITION_VAL(Pin) * 4U)), | |
(gdb) | |
halted: PC: 0x080040e6 | |
__RBIT (value=32) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x080040ea | |
LL_GPIO_SetAFPin_0_7 (Alternate=5, Pin=32, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:560 | |
560 MODIFY_REG(GPIOx->AFR[0], (GPIO_AFRL_AFSEL0 << (POSITION_VAL(Pin) * 4U)), | |
(gdb) | |
__CLZ (value=67108864) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x080040ec | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x080040f0 | |
halted: PC: 0x080040f2 | |
halted: PC: 0x080040f4 | |
halted: PC: 0x080040f8 | |
halted: PC: 0x080040fc | |
__RBIT (value=32) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004100 | |
LL_GPIO_SetAFPin_0_7 (Alternate=5, Pin=32, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:560 | |
560 MODIFY_REG(GPIOx->AFR[0], (GPIO_AFRL_AFSEL0 << (POSITION_VAL(Pin) * 4U)), | |
(gdb) | |
__CLZ (value=67108864) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004102 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004106 | |
halted: PC: 0x08004108 | |
halted: PC: 0x0800410c | |
halted: PC: 0x08004110 | |
halted: PC: 0x08004112 | |
halted: PC: 0x080040d8 | |
halted: PC: 0x080040da | |
135 pin_SetAFPin(gpio, pin, afnum); | |
(gdb) | |
0x080040da in pin_SetAFPin (afnum=0, pin=PA_5, gpio=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/pinconfig.h:113 | |
113 } | |
(gdb) | |
halted: PC: 0x0800412a | |
pin_function (pin=<optimized out>, function=1298) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:144 | |
144 LL_GPIO_SetPinMode(gpio, ll_pin, ll_mode); | |
(gdb) | |
LL_GPIO_SetPinMode (Mode=2, Pin=32, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:276 | |
276 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODER0 << (POSITION_VAL(Pin) * 2U)), (Mode << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
halted: PC: 0x0800412c | |
__RBIT (value=32) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004130 | |
LL_GPIO_SetPinMode (Mode=2, Pin=32, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:276 | |
276 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODER0 << (POSITION_VAL(Pin) * 2U)), (Mode << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=67108864) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004132 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004136 | |
halted: PC: 0x08004138 | |
halted: PC: 0x0800413a | |
halted: PC: 0x0800413e | |
halted: PC: 0x08004142 | |
__RBIT (value=32) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004146 | |
LL_GPIO_SetPinMode (Mode=2, Pin=32, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:276 | |
276 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODER0 << (POSITION_VAL(Pin) * 2U)), (Mode << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=67108864) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004148 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x0800414c | |
halted: PC: 0x0800414e | |
halted: PC: 0x08004152 | |
halted: PC: 0x08004154 | |
halted: PC: 0x08004156 | |
pin_function (pin=<optimized out>, function=1298) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:155 | |
155 if ((mode == STM_PIN_OUTPUT) || (mode == STM_PIN_ALTERNATE)) { | |
(gdb) | |
halted: PC: 0x08004158 | |
halted: PC: 0x0800415a | |
halted: PC: 0x08004192 | |
156 if (STM_PIN_OD(function)) { | |
(gdb) | |
halted: PC: 0x08004196 | |
halted: PC: 0x080041cc | |
159 LL_GPIO_SetPinOutputType(gpio, ll_pin, LL_GPIO_OUTPUT_PUSHPULL); | |
(gdb) | |
LL_GPIO_SetPinOutputType (OutputType=0, Pin=32, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:345 | |
345 MODIFY_REG(GPIOx->OTYPER, (GPIO_OTYPER_OT_0 << POSITION_VAL(Pin)), (OutputType << POSITION_VAL(Pin))); | |
(gdb) | |
halted: PC: 0x080041ce | |
__RBIT (value=32) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x080041d2 | |
LL_GPIO_SetPinOutputType (OutputType=0, Pin=32, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:345 | |
345 MODIFY_REG(GPIOx->OTYPER, (GPIO_OTYPER_OT_0 << POSITION_VAL(Pin)), (OutputType << POSITION_VAL(Pin))); | |
(gdb) | |
__CLZ (value=67108864) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x080041d4 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x080041d8 | |
halted: PC: 0x080041da | |
halted: PC: 0x080041de | |
halted: PC: 0x080041e2 | |
__RBIT (value=32) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x080041e6 | |
LL_GPIO_SetPinOutputType (OutputType=0, Pin=32, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x080041e8 | |
halted: PC: 0x0800415c | |
pin_function (pin=<optimized out>, function=1298) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:163 | |
163 pin_PullConfig(gpio, ll_pin, STM_PIN_PUPD(function)); | |
(gdb) | |
halted: PC: 0x08004160 | |
pin_PullConfig (pull_config=1, ll_pin=32, gpio=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/pinconfig.h:59 | |
59 switch (pull_config) { | |
(gdb) | |
halted: PC: 0x08004162 | |
halted: PC: 0x080041ee | |
pin_function (pin=<optimized out>, function=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:163 | |
163 pin_PullConfig(gpio, ll_pin, STM_PIN_PUPD(function)); | |
(gdb) | |
pin_PullConfig (pull_config=1, ll_pin=32, gpio=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/pinconfig.h:66 | |
66 LL_GPIO_SetPinPull(gpio, ll_pin, LL_GPIO_PULL_UP); | |
(gdb) | |
LL_GPIO_SetPinPull (Pull=1, Pin=32, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:488 | |
488 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPDR0 << (POSITION_VAL(Pin) * 2U)), (Pull << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
halted: PC: 0x080041f0 | |
__RBIT (value=32) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x080041f4 | |
LL_GPIO_SetPinPull (Pull=1, Pin=32, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:488 | |
488 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPDR0 << (POSITION_VAL(Pin) * 2U)), (Pull << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=67108864) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x080041f6 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x080041fa | |
halted: PC: 0x080041fc | |
halted: PC: 0x080041fe | |
halted: PC: 0x08004202 | |
halted: PC: 0x08004206 | |
__RBIT (value=32) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x0800420a | |
LL_GPIO_SetPinPull (Pull=1, Pin=32, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:488 | |
488 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPDR0 << (POSITION_VAL(Pin) * 2U)), (Pull << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=67108864) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x0800420c | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004210 | |
halted: PC: 0x08004212 | |
halted: PC: 0x08004214 | |
halted: PC: 0x08004218 | |
halted: PC: 0x0800421a | |
halted: PC: 0x0800421c | |
halted: PC: 0x0800428e | |
pinmap_pinout (pin=<optimized out>, map=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:181 | |
181 return; | |
(gdb) | |
halted: PC: 0x08004298 | |
halted: PC: 0x080008a8 | |
spi_init (obj=obj@entry=0x200000dc <SPI_1+52>, speed=4000000, mode=<optimized out>, msb=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src\utility\spi_com.c:263 | |
263 pull = (handle->Init.CLKPolarity == SPI_POLARITY_LOW) ? GPIO_PULLDOWN : GPIO_PULLUP; | |
(gdb) | |
halted: PC: 0x080008aa | |
halted: PC: 0x080008ac | |
halted: PC: 0x080008ae | |
264 pin_PullConfig(get_GPIO_Port(STM_PORT(obj->pin_sclk)), STM_LL_GPIO_PIN(obj->pin_sclk), pull); | |
(gdb) | |
halted: PC: 0x080008b2 | |
halted: PC: 0x080008b6 | |
halted: PC: 0x080008b8 | |
halted: PC: 0x080008ba | |
halted: PC: 0x080008bc | |
halted: PC: 0x080008c0 | |
halted: PC: 0x080008c4 | |
halted: PC: 0x080008c6 | |
halted: PC: 0x080008ca | |
pin_PullConfig (pull_config=2, ll_pin=32, gpio=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/pinconfig.h:59 | |
59 switch (pull_config) { | |
(gdb) | |
halted: PC: 0x080008cc | |
halted: PC: 0x080008ce | |
halted: PC: 0x080008d0 | |
halted: PC: 0x08000988 | |
74 LL_GPIO_SetPinPull(gpio, ll_pin, LL_GPIO_PULL_DOWN); | |
(gdb) | |
LL_GPIO_SetPinPull (Pull=2, Pin=32, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:488 | |
488 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPDR0 << (POSITION_VAL(Pin) * 2U)), (Pull << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
halted: PC: 0x0800098a | |
__RBIT (value=32) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x0800098e | |
LL_GPIO_SetPinPull (Pull=2, Pin=32, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:488 | |
488 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPDR0 << (POSITION_VAL(Pin) * 2U)), (Pull << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=67108864) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08000990 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08000994 | |
halted: PC: 0x08000996 | |
halted: PC: 0x08000998 | |
halted: PC: 0x0800099c | |
halted: PC: 0x080009a0 | |
__RBIT (value=32) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x080009a4 | |
LL_GPIO_SetPinPull (Pull=2, Pin=<optimized out>, GPIOx=0x40020000) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:488 | |
488 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPDR0 << (POSITION_VAL(Pin) * 2U)), (Pull << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=67108864) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x080009a6 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x080009aa | |
halted: PC: 0x080009ac | |
halted: PC: 0x080009ae | |
halted: PC: 0x080009b2 | |
halted: PC: 0x080009b4 | |
halted: PC: 0x080009b6 | |
halted: PC: 0x08000938 | |
spi_init (obj=obj@entry=0x200000dc <SPI_1+52>, speed=4000000, mode=<optimized out>, msb=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src\utility\spi_com.c:265 | |
265 pinmap_pinout(obj->pin_ssel, PinMap_SPI_SSEL); | |
(gdb) | |
halted: PC: 0x0800093a | |
halted: PC: 0x0800093e | |
halted: PC: 0x0800426c | |
pinmap_pinout (pin=NC, map=0x8006770 <PinMap_SPI_SSEL>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:174 | |
174 if (pin == NC) { | |
(gdb) | |
halted: PC: 0x08004270 | |
halted: PC: 0x08004286 | |
halted: PC: 0x08000942 | |
spi_init (obj=obj@entry=0x200000dc <SPI_1+52>, speed=4000000, mode=<optimized out>, msb=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src\utility\spi_com.c:269 | |
269 if (handle->Instance == SPI1) { | |
(gdb) | |
halted: PC: 0x08000944 | |
halted: PC: 0x08000946 | |
halted: PC: 0x08000948 | |
halted: PC: 0x080009c4 | |
270 __HAL_RCC_SPI1_CLK_ENABLE(); | |
(gdb) | |
halted: PC: 0x080009c6 | |
halted: PC: 0x080009c8 | |
halted: PC: 0x080009ca | |
halted: PC: 0x080009cc | |
halted: PC: 0x080009d0 | |
halted: PC: 0x080009d2 | |
halted: PC: 0x080009d4 | |
halted: PC: 0x080009d8 | |
halted: PC: 0x080009da | |
halted: PC: 0x080009dc | |
halted: PC: 0x0800094a | |
275 if (handle->Instance == SPI2) { | |
(gdb) | |
halted: PC: 0x0800094c | |
halted: PC: 0x0800094e | |
halted: PC: 0x08000950 | |
halted: PC: 0x08000952 | |
281 if (handle->Instance == SPI3) { | |
(gdb) | |
halted: PC: 0x08000954 | |
halted: PC: 0x08000956 | |
halted: PC: 0x08000958 | |
halted: PC: 0x0800095a | |
287 if (handle->Instance == SPI4) { | |
(gdb) | |
halted: PC: 0x0800095c | |
halted: PC: 0x0800095e | |
halted: PC: 0x08000960 | |
halted: PC: 0x08000962 | |
293 if (handle->Instance == SPI5) { | |
(gdb) | |
halted: PC: 0x08000964 | |
halted: PC: 0x08000966 | |
halted: PC: 0x08000968 | |
halted: PC: 0x0800096a | |
304 HAL_SPI_Init(handle); | |
(gdb) | |
halted: PC: 0x0800096c | |
halted: PC: 0x08003854 | |
HAL_SPI_Init (hspi=hspi@entry=0x200000dc <SPI_1+52>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.c:316 | |
316 if (hspi == NULL) | |
(gdb) | |
halted: PC: 0x08003856 | |
halted: PC: 0x08003858 | |
halted: PC: 0x0800385a | |
halted: PC: 0x0800385c | |
342 hspi->Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; | |
(gdb) | |
halted: PC: 0x0800385e | |
halted: PC: 0x08003860 | |
345 if (hspi->State == HAL_SPI_STATE_RESET) | |
(gdb) | |
halted: PC: 0x08003864 | |
halted: PC: 0x08003866 | |
halted: PC: 0x080038c6 | |
348 hspi->Lock = HAL_UNLOCKED; | |
(gdb) | |
halted: PC: 0x080038ca | |
370 HAL_SPI_MspInit(hspi); | |
(gdb) | |
halted: PC: 0x08003852 | |
HAL_SPI_MspInit (hspi=hspi@entry=0x200000dc <SPI_1+52>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.c:462 | |
462 UNUSED(hspi); | |
(gdb) | |
halted: PC: 0x080038ce | |
halted: PC: 0x08003868 | |
HAL_SPI_Init (hspi=hspi@entry=0x200000dc <SPI_1+52>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.c:374 | |
374 hspi->State = HAL_SPI_STATE_BUSY; | |
(gdb) | |
halted: PC: 0x0800386a | |
halted: PC: 0x0800386e | |
377 __HAL_SPI_DISABLE(hspi); | |
(gdb) | |
halted: PC: 0x08003870 | |
halted: PC: 0x08003872 | |
halted: PC: 0x08003876 | |
halted: PC: 0x08003878 | |
382 WRITE_REG(hspi->Instance->CR1, (hspi->Init.Mode | hspi->Init.Direction | hspi->Init.DataSize | | |
(gdb) | |
halted: PC: 0x0800387a | |
halted: PC: 0x0800387c | |
halted: PC: 0x0800387e | |
halted: PC: 0x08003880 | |
halted: PC: 0x08003882 | |
halted: PC: 0x08003884 | |
halted: PC: 0x08003886 | |
halted: PC: 0x08003888 | |
halted: PC: 0x0800388a | |
halted: PC: 0x0800388c | |
halted: PC: 0x08003890 | |
halted: PC: 0x08003892 | |
halted: PC: 0x08003894 | |
halted: PC: 0x08003896 | |
halted: PC: 0x08003898 | |
halted: PC: 0x0800389a | |
halted: PC: 0x0800389c | |
halted: PC: 0x0800389e | |
halted: PC: 0x080038a0 | |
halted: PC: 0x080038a2 | |
387 WRITE_REG(hspi->Instance->CR2, (((hspi->Init.NSS >> 16U) & SPI_CR2_SSOE) | hspi->Init.TIMode)); | |
(gdb) | |
halted: PC: 0x080038a4 | |
halted: PC: 0x080038a8 | |
halted: PC: 0x080038aa | |
halted: PC: 0x080038ac | |
halted: PC: 0x080038ae | |
halted: PC: 0x080038b0 | |
400 CLEAR_BIT(hspi->Instance->I2SCFGR, SPI_I2SCFGR_I2SMOD); | |
(gdb) | |
halted: PC: 0x080038b2 | |
halted: PC: 0x080038b4 | |
halted: PC: 0x080038b8 | |
halted: PC: 0x080038ba | |
403 hspi->ErrorCode = HAL_SPI_ERROR_NONE; | |
(gdb) | |
halted: PC: 0x080038bc | |
halted: PC: 0x080038be | |
404 hspi->State = HAL_SPI_STATE_READY; | |
(gdb) | |
halted: PC: 0x080038c0 | |
halted: PC: 0x080038c4 | |
406 return HAL_OK; | |
(gdb) | |
halted: PC: 0x08000970 | |
spi_init (obj=obj@entry=0x200000dc <SPI_1+52>, speed=4000000, mode=<optimized out>, msb=<optimized out>) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src\utility\spi_com.c:307 | |
307 __HAL_SPI_ENABLE(handle); | |
(gdb) | |
halted: PC: 0x08000972 | |
halted: PC: 0x08000974 | |
halted: PC: 0x08000978 | |
halted: PC: 0x0800097a | |
halted: PC: 0x0800097c | |
halted: PC: 0x080004f8 | |
SPIClass::begin (this=0x200000a8 <SPI_1>, _pin=_pin@entry=36 '$') | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SPI\src\SPI.cpp:82 | |
82 _CSPinConfig = _pin; | |
(gdb) | |
halted: PC: 0x080004fa | |
halted: PC: 0x08001378 | |
Adafruit_SPITFT::initSPI (this=0x2001ff9c, freq=32000000, spiMode=<optimized out>) | |
at C:\Users\E1200\Documents\Arduino\libraries\Adafruit_GFX_Library\Adafruit_SPITFT.cpp:641 | |
641 if (_rst >= 0) { | |
(gdb) | |
halted: PC: 0x0800137c | |
halted: PC: 0x0800137e | |
halted: PC: 0x08001424 | |
643 pinMode(_rst, OUTPUT); | |
(gdb) | |
halted: PC: 0x08001426 | |
halted: PC: 0x08004f6c | |
pinMode (ulPin=45, ulMode=ulMode@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_digital.c:30 | |
30 { | |
(gdb) | |
halted: PC: 0x08004f6e | |
halted: PC: 0x08004f70 | |
31 PinName p = digitalPinToPinName(ulPin); | |
(gdb) | |
halted: PC: 0x08004f72 | |
halted: PC: 0x08004fa4 | |
halted: PC: 0x08004fa6 | |
halted: PC: 0x08004fa8 | |
halted: PC: 0x08004faa | |
halted: PC: 0x08004fac | |
halted: PC: 0x08004fb0 | |
halted: PC: 0x08004fb2 | |
halted: PC: 0x08004fb6 | |
halted: PC: 0x08004f7a | |
33 if (p != NC) { | |
(gdb) | |
halted: PC: 0x08004f7e | |
halted: PC: 0x08004f80 | |
37 if (is_pin_configured(p, g_anOutputPinConfigured)) { | |
(gdb) | |
halted: PC: 0x08004f84 | |
halted: PC: 0x08004f86 | |
halted: PC: 0x08004f8a | |
halted: PC: 0x08004f8e | |
halted: PC: 0x08004f90 | |
halted: PC: 0x08004f94 | |
halted: PC: 0x08004f96 | |
53 switch (ulMode) { | |
(gdb) | |
halted: PC: 0x08004f98 | |
halted: PC: 0x08004f9a | |
halted: PC: 0x08005008 | |
67 pin_function(p, STM_PIN_DATA(STM_MODE_OUTPUT_PP, GPIO_NOPULL, 0)); | |
(gdb) | |
halted: PC: 0x0800500a | |
halted: PC: 0x0800500c | |
halted: PC: 0x08004020 | |
pin_function (pin=pin@entry=PB_0, function=function@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:63 | |
63 { | |
(gdb) | |
halted: PC: 0x08004024 | |
halted: PC: 0x08004026 | |
halted: PC: 0x08004028 | |
65 uint32_t mode = STM_PIN_FUNCTION(function); | |
(gdb) | |
halted: PC: 0x0800402c | |
66 uint32_t afnum = STM_PIN_AFNUM(function); | |
(gdb) | |
halted: PC: 0x08004030 | |
67 uint32_t port = STM_PORT(pin); | |
(gdb) | |
halted: PC: 0x08004034 | |
68 uint32_t ll_pin = STM_LL_GPIO_PIN(pin); | |
(gdb) | |
halted: PC: 0x08004038 | |
halted: PC: 0x0800403a | |
halted: PC: 0x0800403e | |
71 if (pin == (PinName)NC) { | |
(gdb) | |
halted: PC: 0x08004042 | |
halted: PC: 0x08004044 | |
99 GPIO_TypeDef *gpio = set_GPIO_Port_Clock(port); | |
(gdb) | |
halted: PC: 0x08004046 | |
halted: PC: 0x08003eb8 | |
set_GPIO_Port_Clock (port_idx=port_idx@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\PortNames.c:69 | |
69 { | |
(gdb) | |
halted: PC: 0x08003eba | |
71 switch (port_idx) { | |
(gdb) | |
halted: PC: 0x08003ebc | |
halted: PC: 0x08003ebe | |
halted: PC: 0x08003ee6 | |
78 __HAL_RCC_GPIOB_CLK_ENABLE(); | |
(gdb) | |
halted: PC: 0x08003ee8 | |
halted: PC: 0x08003eea | |
halted: PC: 0x08003eec | |
halted: PC: 0x08003eee | |
halted: PC: 0x08003ef2 | |
halted: PC: 0x08003ef4 | |
halted: PC: 0x08003ef6 | |
halted: PC: 0x08003efa | |
halted: PC: 0x08003efc | |
halted: PC: 0x08003efe | |
79 break; | |
(gdb) | |
halted: PC: 0x08003f00 | |
halted: PC: 0x08003ee2 | |
halted: PC: 0x08003ee4 | |
halted: PC: 0x0800404a | |
halted: PC: 0x0800404c | |
pin_function (pin=pin@entry=PB_0, function=function@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:113 | |
113 LL_GPIO_SetPinSpeed(gpio, ll_pin, LL_GPIO_SPEED_FREQ_VERY_HIGH); | |
(gdb) | |
LL_GPIO_SetPinSpeed (Speed=3, Pin=1, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:417 | |
417 MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDER_OSPEEDR0 << (POSITION_VAL(Pin) * 2U)), | |
(gdb) | |
halted: PC: 0x0800404e | |
__RBIT (value=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004052 | |
LL_GPIO_SetPinSpeed (Speed=3, Pin=1, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:417 | |
417 MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDER_OSPEEDR0 << (POSITION_VAL(Pin) * 2U)), | |
(gdb) | |
__CLZ (value=2147483648) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004054 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004058 | |
halted: PC: 0x0800405a | |
halted: PC: 0x0800405c | |
halted: PC: 0x08004060 | |
halted: PC: 0x08004064 | |
__RBIT (value=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004068 | |
LL_GPIO_SetPinSpeed (Speed=3, Pin=1, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:417 | |
417 MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDER_OSPEEDR0 << (POSITION_VAL(Pin) * 2U)), | |
(gdb) | |
__CLZ (value=2147483648) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x0800406a | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x0800406e | |
halted: PC: 0x08004070 | |
halted: PC: 0x08004072 | |
halted: PC: 0x08004076 | |
halted: PC: 0x08004078 | |
halted: PC: 0x0800407a | |
pin_function (pin=pin@entry=PB_0, function=function@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:121 | |
121 switch (mode) { | |
(gdb) | |
halted: PC: 0x0800407c | |
halted: PC: 0x0800407e | |
halted: PC: 0x08004128 | |
halted: PC: 0x0800412a | |
144 LL_GPIO_SetPinMode(gpio, ll_pin, ll_mode); | |
(gdb) | |
LL_GPIO_SetPinMode (Mode=1, Pin=1, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:276 | |
276 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODER0 << (POSITION_VAL(Pin) * 2U)), (Mode << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
halted: PC: 0x0800412c | |
__RBIT (value=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004130 | |
LL_GPIO_SetPinMode (Mode=1, Pin=1, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:276 | |
276 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODER0 << (POSITION_VAL(Pin) * 2U)), (Mode << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=2147483648) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004132 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004136 | |
halted: PC: 0x08004138 | |
halted: PC: 0x0800413a | |
halted: PC: 0x0800413e | |
halted: PC: 0x08004142 | |
__RBIT (value=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004146 | |
LL_GPIO_SetPinMode (Mode=1, Pin=1, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:276 | |
276 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODER0 << (POSITION_VAL(Pin) * 2U)), (Mode << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=2147483648) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004148 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x0800414c | |
halted: PC: 0x0800414e | |
halted: PC: 0x08004152 | |
halted: PC: 0x08004154 | |
halted: PC: 0x08004156 | |
pin_function (pin=pin@entry=PB_0, function=function@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:155 | |
155 if ((mode == STM_PIN_OUTPUT) || (mode == STM_PIN_ALTERNATE)) { | |
(gdb) | |
halted: PC: 0x08004158 | |
halted: PC: 0x0800415a | |
halted: PC: 0x08004192 | |
156 if (STM_PIN_OD(function)) { | |
(gdb) | |
halted: PC: 0x08004196 | |
halted: PC: 0x080041cc | |
159 LL_GPIO_SetPinOutputType(gpio, ll_pin, LL_GPIO_OUTPUT_PUSHPULL); | |
(gdb) | |
LL_GPIO_SetPinOutputType (OutputType=0, Pin=1, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:345 | |
345 MODIFY_REG(GPIOx->OTYPER, (GPIO_OTYPER_OT_0 << POSITION_VAL(Pin)), (OutputType << POSITION_VAL(Pin))); | |
(gdb) | |
halted: PC: 0x080041ce | |
__RBIT (value=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x080041d2 | |
LL_GPIO_SetPinOutputType (OutputType=0, Pin=1, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:345 | |
345 MODIFY_REG(GPIOx->OTYPER, (GPIO_OTYPER_OT_0 << POSITION_VAL(Pin)), (OutputType << POSITION_VAL(Pin))); | |
(gdb) | |
__CLZ (value=2147483648) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x080041d4 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x080041d8 | |
halted: PC: 0x080041da | |
halted: PC: 0x080041de | |
halted: PC: 0x080041e2 | |
__RBIT (value=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x080041e6 | |
LL_GPIO_SetPinOutputType (OutputType=0, Pin=1, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x080041e8 | |
halted: PC: 0x0800415c | |
pin_function (pin=pin@entry=PB_0, function=function@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\pinmap.c:163 | |
163 pin_PullConfig(gpio, ll_pin, STM_PIN_PUPD(function)); | |
(gdb) | |
halted: PC: 0x08004160 | |
pin_PullConfig (pull_config=0, ll_pin=1, gpio=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/pinconfig.h:59 | |
59 switch (pull_config) { | |
(gdb) | |
halted: PC: 0x08004162 | |
halted: PC: 0x08004164 | |
halted: PC: 0x08004166 | |
halted: PC: 0x08004168 | |
83 LL_GPIO_SetPinPull(gpio, ll_pin, LL_GPIO_PULL_NO); | |
(gdb) | |
LL_GPIO_SetPinPull (Pull=0, Pin=1, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:488 | |
488 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPDR0 << (POSITION_VAL(Pin) * 2U)), (Pull << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
halted: PC: 0x0800416a | |
__RBIT (value=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x0800416e | |
LL_GPIO_SetPinPull (Pull=0, Pin=1, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:488 | |
488 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPDR0 << (POSITION_VAL(Pin) * 2U)), (Pull << (POSITION_VAL(Pin) * 2U))); | |
(gdb) | |
__CLZ (value=2147483648) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004170 | |
halted: PC: 0x08004172 | |
1026 return __builtin_clz(value); | |
(gdb) | |
halted: PC: 0x08004176 | |
halted: PC: 0x08004178 | |
halted: PC: 0x0800417a | |
halted: PC: 0x0800417e | |
halted: PC: 0x08004182 | |
__RBIT (value=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:988 | |
988 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); | |
(gdb) | |
halted: PC: 0x08004186 | |
LL_GPIO_SetPinPull (Pull=0, Pin=1, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1/CMSIS/Core/Include/cmsis_gcc.h:1022 | |
1022 if (value == 0U) | |
(gdb) | |
halted: PC: 0x08004188 | |
pin_function (pin=pin@entry=PB_0, function=function@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/pinconfig.h:46 | |
46 UNUSED(pin); | |
(gdb) | |
halted: PC: 0x0800421c | |
halted: PC: 0x08005010 | |
pinMode (ulPin=<optimized out>, ulMode=ulMode@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_digital.c:68 | |
68 break; | |
(gdb) | |
halted: PC: 0x08004fe8 | |
56 break; | |
(gdb) | |
halted: PC: 0x0800142a | |
Adafruit_SPITFT::initSPI (this=0x2001ff9c, freq=32000000, spiMode=<optimized out>) | |
at C:\Users\E1200\Documents\Arduino\libraries\Adafruit_GFX_Library\Adafruit_SPITFT.cpp:644 | |
644 digitalWrite(_rst, HIGH); | |
(gdb) | |
halted: PC: 0x0800142c | |
halted: PC: 0x08001430 | |
halted: PC: 0x0800503c | |
digitalWrite (ulPin=45, ulVal=ulVal@entry=1) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_digital.c:81 | |
81 digitalWriteFast(digitalPinToPinName(ulPin), ulVal); | |
(gdb) | |
halted: PC: 0x0800503e | |
halted: PC: 0x08005064 | |
halted: PC: 0x08005066 | |
halted: PC: 0x08005068 | |
halted: PC: 0x0800506a | |
halted: PC: 0x0800506c | |
halted: PC: 0x08005070 | |
halted: PC: 0x08005072 | |
halted: PC: 0x08005076 | |
halted: PC: 0x08005046 | |
digitalWriteFast (ulVal=1, pn=PB_0) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/digital_io.h:96 | |
96 digital_io_write(get_GPIO_Port(STM_PORT(pn)), STM_LL_GPIO_PIN(pn), ulVal); | |
(gdb) | |
halted: PC: 0x0800504a | |
halted: PC: 0x0800504c | |
halted: PC: 0x0800504e | |
halted: PC: 0x08005050 | |
halted: PC: 0x08005054 | |
halted: PC: 0x08005058 | |
halted: PC: 0x0800505a | |
halted: PC: 0x0800505e | |
digital_io_write (val=1, pin=1, port=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino/stm32/digital_io.h:59 | |
59 if (val) { | |
(gdb) | |
halted: PC: 0x08005060 | |
60 LL_GPIO_SetOutputPin(port, pin); | |
(gdb) | |
LL_GPIO_SetOutputPin (PinMask=1, GPIOx=0x40020400) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h:885 | |
885 WRITE_REG(GPIOx->BSRR, PinMask); | |
(gdb) | |
halted: PC: 0x08005062 | |
halted: PC: 0x08001434 | |
Adafruit_SPITFT::initSPI (this=0x2001ff9c, freq=32000000, spiMode=<optimized out>) | |
at C:\Users\E1200\Documents\Arduino\libraries\Adafruit_GFX_Library\Adafruit_SPITFT.cpp:645 | |
645 delay(100); | |
(gdb) | |
halted: PC: 0x08001436 | |
halted: PC: 0x080050a0 | |
delay (ms=ms@entry=100) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_time.c:39 | |
39 if (ms != 0) { | |
(gdb) | |
halted: PC: 0x080050a4 | |
halted: PC: 0x080050a6 | |
halted: PC: 0x080050a8 | |
40 uint32_t start = getCurrentMillis(); | |
(gdb) | |
halted: PC: 0x08003f94 | |
getCurrentMillis () | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\clock.c:72 | |
72 return HAL_GetTick(); | |
(gdb) | |
halted: PC: 0x08002074 | |
HAL_GetTick () | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c:325 | |
325 return uwTick; | |
(gdb) | |
halted: PC: 0x08002076 | |
halted: PC: 0x08002078 | |
halted: PC: 0x08003f9a | |
halted: PC: 0x080050ac | |
halted: PC: 0x080050ae | |
delay (ms=ms@entry=100) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_time.c:42 | |
42 yield(); | |
(gdb) | |
halted: PC: 0x080054c6 | |
__empty () at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\hooks.c:33 | |
33 } | |
(gdb) | |
halted: PC: 0x080050b2 | |
delay (ms=ms@entry=100) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_time.c:43 | |
43 } while (getCurrentMillis() - start < ms); | |
(gdb) | |
halted: PC: 0x08003f94 | |
getCurrentMillis () | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\clock.c:72 | |
72 return HAL_GetTick(); | |
(gdb) | |
halted: PC: 0x08002074 | |
HAL_GetTick () | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c:325 | |
325 return uwTick; | |
(gdb) | |
halted: PC: 0x08002076 | |
halted: PC: 0x08002078 | |
halted: PC: 0x08003f9a | |
halted: PC: 0x080050b6 | |
halted: PC: 0x080050b8 | |
halted: PC: 0x080050ba | |
halted: PC: 0x080050ae | |
delay (ms=ms@entry=100) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_time.c:42 | |
42 yield(); | |
(gdb) | |
halted: PC: 0x080054c6 | |
__empty () at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\hooks.c:33 | |
33 } | |
(gdb) | |
halted: PC: 0x080050b2 | |
delay (ms=ms@entry=100) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_time.c:43 | |
43 } while (getCurrentMillis() - start < ms); | |
(gdb) | |
halted: PC: 0x08003f94 | |
getCurrentMillis () | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\clock.c:72 | |
72 return HAL_GetTick(); | |
(gdb) | |
halted: PC: 0x08002074 | |
HAL_GetTick () | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c:325 | |
325 return uwTick; | |
(gdb) | |
halted: PC: 0x08002076 | |
halted: PC: 0x08002078 | |
halted: PC: 0x08003f9a | |
halted: PC: 0x080050b6 | |
halted: PC: 0x080050b8 | |
halted: PC: 0x080050ba | |
halted: PC: 0x080050ae | |
delay (ms=ms@entry=100) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_time.c:42 | |
42 yield(); | |
(gdb) | |
halted: PC: 0x080054c6 | |
__empty () at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\hooks.c:33 | |
33 } | |
(gdb) | |
halted: PC: 0x080050b2 | |
delay (ms=ms@entry=100) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_time.c:43 | |
43 } while (getCurrentMillis() - start < ms); | |
(gdb) | |
halted: PC: 0x08003f94 | |
getCurrentMillis () | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\clock.c:72 | |
72 return HAL_GetTick(); | |
(gdb) | |
halted: PC: 0x08002074 | |
HAL_GetTick () | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c:325 | |
325 return uwTick; | |
(gdb) | |
halted: PC: 0x08002076 | |
halted: PC: 0x08002078 | |
halted: PC: 0x08003f9a | |
halted: PC: 0x080050b6 | |
halted: PC: 0x080050b8 | |
halted: PC: 0x080050ba | |
halted: PC: 0x080050ae | |
delay (ms=ms@entry=100) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_time.c:42 | |
42 yield(); | |
(gdb) | |
halted: PC: 0x080054c6 | |
__empty () at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\hooks.c:33 | |
33 } | |
(gdb) | |
halted: PC: 0x080050b2 | |
delay (ms=ms@entry=100) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_time.c:43 | |
43 } while (getCurrentMillis() - start < ms); | |
(gdb) | |
halted: PC: 0x08003f94 | |
getCurrentMillis () | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\clock.c:72 | |
72 return HAL_GetTick(); | |
(gdb) | |
halted: PC: 0x08002074 | |
HAL_GetTick () | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c:325 | |
325 return uwTick; | |
(gdb) | |
halted: PC: 0x08002076 | |
halted: PC: 0x08002078 | |
halted: PC: 0x08003f9a | |
halted: PC: 0x080050b6 | |
halted: PC: 0x080050b8 | |
halted: PC: 0x080050ba | |
halted: PC: 0x080050ae | |
delay (ms=ms@entry=100) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_time.c:42 | |
42 yield(); | |
(gdb) | |
halted: PC: 0x080054c6 | |
__empty () at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\hooks.c:33 | |
33 } | |
(gdb) | |
halted: PC: 0x080050b2 | |
delay (ms=ms@entry=100) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_time.c:43 | |
43 } while (getCurrentMillis() - start < ms); | |
(gdb) | |
halted: PC: 0x08003f94 | |
getCurrentMillis () | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\clock.c:72 | |
72 return HAL_GetTick(); | |
(gdb) | |
halted: PC: 0x08002074 | |
HAL_GetTick () | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c:325 | |
325 return uwTick; | |
(gdb) | |
halted: PC: 0x08002076 | |
halted: PC: 0x08002078 | |
halted: PC: 0x08003f9a | |
halted: PC: 0x080050b6 | |
halted: PC: 0x080050b8 | |
halted: PC: 0x080050ba | |
halted: PC: 0x080050ae | |
delay (ms=ms@entry=100) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_time.c:42 | |
42 yield(); | |
(gdb) | |
halted: PC: 0x080054c6 | |
__empty () at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\hooks.c:33 | |
33 } | |
(gdb) | |
halted: PC: 0x080050b2 | |
delay (ms=ms@entry=100) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_time.c:43 | |
43 } while (getCurrentMillis() - start < ms); | |
(gdb) | |
halted: PC: 0x08003f94 | |
getCurrentMillis () | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\clock.c:72 | |
72 return HAL_GetTick(); | |
(gdb) | |
halted: PC: 0x08002074 | |
HAL_GetTick () | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c:325 | |
325 return uwTick; | |
(gdb) | |
halted: PC: 0x08002076 | |
halted: PC: 0x08002078 | |
halted: PC: 0x08003f9a | |
halted: PC: 0x080050b6 | |
halted: PC: 0x080050b8 | |
halted: PC: 0x080050ba | |
halted: PC: 0x080050ae | |
delay (ms=ms@entry=100) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_time.c:42 | |
42 yield(); | |
(gdb) | |
halted: PC: 0x080054c6 | |
__empty () at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\hooks.c:33 | |
33 } | |
(gdb) | |
halted: PC: 0x080050b2 | |
delay (ms=ms@entry=100) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_time.c:43 | |
43 } while (getCurrentMillis() - start < ms); | |
(gdb) | |
halted: PC: 0x08003f94 | |
getCurrentMillis () | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper\src\stm32\clock.c:72 | |
72 return HAL_GetTick(); | |
(gdb) | |
halted: PC: 0x08002074 | |
HAL_GetTick () | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c:325 | |
325 return uwTick; | |
(gdb) | |
halted: PC: 0x08002076 | |
halted: PC: 0x08002078 | |
halted: PC: 0x08003f9a | |
halted: PC: 0x080050b6 | |
halted: PC: 0x080050b8 | |
halted: PC: 0x080050ba | |
halted: PC: 0x080050ae | |
delay (ms=ms@entry=100) | |
at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\wiring_time.c:42 | |
42 yield(); | |
(gdb) | |
halted: PC: 0x080054c6 | |
__empty () at C:\Users\E1200\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\cores\arduino\hooks.c:33 | |
33 } | |
(gdb) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment