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

cross mob

Creating a Bootloader dll for PSoC® 3/ PSoC 4 L-Series / PSoC 5LP - KBA212708

Creating a Bootloader dll for PSoC® 3/ PSoC 4 L-Series / PSoC 5LP - KBA212708

Anonymous
Not applicable

Version: **

Translation - Japanese: PSoC® 3/ PSoC 4 Lシリーズ / PSoC 5LP 用 ブートローダ dll の作成 - KBA212708 - Community Translated (JA)

Question:

1) How to create the Bootloader dll (BootLoad_Utils.dll) for PSoC 3/ PSoC 4 L-series/ PSoC 5LP bootloader host?

2) How to create a dll from a set of C source files using Visual C++ ?

Answer:

  1. Create a new C++ DLL project (File > New > Project > Visual C++ > Win32 Console Application).
  2. Provide a suitable name to the project, such as “BootLoader_Utils’.
  3. Click OK, and then click Next to start the Win32 Application Wizard.
  4. Set Application type to DLL, and Additional options to Empty project. Click Finish.
  5. In the Solution Explorer window, right-click the project name (“Bootloader_Utils”) and select Add > Existing Item… Add the following files from the PSoC Creator folder <install folder>\PSoC Creator\x.x\PSoC Creator\cybootloaderutils:  
       
    • cybtldr_command.h
    •  
    • cybtldr_command.c
    •  
    • cybtldr_parse.h
    •  
    • cybtldr_parse.c
    •  
    • cybtldr_api.h
    •  
    • cybtldr_api.c
    •  
    • cybtldr_api2.h
    •  
    • cybtldr_api2.c
    •  
    • cybtldr_command.h
    •  
    • cybtldr_command.c
    •  
    • cybtldr_utils.h
  6. Right-click the project name (“Bootloader_Utils”), and add a preprocessor definition to the project properties. Select Project Properties > Configuration Properties > C/C++ > Preprocessor > Preprocessor Definitions >  Edit… Insert “_CRT_SECURE_NO_WARNINGS” in the bottom of Preprocessor Definitions.
  7. Compile the project by selecting Build > Build Solution. This creates the file Bootloader_Utils.dll.
0 Likes
1908 Views
Contributors