Search found 57 matches

by JSStabl
Wed Mar 04, 2020 1:34 pm
Forum: Bug Reports
Topic: Getting SPI to work on STM32F7 Topic is solved
Replies: 21
Views: 3659

Re: Getting SPI to work on STM32F7 Topic is solved

Jup, I got that far :) I want the three spi in the high prio-thread to be sent as fast as possible (not waiting for one to finish the sync send of the other) Now trying to figure out if I can a) Call spiStartSend in the high-prio thread and somehow release the mutex of the bus in the callback of the...
by JSStabl
Wed Mar 04, 2020 10:08 am
Forum: Bug Reports
Topic: Getting SPI to work on STM32F7 Topic is solved
Replies: 21
Views: 3659

Re: Getting SPI to work on STM32F7 Topic is solved

Assertions are a runtime thing, the system is stopped in an halt function and a pointer is there to a message. http://chibios.org/dokuwiki/doku.php?id=chibios:articles:debug_guide Giovanni System didn't halt, just SPI5 didn't work. Meanwhile the journey continues :) While I'm still trying to figure...
by JSStabl
Tue Mar 03, 2020 3:58 pm
Forum: Bug Reports
Topic: Getting SPI to work on STM32F7 Topic is solved
Replies: 21
Views: 3659

Re: Getting SPI to work on STM32F7 Topic is solved

Where would the assertion show? I started 1 and 5 and didn't get anything during compile time.
by JSStabl
Tue Mar 03, 2020 3:13 pm
Forum: Bug Reports
Topic: Getting SPI to work on STM32F7 Topic is solved
Replies: 21
Views: 3659

Re: Getting SPI to work on STM32F7 Topic is solved

Did not get an assertion error, it was used in TX for SPI1 and RX for SPI5, could that circumvent the assertion?
You can see the config that did not throw an error in my earlier post.
by JSStabl
Tue Mar 03, 2020 2:46 pm
Forum: Bug Reports
Topic: Getting SPI to work on STM32F7 Topic is solved
Replies: 21
Views: 3659

Re: Getting SPI to work on STM32F7 Topic is solved

Actually on second thought DMA(2,3) is used for SPI1 and 5. Is that an issue? Changing the #define STM32_SPI_SPI5_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 5 ) worked! Thanks for the support Giovanni :) Should we add that as a bugreport as well? Maybe we should throw a warning if the same DMA channels ar...
by JSStabl
Tue Mar 03, 2020 12:35 pm
Forum: Bug Reports
Topic: Getting SPI to work on STM32F7 Topic is solved
Replies: 21
Views: 3659

Re: Getting SPI to work on STM32F7 Topic is solved

Here is the SPI config: /* * SPI driver system settings. */ #define STM32_SPI_USE_SPI1 TRUE #define STM32_SPI_USE_SPI2 TRUE #define STM32_SPI_USE_SPI3 TRUE #define STM32_SPI_USE_SPI4 FALSE #define STM32_SPI_USE_SPI5 TRUE #define STM32_SPI_USE_SPI6 FALSE #define STM32_SPI_SPI1_RX_DMA_STREAM STM32_DMA...
by JSStabl
Tue Mar 03, 2020 11:02 am
Forum: Bug Reports
Topic: Getting SPI to work on STM32F7 Topic is solved
Replies: 21
Views: 3659

Re: Getting SPI to work on STM32F7 Topic is solved

Running a regular CubeMX Example produces results on SPI5, so I assume there is an issue either with my configuration (which I can't seem to find) or the HAL Driver for the STM32F7, whats the best way to debug this? Here are the SPI status bits from the debugger CR1 = {volatile uint32_t} 8 [0x8] CR2...
by JSStabl
Tue Mar 03, 2020 9:29 am
Forum: ChibiOS/HAL
Topic: Understanding PAL and ChibiOS Events
Replies: 3
Views: 952

Re: Understanding PAL and ChibiOS Events

Thanks for the explanation, I figured the play article is correct, since it works. I just wanted to understand why it works the way it does :) Maybe something can be done to differentiate the two different event types? How does the PAL events deal with multiple threads waiting for the same event? I ...
by JSStabl
Mon Mar 02, 2020 5:08 pm
Forum: Bug Reports
Topic: Getting SPI to work on STM32F7 Topic is solved
Replies: 21
Views: 3659

Re: Getting SPI to work on STM32F7 Topic is solved

I actually still have issues with SPI 4 and 5. I can't get them to work, SPI1-3 work fine. I enabled the SPI5 in the mcuconf.h and created a new thread. I took the same configuration as for 1-3 and sent a message, however the I/Os don't do anything at all. Has anybody tested those SPI Channels on Ch...
by JSStabl
Mon Mar 02, 2020 3:56 pm
Forum: User Projects
Topic: Howto: CLion and ChibiOS
Replies: 4
Views: 1922

Howto: CLion and ChibiOS

Since CLion supports OpenOCD it's rather easy to use with ChibiOS. I'm using WSL for the compiler. CLion only accepts CMake Projects as of now, so I'm using a CMake Macro and a compileDB to get Clion to work. Simply add a CMakeLists.txt to the directory. Setup WSL as a compiler (or mingw, cygwin). A...

Go to advanced search