Closed prathameshjakka closed 6 years ago
You need to figure out how to set up interrupts and timers for your STM32 board. The macros and register names that give you the error, are AVR only.
First learn how interrupts and timers work on AVR so you know what's going on, and then adapt what you learned to STM32.
I know this was closed long ago, but hoping that @prathameshjakka found the solution as I have this same problem and fixing myself has been difficult...
Yes I kind of did execute it but it was unreliable
On Thu, 21 Nov, 2019, 9:31 AM DropbearNinja, notifications@github.com wrote:
I know this was closed long ago, but hoping that @prathameshjakka https://github.com/prathameshjakka found the solution as I have this same problem and fixing myself has been difficult...
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/teemuatlut/TMC2130Stepper/issues/37?email_source=notifications&email_token=ACHLAYFXHXLMSWQ7Q6FQKP3QUYBY5A5CNFSM4FDXNSFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEY4KDQ#issuecomment-556909838, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACHLAYGLM547Z5BWZEPWXGLQUYBY5ANCNFSM4FDXNSFA .
Hi @DropbearNinja @prathameshjakka I'm interested too regarding ESP32 & TMC2209, any code to share ? Thanks in advance !
I'm trying to execute stall guard example on esp32, the simple example is running fine but there are errors with stallguard. Please help
`Arduino: 1.8.5 (Windows 10), Board: "MH ET LIVE ESP32MiniKit, 80MHz, Default, 921600, None"
WARNING: library TMC2130Stepper claims to run on (avr, sam) architecture(s) and may be incompatible with your current board which runs on (esp32) architecture(s). StallGuard:85: error: expected constructor, destructor, or type conversion before '(' token
ISR(TIMER1_COMPA_vect){
C:\Users\Prathamesh\Documents\Arduino\libraries\TMC2130Stepper\examples\StallGuard\StallGuard.ino: In function 'void setup()':
StallGuard:66: error: 'TCCR1A' was not declared in this scope
StallGuard:67: error: 'TCCR1B' was not declared in this scope
StallGuard:68: error: 'TCNT1' was not declared in this scope
StallGuard:69: error: 'OCR1A' was not declared in this scope
StallGuard:71: error: 'WGM12' was not declared in this scope
StallGuard:73: error: 'CS11' was not declared in this scope
StallGuard:75: error: 'TIMSK1' was not declared in this scope
StallGuard:75: error: 'OCIE1A' was not declared in this scope
C:\Users\Prathamesh\Documents\Arduino\libraries\TMC2130Stepper\examples\StallGuard\StallGuard.ino: At global scope:
StallGuard:85: error: expected constructor, destructor, or type conversion before '(' token
ISR(TIMER1_COMPA_vect){
C:\Users\Prathamesh\Documents\Arduino\libraries\TMC2130Stepper\examples\StallGuard\StallGuard.ino: In function 'void loop()':
StallGuard:97: error: 'TIMSK1' was not declared in this scope
StallGuard:97: error: 'OCIE1A' was not declared in this scope
StallGuard:98: error: 'TIMSK1' was not declared in this scope
StallGuard:98: error: 'OCIE1A' was not declared in this scope
StallGuard:99: error: 'OCR1A' was not declared in this scope
exit status 1 expected constructor, destructor, or type conversion before '(' token
This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. `