Search found 305 matches

by jcsbanks
Sat Apr 28, 2018 5:09 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 175
Views: 310495

Re: About the CAN controller.

Glad you fixed. Looks like it needs some C preprocessor conditionals.
by jcsbanks
Sat Apr 28, 2018 7:48 am
Forum: Hardware
Topic: About the CAN controller.
Replies: 175
Views: 310495

Re: About the CAN controller.

If you are using menuconfig I think you have to add code to use what is defined there, but I never progressed that method as all it really does is change the pins and I prefer to do that in my code when changing between test boards for quicker compilation. I think it could be the same issue because ...
by jcsbanks
Sun Apr 15, 2018 12:53 pm
Forum: ESP-IDF
Topic: Does esp_wifi_start suspend tasks on the app core?
Replies: 0
Views: 2236

Does esp_wifi_start suspend tasks on the app core?

I get RMT overflows with esp_wifi_start. I drain RMT buffers in a 5ms task and usually only use 1 or 2 of the 64 RMT records, but when WiFi starts I am getting overflow. I am going to try this week to narrow it down and then produce minimal example if I cannot, but would like to know if esp_wifi_sta...
by jcsbanks
Sat Apr 14, 2018 9:21 pm
Forum: Hardware
Topic: CAn controller
Replies: 9
Views: 12432

Re: CAn controller

Good advice, thanks Markus.
by jcsbanks
Sat Apr 14, 2018 8:22 am
Forum: Hardware
Topic: CAn controller
Replies: 9
Views: 12432

Re: CAn controller

Kvaser explain it: Q: What happens if a node is alone on the bus and tries to transmit? A: The node will, of course, win the arbitration and happily proceeds with the message transmission. But when the time comes for acknowledging… no node will send a dominant bit during the ACK slot, so the transmi...
by jcsbanks
Fri Apr 13, 2018 10:35 pm
Forum: Hardware
Topic: CAn controller
Replies: 9
Views: 12432

Re: CAn controller

Markus, wondering from my trace whether retransmission stops when it goes error passive with TXERR.B 128, since it does not go higher and when I reconnect the second node, the message is then received, so it does not reach bus off. I could not see from SJA1000 manual what would happen with retransmi...
by jcsbanks
Fri Apr 13, 2018 1:18 pm
Forum: Hardware
Topic: CAn controller
Replies: 9
Views: 12432

Re: CAn controller

Interesting. Ignore tx_error_count below as unused, but this is the output of a task that prints these values whenever TXERR.B (transmit error counter) has changed. It missed some samples as I had to put in a vTaskDelay(1) at the end of its loop to keep the watchdog fed, but I see SR.ES changing to ...
by jcsbanks
Thu Apr 12, 2018 12:52 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 175
Views: 310495

Re: About the CAN controller.

Not tried them because SJA1000 even in Pelican mode only has two x 16 bit or 1 x 32 bit for filters. I'm going to modify the receive interrupt to populate different queues depending on the CAN IDs as I need to receive on at least six different IDs. It seems common to do it in software with faster mi...
by jcsbanks
Tue Apr 10, 2018 3:42 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 175
Views: 310495

Re: About the CAN controller.

I think you are missing what I put in the post above yours?
by jcsbanks
Wed Mar 28, 2018 8:01 pm
Forum: ESP-IDF
Topic: RMT - simplest receive example working, but idle_threshold problem
Replies: 18
Views: 18884

Re: RMT - simplest receive example working, but idle_threshold problem

After many more days work on this, I think that the errors I was seeing were buffer full based on experimentation with my own 5ms task to process the RMT receive buffer and the error codes I get. The error codes are undocumented. If the ring buffer were able to be implemented in a task instead of an...