How to: KSDK-based Modbus RTU Packet Assembler in MQX

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to: KSDK-based Modbus RTU Packet Assembler in MQX

1,768 Views
dave408
Senior Contributor II

This is a document I created that outlines the process for getting a Kinetis processor to assemble Modbus RTU packets under KSDK 1.2 and MQX.  Credit goes to mjbcswitzerland​ for sharing his uTasker approach to this problem.

2 Replies

1,025 Views
dave408
Senior Contributor II

Hi peterfurey​, it doesn't *really* matter where you put those declarations.  I have g_rxbuff[] in Events.c where my PIT ISRs reside.  I put the rx_callback_buff[] declaration in my modbus listener class' implementation file.

1,025 Views
peterfurey
Contributor IV

Hi Dave,

Thank you for posting this, I'm trying to do something similar and its been a frustrating process.

Was curious where you are declaring:

uint8_t rx_callback_buff[256]

and

g_rxbuff[]

Thanks,

Peter

0 Kudos