-
Notifications
You must be signed in to change notification settings - Fork 25
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
Gen2.1.16 (ex2.18) - new board / need help on UARTBUS #40
Comments
Sorry I do not get notifications on new issues :-( Pa2 pa3 normally is the master slave UART. I have added a layout very much like 2.0 but different hall pin. This is a quick answer.. |
With uartBus, the gd32 is only responding after a message for its Id has been received. |
Hi, I quickly tried to go back to UARTBus, but again without success. |
So it might be a bug that uart1 is not working for Remote :-/ I do not have a test setup nearby, so I can do no testing for the next weeks. With uartBus you could activate the little debug feature in Then also uncomment this line to start receiving led feedback when a certain code line is reached:
Sorry for the trouble. |
Hi, |
Sorry for my late reply. I used the LED to trace where I get in the code. Problem with CRC? Before that I figured out that iRxDataType is 1 as the LED turns on in:
|
Oh was a mess :-( |
Sorry i have not yet found a way in the Arduino IDE to have a commone hoverserial.h within the github file structure for the different examples. Ideas welcome. |
Thanks for looking into it. Right, the rootcause was in the hoverserial.h. After using the one from the Test_4Wheeler example the UARTBUS is working fine! |
@JochenKr , sorry for all the trouble.
|
Hi, |
not really needed as the tracing of the pins is already complete. |
Ok, I'll provide later |
Hi,
Thanks for this great project and your work to collect all this different boards.
I want to build some vehical and in the end it needs to run 4 wheels.
So I started to get one hoverboard and disassembled it. I found that it has a GD32F130C8, so I found your repository.
The boards I have look quite similar to your 2.0 Board. I did some trace checking, PWM signals match, UART matches on the 4 Pin connector (PA2 and PA3). Only the HALL sensors are a bit mixed up. I changed to below and the wheel is spinning if REMOTE_DUMMY is set.
#define HALL_A PC14
#define HALL_B PF1
#define HALL_C PB11
Picture of the slave Board:
in a next step I tried to communicate with one Board using your Arduino example (Testspeed) and a ESP32.
unluckily I do not get a response and the wheel also doesn't start to spin.
On GD32 side I've configured
#define SINGLE
#define REMOTE_UARTBUS
#define SLAVE_ID 1
#define HAS_USART1
#define USART1_REMOTE
the other options (HAS_USART0 as well) are commented
To watch the signals I'm calling HoverSend(oSerialHover,1,150,1); on the ESP32
The probes in the plots below are connected on the ESP32 side as this is easier. I did probe directly on PA3 of the GD32 one time to check that the 1kR inbetween is not doing something nasty to the signal, but the signal looks identical measuring on that Pin.
Ch1 is showing the TX of ESP32 (connected to PA3 of GD32), Ch2 is showing RX of ESP32. I put a trigger on Ch2, but it keeps high.
Anything wrong in that frame? Anything I missed to configure on G32 side? I'm compiling with Keil 5.38, don't know if this might be of intrest.
hope you can help me on this.
The text was updated successfully, but these errors were encountered: