oh, that is cool!
Sebastien
On 22/04/2024 23:26, Alan C. Assis wrote:
Dear NuttXers,
Probably all saw about it, case don't here it goes:
https://developer.sony.com/posts/apache-nuttx-powers-worlds-smallest-lunar-robot-in-japans-historic-autonomous-lunar-exploration-mission
This is a small st
I am trying to get modbus mastermode rs485 example working on nucleo-f4x1re
following the example on the youtube channel. I am getting undefined
reference errors during linking and am not sure if I need to modify source
or am missing a configuration option. The device I am interacting with is
set
Hi David,
These functions are there (see apps/modbus/mb.c for instance).
Did you follow this video tutorial:
https://www.youtube.com/watch?v=FmJLrG4Ldow
Best Regards,
Alan
On Tue, Apr 23, 2024 at 12:41 PM David Welshon
wrote:
> I am trying to get modbus mastermode rs485 example working on
>
Thanks for the help and great videos and articles Alan!
I just went through the video tutorial again. Unfortunately, modifying my
own config as well as the nucleo-f4x1re:f401-nsh configurations per the
video still can't find the functions
On Tue, Apr 23, 2024 at 12:45 PM Alan C. Assis wrote:
>
I just verified the apps/modbus/Makefile and noticed that mb.c is only
compiled when CONFIG_MODBUS_SLAVE is selected.
It means you are enabling the modbus slave or the modbus example (that
assume to be slave).
So, don't enable CONFIG_EXAMPLES_MODBUS, only EXAMPLES_MODBUSMASTER
Maybe we need to r
When I changed from Modbus ASCII master selected to MOdbus RTU master it
compiled.
Is there extra configuration required for ASCII?
On Tue, Apr 23, 2024 at 1:38 PM Alan C. Assis wrote:
> I just verified the apps/modbus/Makefile and noticed that mb.c is only
> compiled when CONFIG_MODBUS_SLAVE is
Hi David,
Actually ASCII and RTU enable equivalent/symetric functions.
If you search for CONFIG_MB_ASCII_MASTER inside apps/modbus/ you will see
it just calls the ASCII related functions.
The config for RTU will call the binary (RTU) related functions.
Try to disable ASCII master and enable RTU
HI Alan.
The problem is my hardware is using the ASCII protocol. When I disabled
ASCII and enabled RTU it compiled. What I would like is ASCII protocol.
It seems like mb_m.c is for modbus master and something like the following
should be in the makefile in the modbus folder but I could be wrong.
Whoa, you are totally right!
Currently it is this way:
ifeq ($(CONFIG_MODBUS_SLAVE),y)
CSRCS += mb.c
endif
ifeq ($(CONFIG_MB_RTU_MASTER),y)
CSRCS += mb_m.c
endif
But I think it should be:
ifeq ($(CONFIG_MODBUS),y)
ifeq ($(CONFIG_MODBUS_SLAVE),y)
CSRCS += mb.c
endif
now it can't find the header file it seems
make[2]: Entering directory '/home/david/nuttxspace/apps/modbus'
CC: mb_m.c
arm-none-eabi-gcc -c -Wstrict-prototypes -Wno-attributes
-Wno-unknown-pragmas -Wno-psabi -Os -fno-strict-aliasing
-fomit-frame-pointer -fno-common -Wall -Wshadow -Wundef -ffunct
David,
I fixed the header, but it seems someone did a partial port of FreeModbus,
it is missing many functions for modbus ASCII:
mb_m.c: In function 'eMBMasterInit':
mb_m.c:176:33: error: 'eMBMasterASCIIStart' undeclared (first use in this
function); did you mean 'eMBMasterTCPInit'?
176 |
I can help test. I'll have to get a device tomorrow from work first. I'll
let you know when I have it setup.
On Tue, Apr 23, 2024 at 8:09 PM Alan C. Assis wrote:
> David,
>
> I fixed the header, but it seems someone did a partial port of FreeModbus,
> it is missing many functions for modbus ASC
Thank you btw!
On Tue, Apr 23, 2024 at 9:22 PM David Welshon
wrote:
> I can help test. I'll have to get a device tomorrow from work first. I'll
> let you know when I have it setup.
>
> On Tue, Apr 23, 2024 at 8:09 PM Alan C. Assis wrote:
>
>> David,
>>
>> I fixed the header, but it seems someo
13 matches
Mail list logo