Click here to Skip to main content
15,891,864 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 Title

Embedded 

23 May 2012 by Sergeant Kolja
This is an alternative for "Memory leak detection for WinCE".
30 Dec 2007 by Amer Chaudhry
.NET and J2EE interoperability for .Net Developers
18 Jun 2020 by Member 14867519
I want to use .NET core IoT library in order to run C# code for my SAMA5D27 SOM1 EK1 ARM embedded board. GitHub - dotnet/iot: This repo includes .NET Core implementations for various IoT boards, chips, displays and PCBs.[^] I have build this...
26 Mar 2015 by Member 11559850
i am always confused..RAM is temporary n ROM is permanent..as ROm stores the instruction about booting instruction, and we also say we have 4Gb RAM already our system is built up with 64bit n 32 bit than how does this "RAM" effect ? when we download a file is it taken care by ROM or RAM ? if we...
26 Mar 2015 by CPallini
Yes, RAM is (usually) temporary while ROM is permanent. ROM is not writable.RAM size is measured in bytes, hence 4 GB are the same on machines with different (32 bit vs 64 bit) architectures.
26 Mar 2015 by TheRealSteveJudge
When you load a file, its contents are stored somewhere in RAM.It makes no sense to run a 32 bit OS on a computer with 16 GB RAM,as the 32 Bit OS cannot use but 4 GB of it.Running a 64 bit OS on a computer with only 4 GB RAM also makes no senseas a 64 BIT OS needs more RAM than a 32...
26 Mar 2015 by OriginalGriff
RAM and ROM are different things (and generally, you don't get ROM anymore, it's Flash RAM these days so it is easier to update - true ROM requires a physical replacement of the chip(s))ROM contains a minimum subset of the instructions to "work" the hardware: it interfaces with the keyboard,...
17 Feb 2014 by OriginalGriff
It doesn't quite work like that.We do not do your work for you.If you want someone to do your work for you, you have to pay - I suggest you go to VWorker.com and ask there.But be aware: you get what you pay for. Pay peanuts, get monkeys.
18 Aug 2013 by Member 10217445
sir/mam i need programming code for single axis solar tracking system using linear actuator using PIC16F877A or micro controller 8051, please guide me, if possible then u can also send link of program and whole program in my email id [DELETED]@gmail.comcomponents used in my project is:solar...
18 Aug 2013 by OriginalGriff
It doesn't quite work like that.We do not do your work for you.If you want someone to write your code, you have to pay - I suggest you go to VWorker.com and ask there.But be aware: you get what you pay for. Pay peanuts, get monkeys
18 Aug 2013 by Zoltán Zörgő
Do you really expect somebody to figure out what you have in your mind, and make it for you just for fun? By the way, it would cost lot more to buy the boards, develop the code and test the whole installation than buying a ready-made kit like this:...
18 Aug 2004 by Sprotty
An introduction to XML Data Binding, and a review of a number of leading products.
10 Jan 2013 by Joezer BH
Heya fellow CoProjs, We need a good solution for an in-memory DB (not a hybrid solution, a pure in-memory one). We run a server farm on strenuous efforts of several weeks at a time, in which we use 100% CPU on all continuously!We are now looking into performance improve by moving the...
10 Jan 2013 by Mehdi Gholam
Try the following site : http://nosql-database.org/[^]
22 Jan 2013 by Joezer BH
Solved!After benchmarking around 8 of the top solutions in the market, We've come up with Oracle's TimesTen, and McObject's eXtreneDB as suiting for the job, just to get the impression of things: both answer for over 300,000 inserts per second!Prices are around $100K-$400K depending on...
7 Sep 2011 by Frédéric Pailloux
Nice 7/16/Matric Segment LCD Control derived from CStatic and using GDI+ library
1 Jan 2008 by Steve-Low-NextwaveSoft
A button with a shiny orb effect on mouse hover.
7 Jan 2008 by Jarl Ostensen
A finite field EC and simple ECC scheme in C++ to help understand the principles.
30 Nov 2006 by Nick Alexeev
This class is a thin MFC wrapper around Win32 API for reading/writing INI files.
29 Oct 2009 by Dan Bloomquist
'Disk Operating System' suitable for very small systems
8 Jul 2011 by rj45
For performance reasons, I decided to write my own XML parser.
26 Dec 2007 by Marc Clifton
Understanding value and ref types for equality tests and as keys in collections
2 Nov 2004 by Alain Rist
CZoomScrollImpl extends WTL CScrollImpl to allow continuous zooming.
22 Feb 2016 by Alex J Lennon
How to build example 3rd party component for inclusion in a Yocto/OpenEmbedded Linux image.
11 Jun 2006 by Sandip Dalvi Tung
This code is very useful when you want to auto increment number using A-Z and 1-9 with possible combinationYou can pass any string and system will return next possible number e.g. You can Pass number "PRO01A9" then You will get "PRO01B1"
20 Apr 2023 by CPallini
Use Serial.Print(Seconds) and check the output using the serial monitor. It is a cheap & quick way to gain some insight.
20 Apr 2023 by glennPattonWork3
Hi All, Wasn't using the counter correctly, wasn't using
20 Apr 2023 by glennPattonWork3
Hi, It seems that the millis() counter is incrementing when it shouldn't. It's displaying 5831 for the number of seconds when at most it has been 31, there is a reasonably accurate temp monitor. I'm guessing the 58 could be due to the LCD driver...
22 Dec 2007 by YangXiaoWang
An apple style docking bar implemented by eGui lib
19 Jan 2014 by Mike Hankey
Part 2 in an on going series of article featuring an Autonomus Rover
27 Oct 2004 by Chad Z. Hower aka Kudzu
In this article, I’ll explain how you can easily store and retrieve your application settings with just a few lines of code
6 Apr 2008 by Jeffrey Walton
Encrypt data using Block Ciphers with Crypto++.
28 Mar 2008 by Kam
An Arcball module using CsGL in C#.
26 Nov 2015 by lukeer
Hi forum,does anyone know of a resource covering arithmetic on aggregated types?I'm using addition like this:typedef struct{ uint8_t hb; uint8_t mb; uint8_t lb;}BunchOBytes;BunchOBytes Add(BunchOBytes in0, BuncOBytes in1){ BunchOBytes result; uint16_t...
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;
11 Dec 2007 by James Sullivan
In this article, I would like to share my experience and knowledge about ASP.NET Caching and how it can improve your website performance.
29 Jun 2020 by Member 14875971
Hello, we are developing software for a 'Smart Device' for WEC2013 using VS2013. Basis is a C++ ATL COM Project (ATL Simple Object with Connection points) using the 'Smart Device' specific SDK, which results in a DLL. That DLL is referend by a...
29 Jun 2020 by Richard MacCutchan
You cannot use a null GUID to refer to a COM interface. Check the actual value that it use to register itself.
23 May 2011 by 01.mandar
i am using Atmel AVR UC3 L0 (Board)Atmel AVR ATAVRSBIN1 (Sensor Board)AVR Studio 5sensors_xplained-1.0.1.zip (Sensor header files)AVR-SoftwareFramework-2.4.0 (not needed as per the document)i have seen the documentation for all of above and done accordingly.AVR UC3 L0 code runs...
11 Jun 2013 by RadXPictures
So, I have two projects: a library and a console app. In the library, I have the following function declaration:std::string NewApp::Testing(){ char* test[] = {"test", 0}; PyObject* obj = Python::Py_Arg("test", "test", test); std::string s = PyString_AsString(obj); return...
20 Jun 2013 by The_Inventor
I can see something here:std::string NewApp::Testing(){ char* test[] = {"test", 0};//Here you have a char* array called 'test' set to the string of characters "test", ending with the null character '0'/// PyObject* obj = Python::Py_Arg("test", "test", test);// Here you have 3...
15 Dec 2007 by Joss
This project will show you how to make a program that randomly chooses a background image when you log on, and either lets you simply select a background, or randomly chooses one for you every minute to an hour.
11 Jun 2011 by grilialex
A Round-Robin OS (without pre-emptive multitasking) allowing rapid application development
8 Jul 2011 by Member 8015046
I am a CS student who is becoming a sophomore. Currently I am working as a summer intern and I need help. My supervisor is ok for me using this website because he is busy with his own work. So I am only doing trivial work.I have a class library that has a web refrence of my web service I...
8 Jul 2011 by Christian Graus
The only reason I can see for it to be a bottleneck is if you store big files in it and have a lot of users. I would expect SQL Server to outperform the other options you mention. If you keep your SQL simple, if you use SQL Server and have problems with it, you can move your DB to another type...
8 Sep 2014 by Pragmateek
"MCSD Certification Toolkit (Exam 70-483): Programming in C#” - book review
2 Aug 2004 by Mubbasher Adeel
14 Dec 2005 by ravi_pothuraju
This Article discuss about windows embedded Studio and how to develop custom windows embedded xp operating system for a device using Microsoft Embedded Studio
19 Mar 2012 by CelestialCoder
I have a C# application with a flash advertisement. But the swf file should be in the application folder in run time.How can I "embed" the swf file in the exe so that it is not visible to the user. For dll files I think I can find an application. But can we bundle dll and swf with exe from...
19 Mar 2012 by #realJSOP
Add it as a resource that's extracted when the program runs (it's a resource property).
8 Apr 2016 by lukeer
Hello fellow CPians, as part of an attempt to pass messages back and forth between two µCs, I created Message_t. To send such a message, user has to tell the sending function, how many bytes to transfer.I'd like to have a notation for Message_t that has a message type declared in one...
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...
24 Nov 2010 by mikecrooks
your right about the fist sentence. a count of 50 would equal 500msthe problem is that the height is an unsigned int and not sure the calculated values fit into the data type.the display takes 4 arguements namely LCD0, 1 2 and 3. so to display you must Display_LCD(LCD0, LCD1, LCD2,...
30 Nov 2010 by mikecrooks
Test_time = Test_time/10;jump_height = ((98*(Test_time*Test_time))/ 80); LCD0 = jump_height/1000; LCD1 = (jump_height/100)%10; LCD2 = (jump_height/10)%10; LCD3 = jump_height%10;I don't really want to divide test_time by 10 as this affects the resolution. The...
24 Nov 2010 by Richard MacCutchan
I'm not sure I agree with your first sentence; if the integer increments once every 10ms then the value of 5000 should mean 50,000ms.Breaking your equation down:timesquared = time ^ 2 (assuming you mean time squared?)interimtime = timesquared * 9.8h = interimtime / 8so if time =...
22 Nov 2011 by :)9/11
if (yourmum = buttonState.pressed) setvibration(playerindex.me,1,69)else { fatness++; }if (fatCountingUp > 300kg); (setBiggestLoserShow = true);else { (setBiggestLoserShow = MEGAtrue); }if (codDisc = broken); (YouDumpGirlfriend);else { ...
22 Nov 2011 by Pete O'Hanlon
At the end of the setvibration line, you don't have a semi colon. You need to add one so that it looks like the following:if (yourmum = buttonState.pressed) setvibration(playerindex.me,1,69); // This line needs the semi colon,.else { redIntensity++; }Next, you terminate the...
27 Dec 2007 by Asya Alshaikh
show how to call a web services inside ASP.NET web project. using a test published web services; Extentrix Web Services 2.0 Application Edition
9 Mar 2018 by BetaEngineer
Hello, I want to know if there is a really good (yet free) software tool which can analyse my C code (which i have written based on PIC and 8051/52 controllers), can find possible coding mistakes and also check MISRA Compliance... What I have tried: I know about PC_LINT, LINT, SPLINT.. but...
9 Mar 2018 by KarstenK
You wont find a good and free code analysis tool. Normally code analysis is included in the IDE in which you are programming. The best way of avoiding bugs is to have some clear, simple and plain program flow. The parameter should be checked at input in your code (like when data is read from...
27 Aug 2014 by BCN-163
I can get a IHTMLDocument2 interface from IE in the following method.UINT nMsg = ::RegisterWindowMessage( _T("WM_HTML_GETOBJECT") );::SendMessageTimeout( (HWND)hwnd_parent, nMsg, 0L, 0L, SMTO_ABORTIFHUNG, 1000, (DWORD*)&lRes );CComPtr spDoc;hr = ObjectFromLresult( lRes,...
30 Oct 2015 by Ramiien
I am doing CAN first time using C++: I am using API function to initialize CAN. Function for API CAN intialization is as following/// /// Initializes a PCAN Channel/// /// "The handle of a PCAN Channel"/// "The...
2 Nov 2015 by Ramiien
to access DLL file. use Loadlibrary() and GetProcAddress()for example check this linkhttps://www.c-plusplus.net/forum/128715-full
1 Apr 2023 by OriginalGriff
Quote: Tried some code, but not working. While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your...
1 Apr 2023 by Richard MacCutchan
A quick Google finds Visual TFT - Part 2: Events, buttons, check boxes[^]
1 Apr 2023 by User 15226833
Hi everyone. Can someone provide an example code for touchable button on TFT display for Mikromedia for PIC18FJ? I'am completly new to this. Thanks advance. What I have tried: Tried some code, but not working.
18 Aug 2022 by Charan Kumar N
I'm trying to use USART to receive continous data from RS232 port and not able to receive all the data. What I have tried: I previously tried using UART for RS232 port and the data was receiving properly but when I try to use it using USART the...
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...
18 Aug 2022 by merano99
Quote: using UART for RS232 port and the data was receiving properly As OriginalGriff noted, logic levels usually differ. The above statement leads me to believe that either it is not a simple UART, or the RS232 does not follow the rules. USART...
6 Mar 2024 by Charan Kumar Oct2022
I have written a simple c program as below where we are trying to read line by line data by using fgets() and we skipping the lines which doesn't start with character '$' , the problem I'm facing is I'm getting error as fgets: Cannot allocate...
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...
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,...
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 ...
8 Mar 2024 by merano99
The program cannot function in the above form. It is immediately apparent that the offset would have to be a reference if the main program is to work sensibly as suggested. In addition, it seems urgently necessary to use a size_t as the data type...
8 May 2000 by Gert Boddaert
Do you want to change a Host name, DHCP or static IP settings?
21 Jul 2013 by GiZmoDragonBack
Hi,I have to use a script language for an embedded program which is written in C. So far I know that there are several option available such as Python, Ruby, Lua and Java.The software is running under a LEON2 SPARC microcontroller. I am using as a breadboard platform the spacecraft...
23 Jul 2013 by KarstenK
Consider consulting the LEON" SPARC manual or experts. They know better what is useful and stable. The runtime of the language must work on the system.I personally would prefer Python over Ruby, and avoid Java and Lua.
5 Jan 2008 by Mike Hankey
A utility to uncover the mysteries of the Clipboard, now with a data injector that allows you to pass various data formats to the Clipboard.
5 Jan 2013 by Vimalsoft(Pty) Ltd
Coding an N-Tier application in C# without using Wizards.
28 Aug 2013 by Sergey Alexandrovich Kryukov
"I'm having difficulty in writing program/coding" simply means you have nothing. You got some hardware which you did not create, and now you have no idea how to do programming. It means you did nothing. Now you want something to help you, who did nothing, with programming. It's not going to be...
4 Apr 2017 by grilialex
COFILOS SD Card Driver
30 Jan 2013 by Happy user
Hi you all of the communityI am actualy working in an C++ embedded project, but not very happy with our system wide error handling implementation. Due to limited ressouces of our system, the compiler does support try/catch.So what I am looking for is a good practice concept to rise...
30 Jan 2013 by Matthew Faithfull
OK I don't have an off the shelf complete solution for you. My Renesas single core controller must still be in the post but I can describe the approach I take.I have one error table per module which is essentially a static data array of structs:-static sError ErrorTable[] = { { ERR1,...
7 Dec 2007 by sdk_codemaker_2005
Creates User Information from Input into a Text File - C#
21 Feb 2017 by Member 13016063
i=0while (i
21 Feb 2017 by Patrice T
When you don't understand what your code is doing or why it does what it does, the answer is debugger.Use the debugger to see what your code is doing. Just set a breakpoint and see your code performing, the debugger allow you to execute lines 1 by 1 and to inspect variables as it execute, it...
28 Jun 2018 by Richard MacCutchan
Classes do not exist in C, so all the class methods must be put into inline functions. Class variables need to be declared wherever they are needed. Unless you are reasonably proficient at both languages this could be a difficult task. You could also try convert c to c - Google Search[^] as...
28 Jun 2018 by CPallini
Quote: I am not a pro at either C nor C++ . I was able to convet the basic protocols which are just a very small part of the code Then change processor. Seriously. Unless it is a very trivial code, you have to be proficient in both C++ and C in order to accomplish the task.
28 Jun 2018 by Member 13890789
Hello all, I have this working code in C++,but I am working on a new prototype with basically same circuit but different processor, for which I need the program in C. I do have a API references and examples in C for the processor , but converting a program is definitely not included in it....
15 Aug 2020 by Alpit_Abrol
import RPi.GPIO as GPIO class keypad(): def __init__(self, columnCount = 3): GPIO.setmode(GPIO.BOARD) # CONSTANTS if columnCount is 3: self.KEYPAD = [ [1,2,3], [4,5,6], ...
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...
9 Apr 2016 by NightWizzard
Handling for hex expressions and the trailing '}'
28 May 2011 by grilialex
Flow and tools to convert Xilinx bitstreams to C source code for programming FPGA/CPLD
27 Jan 2013 by Richard MacCutchan
You need to write (or implement) a language parser, that will convert the user input into your target commands. Take a look at http://www.antlr.org/[^] for some information.