Netduino home hardware projects downloads community

Jump to content

The Netduino forums have been replaced by new forums at This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

Adding binary library to the native code


  • Please log in to reply
No replies to this topic

#1 timothyp



  • Members
  • PipPip
  • 24 posts

Posted 02 June 2015 - 03:20 AM

Let's say I compile the following code and compile it to a library for the STM32F4

int GetValue(unsigned char* pBuffer,int nSize)
	int nIndex = 0;
	for(nIndex = 0;nIndex <nSize;nIndex++)
			pBuffer[nIndex] = nIndex;
	return nIndex;

The result is ExampleLib.lib


I then include it in the project file:

<DriverLibs Include="Solutions\NetduinoPlus2\DeviceCode\Example\Example\Stubs\ExampleLib.$(LIB_EXT)"/>

During compile the binary is linked and the firmware builds without any issues, I can deploy it to the Netduino
but as soon as we do it crashes. 


Am I missing something here?


Note: I know I could just include the source code instead, but I want to understand what it takes to include a binary directly



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.