Hey Alex,
Thanks for the response! That works as well, ended up changing everything to follow the format of:
```
instance_ptr = ((void*)&holding_reg_params + param_descriptor->param_offset - 1);
```
which also works fine.
Thanks for the assistance!
Best,
Spencer
Search found 3 matches
- Tue Sep 17, 2019 7:30 pm
- Forum: General Discussion
- Topic: How to program Modbus Master
- Replies: 10
- Views: 17170
- Mon Sep 16, 2019 11:31 pm
- Forum: General Discussion
- Topic: How to program Modbus Master
- Replies: 10
- Views: 17170
Re: How to program Modbus Master
Hey Alex, Thank you for the response. That does fix the modbus code. It seems the one of the instance pointers is being calculated incorrectly, and the line ```memset((void*)value_ptr, 0, cid_info->instance_size);``` in ```sense_modbus_read_value``` partially overwrites a pointer tied to one of my c...
- Fri Sep 13, 2019 5:26 pm
- Forum: General Discussion
- Topic: How to program Modbus Master
- Replies: 10
- Views: 17170
Re: How to program Modbus Master
Hello Alexey, I appreciate your sharing of the WIP modbus master code here, and was wondering if you could answer a question regarding the code here? It seems whenever my CID table contains more than 32 elements, I start getting assertion failures in the freertos queue implementation when trying to ...