phail
phail
It is a work in progress, not everything implemented and some parts do nothing which need to be removed. I'd rather use DMA based UART for sure, but unfortunately I...
very nice! Changed the implementation now to DMA USART.
Two easy points to change. Btw, you should also be able to commit to my branch if you like to contribute. Right now I think the use of ifdefs is...
@EmanuelFeru: Can you have a look at my usage of the sending routine? I guess I'm doing something wrong. Receiving is working well, but sending is very unstable.. I guess...
Something is very fishy.. Indeed __HAL_DMA_GET_COUNTER is not ready yet. But when I wait for it to clear, way too much time goes by. Also looks like some Messages are...
Ok, I guess I know whats happening.. I need a buffer. Just sending garbage from reused memory locations
Ok, with a buffer the garbage problem is solved. Still the delay is huge. I have a test setup running a simple ping command. Usually I can see a ping...
Does shutdown work? Can you hear the shutdown melody? (Maybe remove the hardcoded speed value first - otherwise shutdown might get prevented)
change this line https://github.com/NiklasFauth/hoverboard-firmware-hack/blob/f06ce1fcd33c2e9238f2276858ac639fc2b03674/Src/main.c#L80 to `if(1) {` and check if shutdown still does not play the melody. If not check if 12V (on my boards 15V) on the Sensor wires...
Ok, maybe no hw problem :) How did you hardcode the speed? Try replacing https://github.com/NiklasFauth/hoverboard-firmware-hack/blob/f06ce1fcd33c2e9238f2276858ac639fc2b03674/Src/main.c#L224 with `speed = 100;`