Search found 15 matches

by Xela
Mon Apr 16, 2018 5:37 pm
Forum: Development and Feedback
Topic: [NEW] Improved PAL driver with synchronous API
Replies: 10
Views: 1997

Re: [NEW] Improved PAL driver with synchronous API

If I understand the example code, it is demonstrating the use of events. In the first example application it demonstrates polling for an event. The second application demonstrates issuing an event in a callback that is triggered by an interrupt (the main while loop also listens for the event). It is...
by Xela
Mon Apr 16, 2018 2:17 pm
Forum: Development and Feedback
Topic: [NEW] Improved PAL driver with synchronous API
Replies: 10
Views: 1997

Re: [NEW] Improved PAL driver with synchronous API

I have been following some example to write an interrupt handler, but failed to compile with the following: ./os/hal/ports/STM32/LLD/EXTIv1/hal_ext_lld.h:30:29: fatal error: hal_ext_lld_isr.h: No such file or directory That has led me to this forum thread. Are the 'events' referred to in this demo m...
by Xela
Tue Mar 20, 2018 1:24 pm
Forum: Small Change Requests
Topic: SPI Slave Driver
Replies: 29
Views: 5684

Re: SPI Slave Driver

Now that I have my master side built up, I don't quite have this working yet. It is likely a configuration issue though I am not 100% certain I understand the behavior of this function in terms of execution and program flow. This spiStartSendI() will send a byte to the SPI buffer via DMA. The loadin...
by Xela
Mon Mar 12, 2018 11:58 am
Forum: Small Change Requests
Topic: SPI Slave Driver
Replies: 29
Views: 5684

Re: SPI Slave Driver

Thank you very much plyatov! That is a great help.

Alex
by Xela
Fri Mar 09, 2018 5:14 pm
Forum: Small Change Requests
Topic: SPI Slave Driver
Replies: 29
Views: 5684

Re: SPI Slave Driver

I'd like to bump this thread as I need to do the same thing. I have implemented plyatov's method of adding a switch in the spiConfig to bypass the hard coded MSTR setting on the SPI_CR1. I'm not sure which chibi spi methods I should call to handle a transaction of data from the salve to the master. ...
by Xela
Thu Jan 11, 2018 5:01 pm
Forum: STM32 Support
Topic: SPI1 and SPI2 DMA conflict?
Replies: 1
Views: 385

SPI1 and SPI2 DMA conflict?

I have a couple of threads reading from different devices, one is on SPI1 and the other is SPI2. My code is crashing and after doing some reading I am beginning to think the conflict is in the DMA. There are no shared resources between threads and they won't work unless I reduce the priority of one ...
by Xela
Tue Dec 05, 2017 7:03 pm
Forum: General Support
Topic: Thread to thread communication - Mailboxes - Mempools and dereferencing
Replies: 4
Views: 846

Re: Thread to thread communication - Mailboxes - Mempools and dereferencing

Thank you for the quick response Giovanni

I will look into the Objects FIFO.

Thank you
by Xela
Tue Dec 05, 2017 5:07 pm
Forum: General Support
Topic: Thread to thread communication - Mailboxes - Mempools and dereferencing
Replies: 4
Views: 846

Thread to thread communication - Mailboxes - Mempools and dereferencing

I am currently trying to implement a producer/consumer data flow between two threads. At some point in the future these threads will be converted to ISRs. I am assuming it is possible that I can implement this in a way that works in both contexts (thread/ISR). I have one thread that gets samples fro...
by Xela
Wed Oct 18, 2017 11:33 am
Forum: STM32 Support
Topic: STM32F030F4
Replies: 27
Views: 5088

Re: STM32F030F4

The combination of compilers works just fine:

gcc version 5.4.0
gcc version 5.4.0
arm-none-eabi-gcc-4.9.3

I was just using my debugger incorrectly :lol:

Alex
by Xela
Fri Oct 13, 2017 3:55 pm
Forum: STM32 Support
Topic: STM32F030F4
Replies: 27
Views: 5088

Re: STM32F030F4

I have this same issue with chThdSleepMilliseconds not returning, it is stuck in waiting for interrupt. I have installed: gcc version 5.4.0 gcc version 5.4.0 arm-none-eabi-gcc-4.9.3 Which is the recommended solution here? roll back gcc and g++ to 4.7 or replace arm-none-eabi with gcc-arm-embedded or...

Go to advanced search