Search found 1267 matches

by victor_pv
Wed Jun 28, 2017 3:11 am
Forum: General discussion
Topic: Non blocking SPI DMA - Added callback to the SPI DMA functions (dmaSend, dmaTransfer...)
Replies: 66
Views: 1400

Re: Non blocking SPI DMA - Added callback to the SPI DMA functions (dmaSend, dmaTransfer...)

Instead of all of this, wouldn't it be enough to add `yield()` to the while loop that waits for the DMA to finish? That will do a context switch for you while waiting. Daniel I'm not sure I understand your suggestion, so correct me if I'm wrong, but you suggest to use FreeRTOS taskYIELD() is that r...
by victor_pv
Tue Jun 27, 2017 10:04 pm
Forum: Projects
Topic: Anyone tried to make a 3D Printer controller?
Replies: 223
Views: 16271

Re: Anyone tried to make a 3D Printer controller?

I think ideally someone should design a board we can plug to an F4, either directly or with flat cables. The majority of components in a ramp are thru-hole, so should be easy to order a batch of boards and the components and start assembling them.

Any volunteer for that?
by victor_pv
Tue Jun 27, 2017 7:31 pm
Forum: Projects
Topic: Anyone tried to make a 3D Printer controller?
Replies: 223
Views: 16271

Re: Anyone tried to make a 3D Printer controller?

The ST one is one I linked above too. That seems much more recent than the markelabme one, and is confirmed to work. I even found someone posted in a forum saying they have been using that board with that fw successfully for a while. I had a look at it, and the changes are not so big or so many. Amo...
by victor_pv
Tue Jun 27, 2017 6:23 pm
Forum: Projects
Topic: Anyone tried to make a 3D Printer controller?
Replies: 223
Views: 16271

Re: Anyone tried to make a 3D Printer controller?

I think these purple board make good candidates too, because of their small footprint, although they lack some peripherals included in the black boards: http://www.ebay.com/itm/STM32F4-Discovery-STM32F407VGT6-ARM-Cortex-M4-32bit-MCU-Core-Development-Board-/262675840220?hash=item3d28b33cdc:g:t-cAAOSw...
by victor_pv
Tue Jun 27, 2017 3:35 am
Forum: General discussion
Topic: Non blocking SPI DMA - Added callback to the SPI DMA functions (dmaSend, dmaTransfer...)
Replies: 66
Views: 1400

Re: Non blocking SPI DMA - Added callback to the SPI DMA functions (dmaSend, dmaTransfer...)

I just tested with my test sketch and can use the callbacks successfully with both SPI1 and SPI2 with the code in the post above, which is based in the latest from Roger's repo. For my test I used my old wav player test code, it uses FreeRTOS 900. DMA is running 3 peripherals, SPI1, SPI2, and a time...
by victor_pv
Mon Jun 26, 2017 3:08 pm
Forum: General discussion
Topic: STM32F103 performance when using non blocking DMA
Replies: 23
Views: 286

Re: STM32F103 performance when using non blocking DMA

I don't have much time, but I do have a host of other F103 MCUs, up to the RFT6. If you post the full sketch in github and what connections I need to do (like a loop in the spi miso mosi, or whatever else, short of a logic analyzer at 36mhz as I dont have one) I can run it in different mcus in the s...
by victor_pv
Sat Jun 24, 2017 9:15 pm
Forum: General discussion
Topic: Combining Blink & Count to the bootloader
Replies: 33
Views: 393

Re: Combining Blink & Count to the bootloader

I am thinking it may be easier to: 1.- Take maple mini and wipe it clean. 2.-Load bootloader. 3.-Load blink or whatever example sketch. 4.-Download the flash until the end of actual code with st-link and there you have a merged bin that can be uploaded. If the question is how to do this for every va...
by victor_pv
Sat Jun 24, 2017 9:10 pm
Forum: General discussion
Topic: Issue with FreeRTOS example on mini maple clone
Replies: 2
Views: 85

Re: Issue with FreeRTOS example on mini maple clone

Which example are you using, which version of RTOS, and finally which core?
If you post links to what you are using on github it would be the most helpful.
by victor_pv
Sat Jun 24, 2017 9:02 pm
Forum: General discussion
Topic: Non blocking SPI DMA - Added callback to the SPI DMA functions (dmaSend, dmaTransfer...)
Replies: 66
Views: 1400

Re: Planning to add callback to the SPI DMA functions (dmaSend, dmaTransfer...)

Made some necessary changes to be able to build it. I did not test the new functions, only the old (original) DMA ones, they seem to work. Thanks Steve, I just finished compiling it and found similar errors and corrected them too. I'm uploading the new. It's pretty much the same changes you had to ...
by victor_pv
Fri Jun 23, 2017 7:21 pm
Forum: General discussion
Topic: Non blocking SPI DMA - Added callback to the SPI DMA functions (dmaSend, dmaTransfer...)
Replies: 66
Views: 1400

Re: Planning to add callback to the SPI DMA functions (dmaSend, dmaTransfer...)

Resurrecting this thread to add the code. I tested the functions extensively and the only problem I ever found was when using SPI1 at 36Mbit with DMA, as posted above. I verified problem would happen whether using callback or not. Now, the version I am posting is not the one I tested. I had to redo ...