Search found 31 matches

by mustaq_ahm
Mon Dec 06, 2021 12:39 pm
Forum: General discussion
Topic: UART communication between two microcontrollers using DMA.
Replies: 18
Views: 7453

Re: UART communication between two microcontrollers using DMA.

Sure. Thank you so much. I will look into all of it.
by mustaq_ahm
Thu Dec 02, 2021 8:37 pm
Forum: General discussion
Topic: UART communication between two microcontrollers using DMA.
Replies: 18
Views: 7453

Re: UART communication between two microcontrollers using DMA.

ag123 wrote: Thu Dec 02, 2021 7:50 am For multitasking, there is the 1 line scheduler

Code: Select all

loop() {
void *tasks[] = { &task1(), &task2(), &task3(), NULL };
void *task;
int i=0;
while(task = tasks[i++] != NULL) *(task)();
}
I will also try this. Lets see.
by mustaq_ahm
Thu Dec 02, 2021 8:35 pm
Forum: General discussion
Topic: UART communication between two microcontrollers using DMA.
Replies: 18
Views: 7453

Re: UART communication between two microcontrollers using DMA.

Okay, got it. Got a major idea of what and how is DMA working. Will look into it in more detail. Thanks all for your patience and guidance for me to succeed further. Thanks to everyone who replied. :D
by mustaq_ahm
Tue Nov 30, 2021 8:26 pm
Forum: General discussion
Topic: UART communication between two microcontrollers using DMA.
Replies: 18
Views: 7453

Re: UART communication between two microcontrollers using DMA.

https://stm32f4-discovery.net/2017/07/s ... using-dma/ I have read this already. What I understand from this: If the receiving data is larger than receive buffer, then this DMA will be used to avoid the loss of data. {but as mentioned by ag123 with ring buffer (I do not lose any data) [also I do no...
by mustaq_ahm
Tue Nov 30, 2021 4:27 pm
Forum: General discussion
Topic: UART communication between two microcontrollers using DMA.
Replies: 18
Views: 7453

Re: UART communication between two microcontrollers using DMA.

oh normally, uart with stm32duino(s) don't lose data, as i'd think when data is received, an interrupt fires and stm32duino puts that data in the queue (ring buffer), so that the next time Serial.read() runs, it pulls that from the queue. the exception is if the mcu is *too busy* a mcu with a uart ...
by mustaq_ahm
Tue Nov 30, 2021 3:38 pm
Forum: General discussion
Topic: UART communication between two microcontrollers using DMA.
Replies: 18
Views: 7453

Re: UART communication between two microcontrollers using DMA.

that's how dma is avoided. What do you mean by DMA is avoided? normally u'd need to design a *protocol* that sends data wait for ack, if it timeout send it again. I agree, I have made a similar protocol as you described along with CRC (simple checksum stuff.) in UART asynchronous mode via RS485. Bu...
by mustaq_ahm
Tue Nov 30, 2021 2:47 pm
Forum: General discussion
Topic: UART communication between two microcontrollers using DMA.
Replies: 18
Views: 7453

Re: UART communication between two microcontrollers using DMA.

Thank you so much. Just for my clear understanding and clarification, I am asking this again! So, STM32 is capable of Multitasking with the help of DMA?
by mustaq_ahm
Tue Nov 30, 2021 11:16 am
Forum: General discussion
Topic: UART communication between two microcontrollers using DMA.
Replies: 18
Views: 7453

Re: UART communication between two microcontrollers using DMA.

Okay, let me be more clear here. I have implemented a library for a custom made PCB board with stm32f103c8t6 with lots of functionalities (All the functionality were explained as follow (The board has 6 General Purpose Output (using built internal GPIO pins) with all necessary electronics to drive ...
by mustaq_ahm
Tue Nov 30, 2021 9:05 am
Forum: General discussion
Topic: UART communication between two microcontrollers using DMA.
Replies: 18
Views: 7453

Re: UART communication between two microcontrollers using DMA.

Thanks for your reply. Is there any example done in stm32f103c8t6 with an official stm32 core in Arduino or something similar?
by mustaq_ahm
Mon Nov 29, 2021 3:59 pm
Forum: General discussion
Topic: UART communication between two microcontrollers using DMA.
Replies: 18
Views: 7453

UART communication between two microcontrollers using DMA.

Hello, :D I am using Stm32f103c8t6 with Offical core with HID bootloader. I am working on Visual Studio Code IDE using Microsoft Arduino Extension. Is it possible to make use of UART communication in DMA without disturbing the Loop function which will be running in CPU or Flash Memory? If so, How ca...

Go to advanced search