UART bootloader host project in VC++

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Attaching the host UART PC application which is designed in VC++ with this post.

   

AN68272 (PSoC 3, PSoC 4 and PSoC 5LP UART Bootloader) available at link http://www.cypress.com/?rID=50230 has an application designed in VC#. This application cannot be used with Windows CE.

   

I am attaching the same application designed in VC++ which you can compile with Windows CE compiler to make it work. Currenlty, this application is working on Windows XP, Vista, 7 and 8.  Source code of application is allso attached with this post.

   

Regards,

   

--Rave

0 Likes
2 Replies
Anonymous
Not applicable

thank you was looking for.

0 Likes
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

najac,

Hi.  I've tried compiling your C++ project in VS 2019.  No luck.

Here are the errors I receive:

1>------ Build started: Project: UARTBootloaderHost, Configuration: Debug x64 ------

1>AssemblyInfo.cpp

1>C:\Users\lpoma\Desktop\UART Bootlaoder\Source code in VC++\UARTBootloaderHost\UARTBootloaderHost\AssemblyInfo.cpp(40,29): warning C4947: 'System::Security::Permissions::SecurityAction::RequestMinimum': marked as obsolete

1>C:\Users\lpoma\Desktop\UART Bootlaoder\Source code in VC++\UARTBootloaderHost\UARTBootloaderHost\AssemblyInfo.cpp(40,29): message : Message: 'Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.'

1>stdafx.cpp

1>UARTBootloaderHost.cpp

1>C:\Users\lpoma\Desktop\UART Bootlaoder\Source code in VC++\UARTBootloaderHost\UARTBootloaderHost\BootloadFunctions.h(84): warning C4091: 'static ': ignored on left of 'Bootload_Functions::Bootload_Utils::CyBtldr_CommunicationsData' when no variable is declared

1>C:\Users\lpoma\Desktop\UART Bootlaoder\Source code in VC++\UARTBootloaderHost\UARTBootloaderHost\Form1.h(332,23): warning C4101: 'Ex': unreferenced local variable

1>C:\Users\lpoma\Desktop\UART Bootlaoder\Source code in VC++\UARTBootloaderHost\UARTBootloaderHost\Form1.h(341,23): warning C4101: 'Exc': unreferenced local variable

1>C:\Users\lpoma\Desktop\UART Bootlaoder\Source code in VC++\UARTBootloaderHost\UARTBootloaderHost\Form1.h(379,1): warning C4817: 'System::Array::Length': illegal use of '.' to access this member; compiler replaced with '->'

1>C:\Users\lpoma\Desktop\UART Bootlaoder\Source code in VC++\UARTBootloaderHost\UARTBootloaderHost\Form1.h(498,35): warning C4101: 'ex': unreferenced local variable

1>C:\Users\lpoma\Desktop\UART Bootlaoder\Source code in VC++\UARTBootloaderHost\UARTBootloaderHost\Form1.h(505): warning C4700: uninitialized local variable 'status' used

1>.NETFramework,Version=v4.0.AssemblyAttributes.cpp

1>LINK : fatal error LNK1104: cannot open file 'C:\Users\namn\Documents\Visual Studio 2010\Projects\BootLoad_Utils_dll\Debug\BootLoad_Utils.lib'

1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(847,5): error MSB6006: "link.exe" exited with code 1104.

1>Done building project "UARTBootloaderHost.vcxproj" -- FAILED.

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

In effect, it aborts the build due to not finding the file 'C:\Users\namn\Documents\Visual Studio 2010\Projects\BootLoad_Utils_dll\Debug\BootLoad_Utils.lib'

Len

Len
"Engineering is an Art. The Art of Compromise."
0 Likes