- Posts: 1317
- Thank you received: 0
AX58100
11 months 1 week ago #338712
by Hakan
Haha, that brings back memories
There are two products here in the picture
www.aliexpress.com/item/1005001579853052.html STM32F407VET6 dev board
www.aliexpress.com/item/1005007182508975.html LAN9252 slave dev board
The STM32's pins on the LAN93252 dev board are limited to those in the pin header, which wasn't enough.
For test it can work if the needed pins are available in the header.
One can use the LAN9252 of the kit, which is what I did and hooked it up to the STM32 dev board
where I had access to all pins.SPI+sync0,syc1,irq lines.
I now see in some searches there are other LAN9252+STM32 development boards which are better suited, maybe this one?
It can pay off to do a search. You want access to the Timer's encoder inputs, which
are different for different models so it's a puzzle.
Schema for STM32F407ZGT6 on the LAN9252 dev board
There are two products here in the picture
Attachment not found
www.aliexpress.com/item/1005001579853052.html STM32F407VET6 dev board
www.aliexpress.com/item/1005007182508975.html LAN9252 slave dev board
The STM32's pins on the LAN93252 dev board are limited to those in the pin header, which wasn't enough.
For test it can work if the needed pins are available in the header.
One can use the LAN9252 of the kit, which is what I did and hooked it up to the STM32 dev board
where I had access to all pins.SPI+sync0,syc1,irq lines.
I now see in some searches there are other LAN9252+STM32 development boards which are better suited, maybe this one?
Attachment not found
It can pay off to do a search. You want access to the Timer's encoder inputs, which
are different for different models so it's a puzzle.
Schema for STM32F407ZGT6 on the LAN9252 dev board
Attachment not found
Please Log in to join the conversation.
11 months 1 day ago #339446
by vibram
Hello
I bought the following card (still waiting for it) and it seems to have TIM8 CH1 and CH2 available
fr.aliexpress.com/item/1005008473184616....gatewayAdapt=glo2fra
I bought the following card (still waiting for it) and it seems to have TIM8 CH1 and CH2 available
fr.aliexpress.com/item/1005008473184616....gatewayAdapt=glo2fra
Attachment not found
Please Log in to join the conversation.
10 months 4 weeks ago #339582
by Hakan
Not sure exactly how that works. TIM2 and TIM5 share things, at least encoder pins, so only one encoder.
Maybe there can be TIM2 on one pin and TIM5 on the other for other purposes, not sure.
You can always do some surgery. Prototype in free-run mode and you don't need sync0 and sync1 which are
on TIM2 CH1 and CH2, so you can free them up and use them for encoder input for the 32-bit encoder.
Solder on tiny wires and melting glue. Has happened before.
Maybe there can be TIM2 on one pin and TIM5 on the other for other purposes, not sure.
You can always do some surgery. Prototype in free-run mode and you don't need sync0 and sync1 which are
on TIM2 CH1 and CH2, so you can free them up and use them for encoder input for the 32-bit encoder.
Solder on tiny wires and melting glue. Has happened before.
Please Log in to join the conversation.
10 months 3 weeks ago #339789
by vibram
Hello @Hakan
I received the board and it worked smoothly with the firmware inside.
However I have a lot of issue to edit, mainly I think due to chinese chars that are not converted correctly.
The TIM2 CH1 and CH2 are quite easily accessible. Do you want to help/assist me in order to build the new firmware ?
I think i can take you firmware and edit it, I feel almost capable, however regarding the eeprom etc I'm totally lost.
Maybe we can try step by step?
I received the board and it worked smoothly with the firmware inside.
However I have a lot of issue to edit, mainly I think due to chinese chars that are not converted correctly.
The TIM2 CH1 and CH2 are quite easily accessible. Do you want to help/assist me in order to build the new firmware ?
I think i can take you firmware and edit it, I feel almost capable, however regarding the eeprom etc I'm totally lost.
Maybe we can try step by step?
Please Log in to join the conversation.
10 months 3 weeks ago #339792
by vibram
Great thank you for your support.
How do you debug in your platformio project?
I will create my usbject once I made some progress
Meanwhile I remove pin SYNC0 and SYNC1 but its not working anymore with the original project, i will need to adapt with yours
How do you debug in your platformio project?
I will create my usbject once I made some progress
Meanwhile I remove pin SYNC0 and SYNC1 but its not working anymore with the original project, i will need to adapt with yours
Please Log in to join the conversation.
10 months 3 weeks ago #339793
by Hakan
"Run" top menu option, Start debugging. There will come a green play button, step button and some more at some point.
Click left of the line number to add breakpoint. Right-click variable and add to watchlist. And much more
Click left of the line number to add breakpoint. Right-click variable and add to watchlist. And much more
Please Log in to join the conversation.
Time to create page: 0.166 seconds
