Search found 12 matches

by jmcornil
Mon Jul 06, 2020 2:44 pm
Forum: ESP32 IDF
Topic: Issue with FreeRTOS, printf and vTaskSuspend
Replies: 5
Views: 368

Re: Issue with FreeRTOS, printf and vTaskSuspend

Hello After printf, I have a similar problem with scanf ()or gets() : none of them waits and let me key in what I want, the program skip to the next instruction. I have read I should use the esp_vfs_dev_uart_use_driver() function but, if I do so, my ESP32 reboots when it reaches the scanf() or the g...
by jmcornil
Fri Jul 03, 2020 7:40 am
Forum: ESP32 IDF
Topic: Issue with FreeRTOS, printf and vTaskSuspend
Replies: 5
Views: 368

Re: Issue with FreeRTOS, printf and vTaskSuspend

Tank you very much ESP_ulipe ans ESP_Sprite for yours replies and specially for the image of the cannon/mosquito ! I realize now that the FreeRtos port on the ESP32 is quite different from what is explained in the "Mastering FreeRTOS" paper. Can one of them send me of reference where I can find info...
by jmcornil
Thu Jul 02, 2020 5:03 pm
Forum: ESP32 IDF
Topic: Issue with FreeRTOS, printf and vTaskSuspend
Replies: 5
Views: 368

Issue with FreeRTOS, printf and vTaskSuspend

Hello everybody I am getting started with FreeRTOS and for my firs try (following the pdf "Mastering FreeRTOS") I made a task which displays a string on the monitor. Since I did not found the vPrintString() int he ESP32 port, I wrote : void vPrintString( const char *pcString ){ vTaskSuspendAll(); //...
by jmcornil
Tue Feb 18, 2020 9:42 am
Forum: General Discussion
Topic: What is and when to use IRAM_ATTR ?
Replies: 7
Views: 13745

Re: What is and when to use IRAM_ATTR ?

Thank you very much for all your replies !

I see a little bit clear about this problem.
by jmcornil
Tue Feb 18, 2020 9:39 am
Forum: General Discussion
Topic: Question about uart_rx_one_char
Replies: 4
Views: 754

Re: Question about uart_rx_one_char

Oh thank you very much !
It was the flow control material which was ON
I put it OFF and all is OK.

But do you know wher I ca find documentation on these ROM functions ?

Best regards
by jmcornil
Mon Feb 17, 2020 11:22 am
Forum: General Discussion
Topic: Question about uart_rx_one_char
Replies: 4
Views: 754

Re: Question about uart_rx_one_char

Hello and thank you for your quick answer You have swapped idy.py for minicom.exe. That's all. I don't understand what you are meaning by "swap". I type idf.py flash and then minicom without .exe for I work with linux Probably your minicom serial port settings are wrong, baud rate, parity etc? If yo...
by jmcornil
Mon Feb 17, 2020 9:47 am
Forum: General Discussion
Topic: Question about uart_rx_one_char
Replies: 4
Views: 754

Question about uart_rx_one_char

Hello everybody As I wanted a mean to drive a program with a simple char key pressed, and after searching the web, I found the uart_rx_one_char and uart_rx_one_char_block functions. In order to wait a char, I can use each of these functions in a task and they work like a charm when I use idf.py flas...
by jmcornil
Sat Feb 15, 2020 4:57 pm
Forum: General Discussion
Topic: What is and when to use IRAM_ATTR ?
Replies: 7
Views: 13745

Re: What is and when to use IRAM_ATTR ?

Hello and Thank you for these great explanations ! But I have a question about the variables used in a such ISR tagged as IRAM_ATTR. I have read in the doc that they must be tagged as DRAM_ATTR. Can someone explain why, and the risk if we do not so ? I tried with a counter increment by an ISR, with ...
by jmcornil
Thu Feb 13, 2020 9:18 am
Forum: General Discussion
Topic: Using MCPWM periferal to generate desired pattern
Replies: 5
Views: 1562

Re: Using MCPWM periferal to generate desired pattern

Hello I think than it is OK with the following init. I use MCPWM but with only one timer : TIMER_0 The three Operator are linked to TIMER_0 On GPIO_PWM0A_OUT, I get your pin1 signal On GPIO_PWM1A_OUT, I get your pin2 signal The third pin is just for me to control I used huge prescaler for i have no ...
by jmcornil
Wed Feb 12, 2020 2:59 pm
Forum: General Discussion
Topic: Using MCPWM periferal to generate desired pattern
Replies: 5
Views: 1562

Re: Using MCPWM periferal to generate desired pattern

Hello

did you try to use MCPWM and an XOR gate ?
  • with TIMER_0, you cant get the first signal : (1 0 0 0) for pin 1
  • with TIMER_1, you can get the two signals : (1 1 0 0) and (1 1 1 0) of which the XOR gives pin 2
Is it not good for you ?

Best regards

Go to advanced search