µTasker Forum > MODBUS
MODBUS simulation/testing on PC
carlos789:
Hi Mark:
I am using Keil compiler, and the project compiles fine.
But wanting to simulate the project with Visual Studio, leave the following errors:
1>------ Build started: Project: uTasker, Configuration: uTasker Kinetis plus GNU build Win32 ------
1>kinetis.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
1>modbus_app.obj : error LNK2019: unresolved external symbol _fnMODBUS_transmit referenced in function _fnMODBUSuserFunction
1>modbus_app.obj : error LNK2019: unresolved external symbol _fnMODBUS_Master_send referenced in function _fnModbusTest
1>modbus_app.obj : error LNK2019: unresolved external symbol _fnInitialiseMODBUS_port referenced in function _fnInitModbus
1>Tty_drv.obj : error LNK2019: unresolved external symbol _fnRetrigger_T1_5_monitor referenced in function _fnSciRxByte
1>WinSim.obj : error LNK2001: unresolved external symbol _fnMODBUS
1>.\uTasker___Win32_uTasker_Kinetis_plus_GCC_build\uTasker.exe : fatal error LNK1120: 5 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I need to add something?
Cheers
Carlos
mark:
Carlos
If Keil builds correctly you must have the Modbus files at the correct location (in uTasker\MODBUS\). Make sure that you have overwritten any dummy files there to be sure.
Also open the file in VS from its file explorere to ensure that it is using the correct one (and not the dummy one used as a place-holder).
Finally, command a re-build to ensure that the new file is being compiled and the linker should then find these missing functions.
Regards
Mark
Navigation
[0] Message Index
[*] Previous page
Go to full version