Search found 9 matches

by NIghthunter101
Sun Aug 01, 2021 11:18 pm
Forum: Hardware
Topic: Modbus Crash
Replies: 11
Views: 9398

Re: Modbus Crash

I ended up reinstalling esp-idf from scratch and redoing the code. Since then I haven't had any problems with Modbus.
by NIghthunter101
Sun Jul 25, 2021 11:29 pm
Forum: Hardware
Topic: Modbus Crash
Replies: 11
Views: 9398

Re: Modbus Crash

@ESP_alisitsyn

Since running the commands you suggested I can no longer even build it. Whenever I try to build I get a bunch of errors related to stdatomic.h

Thanks
by NIghthunter101
Thu Jul 22, 2021 6:23 am
Forum: Hardware
Topic: Modbus Crash
Replies: 11
Views: 9398

Re: Modbus Crash

This is what I got when I ran git log -n 2 # git log -n 2 commit 7504329ef9fb01f01a382416af7453c54b47fb2b (HEAD, origin/release/v4.0) Merge: c2f9002b03 f3f1190959 Author: Jiang Jiang Jian <jack@espressif.com> Date: Fri Jun 25 11:45:15 2021 +0000 Merge branch 'bugfix/fix_amsdu_fragment_vulnerability_...
by NIghthunter101
Thu Jul 22, 2021 12:30 am
Forum: Hardware
Topic: Modbus Crash
Replies: 11
Views: 9398

Re: Modbus Crash

@ESP_alisitsyn

I couldn't get the file to checkout and trying to apply the attached one gives a bunch of errors saying patch does not apply and a few no such file or directory.

I don't know if it's relevant but mine is so old I'm using msys32 and make (instead of idf.py).

Thanks
by NIghthunter101
Mon Jul 19, 2021 7:33 am
Forum: Hardware
Topic: Modbus Crash
Replies: 11
Views: 9398

Re: Modbus Crash

@ESP_alisitsyn here is the information

1. v4.0-dev-512-g6fd535c98-dirty

2. 20 registers

3. Attached

4. Yes RS485

Thanks
by NIghthunter101
Thu Jul 15, 2021 4:35 am
Forum: Hardware
Topic: Modbus Crash
Replies: 11
Views: 9398

Modbus Crash

I'm trying to communicate over modbus with a ESP32-WROOM-32D but I keep getting crashes while trying to read it. I've based my code on the modbus code in the examples and it works reliably until it randomly crashes. I always get one of the two following crash logs; assertion "eSndState == STATE_TX_I...
by NIghthunter101
Mon Feb 10, 2020 10:25 pm
Forum: Hardware
Topic: Controlling TMC2209 Driver
Replies: 1
Views: 5519

Controlling TMC2209 Driver

I'm using a Trinamic TMC2209 driver to control a stepper motor but to use the more advanced features it needs to be controlled via UART. I'm trying to just read the first register but I can't get the TMC2209 to respond to my command. Does anyone have experience using UART to control Trinamic stepper...
by NIghthunter101
Thu Feb 06, 2020 5:22 am
Forum: ESP-IDF
Topic: Send bytes over UART
Replies: 3
Views: 6255

Re: Send bytes over UART

uart_write_bytes needs a char not uint8_t. Is there a different function I should be using or do I have to make something new?
by NIghthunter101
Thu Feb 06, 2020 3:59 am
Forum: ESP-IDF
Topic: Send bytes over UART
Replies: 3
Views: 6255

Send bytes over UART

I'm trying to control a TMC2009 driver over UART and I need to send the commands as bytes but I only seem to be able to send characters. What do I need to change to get it sending bytes not characters? I've got the following code for the UART, int sendData(const char* logName, const char* data) { co...