#robotics Logs

May 07 2019

#robotics Calendar

12:27 AM rue_shop1: https://www.circuitbread.com/tools/delta-wye-calculator
12:32 AM rue_shop1: zhanx, the RDSon is awesome with those
12:32 AM rue_shop1: for a P channel fet
12:32 AM zhanx: k
06:30 AM yaqwsx: Is there somebody who uses STM32 and was able to use SPI with DMA? I am facing weird behavior. I use DMA to read from SPI. What I observe is that first 4 bytes are read correctly. Afterwards, DMA reads only the first byte. E.g. instead of "ABCDEFGH" I receive "ABCDAAAA".
07:37 AM Jak_o_Shadows: yaqwsx, yes, I have used SPI DMA on a stm32. I used a L4 (through the F4 is very similar)
07:38 AM Jak_o_Shadows: However, I found it pretty simple - the trick for me was to always to read/write transfer, but for write or read only, just set the memory address to a static place, and don't memory increment.
07:39 AM Jak_o_Shadows: Ping me tomorrow if you haveen't got it, and I'll have a look
07:53 AM deshipu: anybody has a favorite 1s battery protection chip?
07:54 AM yaqwsx: Jak_o_Shadows: I use half-duplex SPI, so I do only/read write.
07:55 AM yaqwsx: Jak_o_Shadows: What do you mean by not incrementing? Currently, I do not increment peripheral address, however I increment the memory address
07:55 AM yaqwsx: Here's a snippet of my code: https://pastebin.com/Ah62dE6m
08:22 AM rue_bed: yaqwsx, I was just about to play with that a few days ago
08:35 AM yaqwsx: Jak_o_Shadows: Oh, now I get it. Sorry, I skipped the line "you have to always both read and write" - I thought it does not apply to me as I use half-duplex SPI.
08:36 AM yaqwsx: Once I start both reading and writing, it seems to do something different; instead of "ABCDEFGHIJ" I receive " DEFGDAEBFC"
08:39 AM rue_bed: sounds like the transfer size goes all wrong
02:00 PM mumptai: https://github.com/Nate711/StanfordDoggoProject
04:26 PM veverak: http://squirrel.veverak.org/expanded.png
04:26 PM veverak: I can haz fancy
04:26 PM veverak: ;)
04:26 PM yaqwsx: Jak_o_Shadows: rue_bed: I wasn't able to make it work. Would you mind looking at my code to find something evident I am doing wrong and I am missing it? The relevant files are probably src/main.cpp and src/drivers/spi.hpp in the repo https://github.com/paradise-fi/RoFI/tree/control_board_fw/RoFICoM/software/control_board
04:48 PM yaqwsx: Jak_o_Shadows: I wasn't able to make it work. Would you mind looking at my code to find something evident I am doing wrong and I am missing it? The relevant files are probably src/main.cpp and src/drivers/spi.hpp in the repo https://github.com/paradise-fi/RoFI/tree/control_board_fw/RoFICoM/software/control_board