AX58100

More
19 Nov 2025 10:41 #338712 by Hakan
Replied by Hakan on topic AX58100
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
 
Attachments:
The following user(s) said Thank You: tommylight, vibram, COFHAL

Please Log in or Create an account to join the conversation.

  • vibram
  • Away
  • Senior Member
  • Senior Member
More
29 Nov 2025 20:07 - 29 Nov 2025 20:46 #339446 by vibram
Replied by vibram on topic AX58100
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 

This browser does not support PDFs. Please download the PDF to view it: Download PDF

Attachments:
Last edit: 29 Nov 2025 20:46 by vibram.

Please Log in or Create an account to join the conversation.

More
29 Nov 2025 20:47 #339450 by Hakan
Replied by Hakan on topic AX58100
That should work. It's a 16-bit encoder counter so be prepared to handle overflow.
TIM2/TIM5 are 32-bit so better to use that when you do your own. There is only one 32-bit though.
 
The following user(s) said Thank You: vibram

Please Log in or Create an account to join the conversation.

  • vibram
  • Away
  • Senior Member
  • Senior Member
More
01 Dec 2025 08:49 #339564 by vibram
Replied by vibram on topic AX58100
Hello,
Not sure to understand correctly:
You can have both TIM2 and TIM5 32bits encoders running in the same time right?
But it has to be on a custom board

Please Log in or Create an account to join the conversation.

More
01 Dec 2025 13:41 #339582 by Hakan
Replied by Hakan on topic AX58100
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.

Please Log in or Create an account to join the conversation.

  • vibram
  • Away
  • Senior Member
  • Senior Member
More
01 Dec 2025 13:50 #339587 by vibram
Replied by vibram on topic AX58100
understood, thank you.
I will look for tutorials as i'm beginner with this technology

Please Log in or Create an account to join the conversation.

  • vibram
  • Away
  • Senior Member
  • Senior Member
More
06 Dec 2025 12:17 #339789 by vibram
Replied by vibram on topic AX58100
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?

Please Log in or Create an account to join the conversation.

More
06 Dec 2025 12:28 #339790 by Hakan
Replied by Hakan on topic AX58100
Sure, let's do that.

Best to start your own thread I guess.
I propose you do it in two steps
1. get encoder working
2. ethercat.
 
The following user(s) said Thank You: vibram

Please Log in or Create an account to join the conversation.

  • vibram
  • Away
  • Senior Member
  • Senior Member
More
06 Dec 2025 12:49 - 06 Dec 2025 13:38 #339792 by vibram
Replied by vibram on topic AX58100
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 :)
Last edit: 06 Dec 2025 13:38 by vibram.

Please Log in or Create an account to join the conversation.

More
06 Dec 2025 13:45 - 06 Dec 2025 13:46 #339793 by Hakan
Replied by Hakan on topic AX58100
"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
Last edit: 06 Dec 2025 13:46 by Hakan.
The following user(s) said Thank You: vibram

Please Log in or Create an account to join the conversation.

Time to create page: 0.185 seconds
Powered by Kunena Forum