Click here to Skip to main content
15,886,067 members
Everything / Operating Systems / Windows / Embedded

Embedded

embedded

Great Reads

by Mike Hankey
Part 2 in an on going series of article featuring an Autonomus Rover
by bbirajdar
How to embed an image in email body
by Alex Robenko
Easy compile-time configurable implementation of binary communication protocols in C++11
by Pansion_chen
Ownerdraw listctrl with transparent background and custermized items image on WinCE.

Latest Articles

by ToughDev
How to install Microsoft Web Deploy on Win7
by ToughDev
How to integrate FatFs FAT filesystem module with CH375/CH376 USB controller
by HenkAlles
Show Simple Log - see the article by Jochen Scharr - in the browser with a nice layout
by Alex Robenko
Easy compile-time configurable implementation of binary communication protocols in C++11

All Articles

Sort by Score

Embedded 

19 Jan 2014 by Mike Hankey
Part 2 in an on going series of article featuring an Autonomus Rover
3 Dec 2013 by bbirajdar
How to embed an image in email body
7 Oct 2020 by Alex Robenko
Easy compile-time configurable implementation of binary communication protocols in C++11
5 Jan 2012 by Pansion_chen
Ownerdraw listctrl with transparent background and custermized items image on WinCE.
6 Jun 2016 by Alexandr Surkov
How to build and run .Net Micro Framework 4.4 on STM32F4Discovery board.
22 Aug 2011 by Vladimir Ivanovskiy
This article shows how to compile and run F# code during runtime.
4 Apr 2017 by grilialex
COFILOS SD Card Driver
18 Jan 2011 by Sergey Alexandrovich Kryukov
Frank, I appreciate your question.I took a look at the article. It is very interesting. Even though it is short, but the problem is not so trivial. At the same time, looking with my unarmed eye I can see, it simply cannot be absolutely universal, so success is based upon some assumption on...
5 Jun 2013 by Thomas Daniels
Hi,Yes, it's possible.Use ILMerge:http://research.microsoft.com/en-us/people/mbarnett/ILMerge.aspx[^]Merging .NET assemblies using ILMerge[^]You can download it from here:http://www.microsoft.com/en-us/download/details.aspx?id=17630[^]
5 Jun 2013 by CHill60
Instead of "moving" an exe around create a deployment package that contains all the dependent stuff you need (this might include config files and other resources for example).Here's a starting point on deployment topics[^]Another one to watch out for is on the properties for references...
9 Nov 2014 by charankumar516
Absolute Beginner's Guide to Arduino
18 Feb 2019 by Apriorit Inc, ruksovdev
A detailed description of an FPGA-specific framework called ISE Design Suite, and the main steps you need to take in order to create a VGA driver using FPGA
4 Mar 2019 by Apriorit Inc, Artem K.
A clear overview on how you can establish communication between a device and its driver
21 Feb 2021 by HenkAlles
Show Simple Log - see the article by Jochen Scharr - in the browser with a nice layout
6 Mar 2024 by Richard MacCutchan
You have a potential hazard in your CustomGetLine function, in the following lines: if (dPtr[0] != cStartChar) { // Skip this line by reading the next one return CustomGetLine(dPtr, n, stream, cStartChar,...
17 Dec 2007 by alex turner
Excel 2007 does not seem to support DBF files, here is a VBScript workaround.
18 Jan 2011 by Espen Harlinn
Hei Frank :)Take a look at http://msdn.microsoft.com/en-us/library/ms742522.aspx[^]andhttp://en.wikipedia.org/wiki/Desktop_Window_Manager[^]Offers an explanation on what's going on. SetParent(appWin, this.Handle);Gets into trouble with WPF based applications (Top...
23 May 2012 by Sergeant Kolja
This is an alternative for "Memory leak detection for WinCE".
20 Sep 2012 by Sreedhar Puligundla
Simple steps to create SQL joins by using SQL Server 2008 Management Studio
4 Apr 2017 by grilialex
To RTOS or not?
25 Jan 2011 by dasblinkenlight
Having programmed all three kinds, I must say that the answer depends a lot on your target platform. For example, programming for iPhone definitely qualifies as embedded, yet the skills you need are nearly identical to what you need to program for Mac. On the other hand, programming custom...
9 Mar 2012 by El_Codero
Hi,hm, does it really open a "new" Window for Chrome and VLC Player?I'm also hosting WindowsForms with Espen Harlinns Solution (SetParent), tried it with VLC and Chrome and it gets emmbedded in window or wpf page successfully.I read the interesting links from SAKryukov and Harlinn and...
19 Mar 2012 by #realJSOP
Add it as a resource that's extracted when the program runs (it's a resource property).
22 Oct 2012 by parths
A couple of changes I would suggest are,The largest positive number is 0x7fff / 0x8000. So instead of dividing by 32767, we need to divide by 32768.Also, change the 'unsigned int F' declaration to 'short'. What this will do is give you the 2's complement negative number which you're looking...
22 Oct 2012 by Jochen Arndt
According to the documentation signed numbers are represented in the two's complement format. To convert them you may use this:// Get the absolute number masking out the sign bitint n = ((msg0 & 0x7F)
11 Sep 2013 by Dave Kreskowiak
Considering the resources are compiled into the running .EXE, you can't modify them. The .EXE file is locked and cannot be modified while the .EXE is running.Another problem you have is that, under Windows Vista, 7 and 8, the Program Files folder your application is installed to is ReadOnly...
19 Nov 2014 by Jochen Arndt
You are probably using gcc which complains about __cdecl which is compiler and processor specific. If your embedded system does not use a x86 CPU you may use an empty global definition to hide it:#define __cdeclHowever, there may be other issues coming up so you should check if you can setup...
25 Sep 2015 by Zoltán Zörgő
Use NModbus[^] See: http://www.mesta-automation.com/modbus-with-c-sharp-libraries-examples/[^]. But you need to see something clear: Modbus/TCP works over TCP/IP, Modbus/RTU works over serial protocols like RS232 and RS485. You can't just mix them. If the digi module is no modbus gateway,...
26 Nov 2015 by Jochen Arndt
It seems that you don't want to use an enum but a structure:typedef struct{ unsigned hb; unsigned mb; unsigned lb;}BunchOBytes;
24 Feb 2016 by Richard MacCutchan
The description at Toolchains - eLinux.org[^] is quite clear.
17 Jan 2019 by Richard MacCutchan
You need to keep at it, there is no substitute for practice, practice, practice. Here are some links: embedded c - Google Search[^].
17 Jan 2019 by OriginalGriff
You can't "download the development tool" for "embedded C" because it isn't one tool: it's a compiler / linker / library package for the specific processor (or processor family) that you want to develop for. And the package for an embedded PIC processor will not work with a Z80 based system,...
15 Mar 2022 by Greg Utas
The term "embedded system" can refer to anything from a toaster to a special purpose server whose source runs to tens of millions of lines of code, so it's hard to say much without knowing what kinds of embedded systems you mean. That said,...
7 Mar 2024 by k5054
You've tagged this with "embedded", so maybe you are running into malloc problems when using fgets. Maybe a better solution would be to use low level open() and read() Something like: #include #include #include ...
27 Dec 2010 by Manfred Rudolf Bihy
If it's possible to get at the instance of the embedded form you may want to try and call its Close() method on your main form's OnClosing event. I figure that way the embedded form's events might be called.Regards,Manfred
25 Jan 2011 by jimd1968
What is the difference in programmnig Real time systems, embedded, and regular (desktop) systems. Is there special training you need to program in c/c++ on one of these systems as opposed to a desktop linux or windows system? Is it the tools used to program? or maybe a combination of the two...
25 Jan 2011 by bigbro_1985
Hi,I'm having some serious trouble attaching the following video from streetfire.net as an embedded player on one of my codeproject articles. The video is located here: http://www.streetfire.net/video/vehicle-accessory-computer-interface_2076357.htm[^]I have inserted the embedded...
25 Jan 2011 by Manfred Rudolf Bihy
Can't reproduce your problem. The video is played just fine. Do you have a functioning internet connection?Best Regards,Manfred
25 Jan 2011 by Espen Harlinn
I've found this quite helpful over the years:ACE[^]You'll find some info about supported OS'es, including Windows CE, pSOS, QNX Neutrino, and VxWorks, here:http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/ACE-INSTALL.html[^]As can be seen from the ACE, TAO, and CIAO Success...
25 Jan 2011 by Sandeep Mewara
Looks lke you have already taken this question to CP Admins here[^]. Kindly follow up there if needed. As such, embedding a video is not supported here for obvious reasons.
13 Jul 2011 by Trevor Johansen
I am working on making my own programmer for 8-bit micros and am wondering if their is anything more flexible than the default finite state machine.I have used FSM's for 16x2 LCD menus and things that generally are set in stone as they are not the easiest to add too some times. I want to be...
18 Jul 2011 by Sergey Alexandrovich Kryukov
Your arguments in favor if Finite-state machine sound very reasonable. If you don't like the tool you tried to use I would suggest you develop your own framework, perhaps much more compact, less general and closed to your application field. Also, you can exclude code generation and rely on...
22 Jul 2011 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.We are more than willing to help...
24 May 2012 by rasmiranjanbabu
Hello friends,I use CODE::BLOCKS in Windows vista.I would like to write a program on USB, that, when a pen drive or something is connected to the USB port my program should warn me that something is connected.I would like to write the same in C or C++ language.Please provide me some...
11 Aug 2012 by Mehdi Gholam
Octal code: 32Decimal code: 26Hexadecimal code: 1A, U+001AMnemonic symbol: SUBBinary value: 11010
8 Nov 2012 by OriginalGriff
Exactly how you do this will depend on what tools you have available, and what programming language you are familiar with.Basically, a 9-pin D type is a serial communications port - it receives data which gets transferred to the system in bytes, which may be binary numbers or characters....
7 Jan 2013 by Sergey Alexandrovich Kryukov
You would better ask the author of this article. Load the article page (follow you own link you provided above), locate the section "Comments and Discussions" and click "Add a Comment or Question" to ask author your questions. The author will receive notification on your post and get a chance to...
9 Apr 2013 by Matthew Faithfull
Looks like you're missing a reference to glibc.Probably a -llibc required in the Makefile somewhere but that stuff is pretty opaque to me.
27 Aug 2013 by Richard MacCutchan
You should learn to read the error messages and correct the issues they are identifying for you.For example:at line 18 you have a type error - have you defined Result?at line 25 you have a semi-colon in the wrong place.at line 30 you have a string that does not have a terminating quote...
9 Sep 2013 by thatraja
SQL SERVER – 15 Best Practices for Better Database Performance[^]OLE DB or ODBC?[^]
11 Sep 2013 by Sergey Alexandrovich Kryukov
tasinsahin wrote:I read that assemblies could be modified on runtime.You can modify the assembly only if its modules are not currently loaded.None of the loaded Windows executable modules can be modified.If the assembly is not loaded, it can be modified, but this is usually (or in almost...
5 Nov 2013 by Jochen Arndt
The slave address is specified in the data sheet of the device. Some devices (mainly memory like EEPROM) have address pins to select sub-addresses. If you want to address an EEPROM the address is 1010xxxR/W where 1010 is the pre-defined base address for EEPROMs, xxx corresponds to the three...
8 Feb 2014 by Dave Kreskowiak
Were you planning on writing your own database engine?? Windows has a small, limited database engine built into it, called the Extensible Storage Engine[^]Your problem is that there is no .NET wrappers that I know of to make using that engine easier in your code. You'd have to implement...
9 Jul 2014 by Ambati Madhu
Actually i am doing a car parking automation system.for that i want to take input from camera and find out white pixels and dark pixels.Now based on those values i can calculate empty slots and allocate to requested users.I am done with every thing except taking input from camera and calculating...
14 Jul 2014 by DrABELL
The following code snippets demonstrates the common practice of reading data from SqlCe file-based Database stored on HDD/SSD (i.e. permanent PC data storage) into DataTable object (.NET, WPF/C# : for simplicity purpose it's using just plain SQL string, no parameters):Listing 1.#region...
8 Mar 2015 by Sergey Alexandrovich Kryukov
FranxCDOFranx wrote:Hey Sergey, if you are referring to me yes I didn't not understand as I am a beginner in this field. I am trying to debug and find the reason for the wrong multiplication. If you want to be more specific to the problem as to how I should debug and fix the algorithm please...
8 Mar 2015 by FranxCDO
As phil.o and Sergey Alexandrovich Kryukov state above, the problem was with the representation of the numbers. The below code works.#include #include #include #include #define LOW_WORD(x) (((x) > 16) #define HIGH_WORD(x) ((x) >>...
27 Apr 2015 by barneyman
ok - some basics ...X509 defines a digital certificate format and its contentsa digital certificate holds identification about its owner, and also holds the PUBLIC key component of PKI keypair - the PRIVATE component is held by the owner, securely, on their machinePKI...
20 Aug 2015 by Sergey Alexandrovich Kryukov
It's something likeconst StructType * myVar1 = reinterpret_cast(0xA000);// ...Also, you can face some problems with alignment of separate members withing your struct and possibility of padding the memory in structure with unused memory fragments, for the sake of access...
22 Sep 2015 by CPallini
You need to be able to design both hardware and firmware. A course in electronic engineering could help.
25 Feb 2016 by CPallini
Bootloaders highly depend on the target microcontroller architecture. You have to:Search for manufacturer's documentation about (e.g. application notes).Look at forums specialized on the target microcontroller.
25 Feb 2016 by Jochen Arndt
There is usually no need to write your own boot loader. Just use the one that is provided by the manufacturer of your microcontroller (there is often an application note). If necessary, you can modify the code to match your needs. Because you are using your controller the first time and are...
21 Mar 2016 by GaneshRfromSpace
I am a beginner to Embedded Systems. I am working on Freescale Kinetis E series controllers. I use Kinetis Design Studio IDE. I wrote a project to blink the LEDS in a customized board. Now I want to make it as a S19 file which I would load to my other project using Terminal Application. Is it...
20 Mar 2016 by Arthur V. Ratz
Here's how to create S19 files:S-Record Generation with gcc for ARM/Kinetis | MCU on Eclipse[^]andConverting S19 Files into Binary Files with GNU objcopy | MCU on Eclipse[^]
8 Apr 2016 by nv3
I am not sure that I understand your question correctly. The problem you are facing is that all your messages have a common header and then some type-specific part. And to send them you want both of these parts in a contiguous buffer. I guess you have two options here:(1) Include the header...
12 Apr 2016 by KarstenK
Normally in a separate file for "clean code development" but in a manner your IDE is translating it fine. The linker takes care to place it in the right position of your binary. Maybe here is some example code for you.
11 Mar 2018 by Maciej Los
Yes, it's possible. Check this: H2 (DBMS) - Wikipedia[^]. At the bottom of page, you'll find a link to h2sharp project: Quote: This project wraps the resulting library with classes that implement the ADO.Net interface to allow for easy use in .Net projects. Sample code[^]: using System; using...
13 Feb 2019 by Dave Kreskowiak
Google for it, if it even exists. It's the exact same thing anyone here is going to do. You might want to find a dedicated stm32 forum and ask there. Go where the experience base for your product is the largest and you might get a better result.
29 Nov 2019 by RickZeeland
WDT+ can be configured to act as either a Watch Dog Timer or an Interval timer, see explanation here: Configuring the registers of Watch Dog Timer (WDT+) in MSP430G2xxxx | xanthium enterprises[^] Quote: ... one of the mode is called as interval timer mode ... The mode selection is done by...
28 Mar 2020 by OriginalGriff
We are not a code conversion service: in addition translating code for one language to one using a totally different framework never gives "good code" in the target language. Instead, find some code that is in the correct language, or learn both...
13 Sep 2021 by Richard Deeming
The AddFontFile method expects the path of a physical file on disk. You cannot pass in a pack: URI, because it doesn't understand that format. And you cannot just call .ToString() on a Stream, since that won't produce any meaningful information. ...
15 Mar 2022 by CHill60
This is a quick answers forum and your questions can't really be answered quickly. I recommend acquiring a good book on the subject e.g. Programming Embedded Systems in C and C++: Amazon.co.uk: Michael Barr: 9781565923546: Books[^] or Embedded C...
25 Apr 2022 by OriginalGriff
Start with the RFID reader manufacturer website: they will have the details - and maybe even sample code - that you need. RS232 is just an unclocked serial link - you need to know the port parameters (baud rate, BPC, stop bits, and parity) before...
25 Apr 2022 by KarstenK
You need to learn C in depth and than try your luck with RS 232. Than you may send some bits to the controller and get some back. Start with some video RS 232 tutorial and search for more. You must also understand threading because that...
18 Aug 2022 by OriginalGriff
USARTs work fine with RS232 - but they need a 232 driver chip as the voltages are very different - USARTs use TTL levels, which run from 0V to at most 5V, while RS232 requires negative voltages and can be between +15V and -15V. Feed that into a...
7 May 2023 by ToughDev
How to install Microsoft Web Deploy on Win7
6 Mar 2024 by CPallini
I compiled your code, getting just the following warning: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 50 | while (uPktlen = CustomGetLine(tempbuf, &PtrSize, pCurrFile, '$', u32Offset)) anyway...
6 Mar 2024 by _Asif_
have compiled your code on Windows and there are no memory allocation issues found. fgets do not allocate additional memory rather it simply copy content from the file stream into the source pointer. Since you already have allocated 5000 bytes of...
21 Nov 2009 by Solj
I am creating a website which has a place for videos to go: http://infate.net/videos/ However I want to show the videos in a table when I get more Example: 3 x 3. And when I get the 10th video page two is created and the oldest video is displayed there. Heres an example: http://www.sk-gaming.com/vid
22 Nov 2009 by Oakman
You are essentially asking for a web architect to design and a developer to program your site for you.  The proper spot to get this kind of help is the Code Project Job Board.  Before hiring anyone, however, I would check and make sure that they frequent Code Project for other reasons than to ask so
16 Jan 2010 by thompsons
Although there are other sites that deal with embedded code articles, it would be nice to have a section that carries such articles on Code Project. The number of members here surpasses that of any other site I know of.Steve Thompson.
16 Jan 2010 by AspDotNetDev
This does not appear to be a question. Perhaps you meant to post your suggestion to Site Bugs / Suggestions?
16 Jan 2010 by AspDotNetDev
Also, there is already a mobile category for articles. That is likely where articles relating to embedded code would go.
4 Feb 2010 by ktpatel
I want to create an application to take screenshot of windows in Windows mobile using .NET 2008 and C#.I choose a device application project in Visual Studio to create this application.Can anybody give me suggestion for this?Thanks!
4 Feb 2010 by #realJSOP
Maybe use google? I found this:http://www.dreamincode.net/forums/showtopic34831.htm[^]
11 May 2010 by kauka
I have an application developed in vb6. I am required to run the application on XP Embedded loaded device.I want to know the process to do this step by step.
12 May 2010 by Christian Graus
VB6 was always rubbish and has been unsupported for nearly a decade. Having said that, a simple google search gave me this:http://www.pcreview.co.uk/forums/thread-523424.phpYou must be in China, I guess, but surely Bing gives the same results ?
19 May 2010 by saurabh.patil@hotmail.com
hi,error:C...
19 May 2010 by Wes Aday
Do you have Microsoft .Net Framework 3.5 SP1 installed?
21 Jun 2010 by saurabh.patil@hotmail.com
i got very vague solutions:option 1use .NET framework 2.0 n its done.(coz System.Data.Entity.dll is copied at ur bin folder automatically)option 2if u want to stick to 3.5 copy System.Data.Entity.dll inbin folder project
15 Jul 2010 by recksiek
Hi,I have a asp.net project with tons of websides. Many of these websides aspx/ascx consists of lines like this:Al in all the resources are found correctly under the...
15 Jul 2010 by Martin Jarvis
Have you looked into the Resource Expression Builder Syntax?]]>http://www.123aspx.com/redir.aspx?res=35521[^]
15 Jul 2010 by recksiek
thanks for the reply. I have looked into the expression builder syntax.I think its possible to create my own resource expression builder and read from the resource dll.What I dont like is that when switching the aspx to designer view there is no default text displayed. Is there a way to do...