Search found 36 matches

by ThomasB
Tue Jun 19, 2018 3:02 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 156
Views: 46690

Re: About the CAN controller.

Nice. Yes, critical sections might make sense. You only need to temporarily deactivate the TX interrupt so no need to disable global interrupts.

PS : you might to want to compare tbs against a value or use TCS. Simply for clean code if people use your snippet.
by ThomasB
Mon Jun 18, 2018 8:50 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 156
Views: 46690

Re: About the CAN controller.

You also might want to try placing the application in the ISR. This is the fastest yet nastiest solution. You might mess up the complete timing behavior of the chip or experience stack overflows. But hey, it would be very fast 8-)
by ThomasB
Mon Jun 18, 2018 8:19 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 156
Views: 46690

Re: About the CAN controller.

Not waking an activated Task in the RX ISR is on purpose. Adding an entry to a queue will set the waiting tasks into READY state. However, there will be no task switch, the RUNNING task stays running. We need a rescheduling point (Yield) to switch tasks. You will find rescheduling points e.g. in the...
by ThomasB
Fri Feb 09, 2018 6:43 pm
Forum: Hardware
Topic: KiCAD ESP32 Component Libary
Replies: 3
Views: 2841

Re: KiCAD ESP32 Component Libary

Cool !
Thanks
by ThomasB
Sun Jan 21, 2018 8:52 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 156
Views: 46690

Re: About the CAN controller.

Lines of code != number of instructions. The code looks different but does the same. As u8 is an array you can use the same syntax like you did in your example. As Rudi says: i do the msg_frame example with a typedef struct it is one line :lol: Using a structure that holds all the information necess...
by ThomasB
Fri Nov 03, 2017 11:02 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 156
Views: 46690

Re: About the CAN controller.

Correct. There is some acknowledgement/error check story going on in the ACK slot of the frame. You should get CAN error IRQs if there is no recipent. Haven't tested it.
by ThomasB
Fri Jul 21, 2017 10:33 am
Forum: Report Bugs
Topic: Win 10 make error liblto_plugin-0.dll
Replies: 2
Views: 1766

Win 10 make error liblto_plugin-0.dll

Hi, I tried to install the toolchain and IDF on a Win10 machine. esp32_win32_msys2_environment_and_toolchain-20170330 ESP-IDF fresh download (21.07.2017) set ESP-IDF path in msys (Works fine on my Win 7 machine) downloaded the hello world example changed serial port in menuconfig make from msys AR l...
by ThomasB
Thu Jun 15, 2017 9:10 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 156
Views: 46690

Re: About the CAN controller.

cool 8-)
by ThomasB
Sun May 21, 2017 4:07 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 156
Views: 46690

Re: About the CAN controller.

Merged
by ThomasB
Wed May 17, 2017 1:36 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 156
Views: 46690

Re: About the CAN controller.

added RTR support: https://github.com/ThomasBarth/ESP32-CAN-Driver The interface changed a little, the Frame Information record is now copied into the frame type. This has the advantage that all the information like DLC or RTR can be copied in a single access, which boosts performance. Also this hel...