-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STM32F1 - *'struct GPIO_TypeDef' has no member named 'regs' * #12
Comments
Was it working before you changed the name? |
The name change has nothing to do with it, |
Please answer the second question: Which stm32 core did you installed? |
1# Arduino STM32F4 Boards by Arduino ver 1.0.1 |
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 |
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'
The text was updated successfully, but these errors were encountered: