logic-analyzer icon indicating copy to clipboard operation
logic-analyzer copied to clipboard

STM32F1 - *'struct GPIO_TypeDef' has no member named 'regs' *

Open samigroup opened this issue 6 years ago • 5 comments

File: https://github.com/aster94/logic-analyzer/tree/master/Microcontroller_Code/STM32F1 I changed the name for "STM32F1.ino" to "STM31F1_LogicAnalyzer.ino"

C:\Temp_Sami\Arduino_Examples\STM31F1_LogicAnalyzer\STM31F1_LogicAnalyzer.ino: In function 'void startLA()': STM31F1_LogicAnalyzer:48:20: error: 'struct GPIO_TypeDef' has no member named 'regs' initial = GPIOB->regs->IDR >> 12; ^~~~ C:\Temp_Sami\Arduino_Examples\STM31F1_LogicAnalyzer\STM31F1_LogicAnalyzer.ino: In function 'void loop()': STM31F1_LogicAnalyzer:56:18: error: 'struct GPIO_TypeDef' has no member named 'regs' state = GPIOB->regs->IDR >> 12; ^~~~ C:\Temp_Sami\Arduino_Examples\STM31F1_LogicAnalyzer\STM31F1_LogicAnalyzer.ino: In function 'void reset_timer()': STM31F1_LogicAnalyzer:87:3: error: 'systick_uptime_millis' was not declared in this scope systick_uptime_millis = -1; ^~~~~~~~~~~~~~~~~~~~~ STM31F1_LogicAnalyzer:88:3: error: 'SYSTICK_BASE' was not declared in this scope SYSTICK_BASE->CNT = 0; ^~~~~~~~~~~~ C:\Temp_Sami\Arduino_Examples\STM31F1_LogicAnalyzer\STM31F1_LogicAnalyzer.ino:88:3: note: suggested alternative: 'TIM1_BASE' SYSTICK_BASE->CNT = 0; ^~~~~~~~~~~~ TIM1_BASE exit status 1 'struct GPIO_TypeDef' has no member named 'regs'

samigroup avatar Aug 05 '19 21:08 samigroup

Was it working before you changed the name? Which stm32 core did you installed?

aster94 avatar Aug 10 '19 13:08 aster94

The name change has nothing to do with it, I used STM32F103 (Blue Pill).

samigroup avatar Aug 11 '19 04:08 samigroup

Please answer the second question: Which stm32 core did you installed?

aster94 avatar Aug 11 '19 09:08 aster94

1# Arduino STM32F4 Boards by Arduino ver 1.0.1 2# STM32 Cores by STMicroelectrnoics ver 1.6.1

samigroup avatar Aug 12 '19 21:08 samigroup

ok, please read the information in the sketch, you are using a different core https://github.com/aster94/logic-analyzer/blob/master/Microcontroller_Code/STM32F1/STM32F1.ino

even though i would like to move to the STM32 official core now i don't have time to do this

aster94 avatar Aug 14 '19 11:08 aster94