Skip to content
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

Open
samigroup opened this issue Aug 5, 2019 · 5 comments
Open

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

samigroup opened this issue Aug 5, 2019 · 5 comments

Comments

@samigroup
Copy link

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'

@aster94
Copy link
Owner

aster94 commented Aug 10, 2019

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

@samigroup
Copy link
Author

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

@aster94
Copy link
Owner

aster94 commented Aug 11, 2019

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

@samigroup
Copy link
Author

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

@aster94
Copy link
Owner

aster94 commented Aug 14, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants