aster94 / logic-analyzer

Logic Analyzer, for Arduino, AVR, ESP8266 and STM32 with a very nice working processing interface, you could run it also on any Android device.
GNU General Public License v3.0
351 stars 77 forks source link

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

Open samigroup opened 5 years ago

samigroup commented 5 years ago

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 commented 5 years ago

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

samigroup commented 5 years ago

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

aster94 commented 5 years ago

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

samigroup commented 5 years ago

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

aster94 commented 5 years ago

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