Search found 11 matches
- Fri Nov 15, 2019 11:54 am
- Forum: ESP-IDF
- Topic: Canbus RX does not work
- Replies: 2
- Views: 4528
Canbus RX does not work
I simply connected the TX pin to the RX pin.(So there's no Can Transreceiver.) When I look through the oscilloscope, I can see the continuous data flow.That's why I think the TX pin works. Code is as below. TaskHandle_t _xHandleTransmit; void canbusTransmitTask(void *pvParam) { can_message_t message...
- Tue Nov 12, 2019 9:41 am
- Forum: ESP-IDF
- Topic: Simple Timer Interrupt Not Working
- Replies: 8
- Views: 15589
Re: Simple Timer Interrupt Not Working
When I changed the function from
static void timer_group0_isr(void* arg)
to
static void IRAM_ATTR timer_group0_isr(void* arg)
my problem solved. Thank you to everyone who help.
static void timer_group0_isr(void* arg)
to
static void IRAM_ATTR timer_group0_isr(void* arg)
my problem solved. Thank you to everyone who help.
- Tue Nov 12, 2019 9:08 am
- Forum: ESP-IDF
- Topic: Simple Timer Interrupt Not Working
- Replies: 8
- Views: 15589
- Tue Nov 12, 2019 4:52 am
- Forum: ESP-IDF
- Topic: Simple Timer Interrupt Not Working
- Replies: 8
- Views: 15589
Re: Simple Timer Interrupt Not Working
not workingmartinayotte wrote: ↑Mon Nov 11, 2019 3:11 pmYou need to have your declaration "uint32_t c = 0;" to be volatile, ie "volatile uint32_t c = 0;"
- Mon Nov 11, 2019 12:09 pm
- Forum: ESP-IDF
- Topic: Simple Timer Interrupt Not Working
- Replies: 8
- Views: 15589
Re: Simple Timer Interrupt Not Working
At the beginning you can't use standard logging from isr function, when timer will trigger it it will crash, but you can use ets_printf. Here is very good example how to start: https://github.com/espressif/esp-idf/blob/master/components/driver/test/test_timer.c I changed my isr to : uint32_t c = 0;...
- Mon Nov 11, 2019 11:33 am
- Forum: ESP-IDF
- Topic: Simple Timer Interrupt Not Working
- Replies: 8
- Views: 15589
Simple Timer Interrupt Not Working
I am trying to run timer interrupt with below code. But I can't see the print (printf("timer_group0_isr OK!\n")) I must to see. static void timer_group0_isr(void* arg) { printf("timer_group0_isr OK!\n"); TIMERG0.int_clr_timers.t0 = 1; TIMERG0.hw_timer[0].config.alarm_en = 1; } void timer_tg0_initial...
- Wed Nov 06, 2019 11:13 am
- Forum: ESP32 Arduino
- Topic: open drain output
- Replies: 4
- Views: 19828
open drain output
My first question is: Does all digital pins support open drain? Second is: I'm trying to set the fourth pin as open drain.The arduino code below didn't work. Where am I making a mistake?(Is code OK?) void setup() { REG_WRITE(GPIO_PIN4_REG, GPIO_PIN4_PAD_DRIVER); } void loop() { REG_WRITE(GPIO_OUT_W1...
- Wed Jul 11, 2018 8:28 am
- Forum: ESP-IDF
- Topic: Aes CBC crashes
- Replies: 4
- Views: 6464
Re: Aes CBC crashes
Your answer solved my problem.But When I write print into the task, gives me same error. Full Code: mbedtls_aes_context aes; size_t _length = 16; unsigned char iv[16] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f}; unsigned char key[16] = {0xff, 0x...
- Tue Jul 10, 2018 5:12 am
- Forum: ESP-IDF
- Topic: Aes CBC crashes
- Replies: 4
- Views: 6464
Re: Aes CBC crashes
Can you supply simple aes cbc code example?
- Mon Jul 09, 2018 2:13 pm
- Forum: ESP-IDF
- Topic: Aes CBC crashes
- Replies: 4
- Views: 6464
Aes CBC crashes
This is my code but it crashes: mbedtls_aes_context aes; size_t _length = 16; unsigned char iv[16] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f}; unsigned char key[16] = {0xff, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c...