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

Embedded 

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...
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 ...
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,...
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 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 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 Jun 2023 by S.Soundar
Program hangs in printf(). void UART0_ISR(void) interrupt 4 { if (RI == 1) { RI = 0; TI = 1; Count = 444; datau[temp] = SBUF; // Read receive data SBUF = 0;// datau[temp]; ...
6 Jun 2023 by Charlie Chang 2022
UART interrupt routiing set TI = 0 will cause printf crashed, I use sprintf and below uart_sendstring to replace printf to avoid crash. If didn't set TI = 0 in UART interrupt routing, It will cause the UART interrupt to continually occur at the...
7 May 2023 by ToughDev
How to install Microsoft Web Deploy on Win7
3 May 2023 by ToughDev
How to integrate FatFs FAT filesystem module with CH375/CH376 USB controller
20 Apr 2023 by honey the codewitch
This is a weird question, but there are many embedded developers I've spoken to on these forums. So hopefully the right eyes find this. I'd like to source say, an NXP iMX6Solo, or maybe an AllWinner H616 or some other ARM Cortex A with HDMI and...
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...
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.
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.
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...
18 Oct 2022 by Waqas Ch
void delay() { TCNT1H = 0; TCNT1L = 0; OCR1A= 15625; TCCR1A = 0; TCCR1B = 0x05; while((TIFR1&(1
18 Oct 2022 by Rick York
How are we supposed to know? There is no timer visible in this excerpt of code. What is going to happen is the processor is going to spin in the while loop until the OFC1A bit is set in TIFR1. The bit shift operator (
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 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...
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...
1 Aug 2022 by Charan Kumar N
I'm using USART for RS232 communication and I'm receiving only two characters of whatever I send through RS232 port I'm not sure what's the problem ,please help me guys,.... What I have tried: void ism_rs232_handler(void) { uint32_t...
1 Aug 2022 by KarstenK
My best guess is that you missed some multithreading, so the COM port has no time to receive more data. Best is to use some own reading thread which enques the data for the main UI thread. Collect the data til some packet is complete and than...
19 May 2022 by OriginalGriff
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 grades and it wouldn't be at all fair for...
25 Apr 2022 by Charan Kumar N
I have a RFID reader which gives output in rs232 and I want to create a task for reading the data whenever a person scans the RFID card can anyone help me with how to create a task for this ? What I have tried: Not familiar with the task creation
25 Apr 2022 by merano99
embedded, C, RFID I have a RFID reader which gives output in rs232 and I want to create a task for reading the data whenever a person scans the RFID card can anyone help me with how to create a task for this ? 1. You want a Thread listen to the...
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...
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...
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,...
15 Mar 2022 by Member 15314815
I have some C, C++ programming skills which can be utilized for building embedded applications in real time. I am working on learning C, C++ programs for developing embedded applications in real time. As I do not have full time work experience in...
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...
30 Dec 2021 by Krayfighter
I have an application that uses cppyy. I have a header file containing a wrapper for sfml's RenderWindow so that the python instance can access those graphics. The C++ header file graphics.hpp with the following contents #include...
30 Dec 2021 by Krayfighter
I have searched for a while and found that the sfml shared objects had to be loaded into the context of the python script I made a new file "graphics.cpp" with one line in it which is #include then compile it with this g++...
9 Dec 2021 by Dragos Ginjoveanu
I am looking for a c++ compiler that I can integrate into a page from my website. It means that a user could write and compile c++ code on the website. What I have tried: Until now, I've found that I can do this using...
9 Dec 2021 by Dave Kreskowiak
You can use just about any C compiler you want. I haven't seen one yet that isn't command-line driven. Like 'Griff said, you better be DAMN careful about how you compile code from an untrusted user and even more careful about the account you use...
9 Dec 2021 by OriginalGriff
The GDB compiler / debugger works, as is shown on their online compiler site: Online C Compiler - online editor[^] - and it works for loads of languages! Be aware though that you are running one heck of a risk if you aren't careful: part of the...
13 Sep 2021 by mojtabahakimian
I use C# WPF and Stimulsoft I want to send path my font file was embedded to my report when need to show I have embedded font in my WPF Project and I use it like this : in XAML :
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. ...
30 Jul 2021 by Muhammad Azym
Hi,My question would be weird so I do apologize for that. I am going to implement Modbus RTU Master and Modbus TCP Master in an electronic device Called "DiGi Module Connect Me 9210". From this device I will request some data from PIC, data like Nodes and Temperatures and Some other...
7 Jul 2021 by durmus
I have 3 firebird databases in my project. A master database and 2 slave databases. What I need to do is to save some records in the main database to the slave databases and I have to do this at certain times. For example, every 30 minutes... I...
22 May 2021 by Shadababe04
I want to write the macro to print my message on the uart terminal. In my MCU series API uart_print_user_msg((uint8_t *)"\r\n user mesage"); or uart_print_user_msg((uint8_t *)buf); i.e buf is char array pass to the function. is it possible to...
22 May 2021 by KarstenK
#define MY_PRINTF uart_print_user_msg should do the job. I dont like macros, because of strange errors and debugging huzzle. Avoid them, and use functions. The compiler and linker will produce the same code so the advantages arent so great as...
12 May 2021 by KlingCan
>I have c# application that reads email, i read xml and pdf file when i have no Embedded attachments. When i tried to read pdf from Embedded attachement, the code only reads .bmp, jpg files. My code string strFiltro = String.Format("SINCE...
16 Apr 2021 by Zwelon
I was trying to do Coding the vehicle to detect and count markers by PIC18F4550. The sensing using a Photo-Reflective Optical sensor mounted at an appropriate position underneath the vehicle. Markers implemented by using strips of black tape....
11 Apr 2021 by Dave Kreskowiak
If you have no idea how to even start this project, you've got a massive problem for which you're not going to find any useful help in any forum anywhere. Based on what you posted, it's coming across that you've never written a line of code in...
11 Apr 2021 by OriginalGriff
We are more than willing to help those that are stuck: but 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 grades and it wouldn't be at all fair for us...
11 Apr 2021 by Richard MacCutchan
If you are seriously saying that you have no idea how to work this assignment, then you have a problem. Go and talk to your teacher and explain that you need extra tuition. But you cannot expect someone else to do it for you. Firstly because you...
4 Apr 2021 by Lalnashi
HI All I am an embedded software engineer, and through out the years I have used many IDEs at work. However, I have a few embedded Evaluation boards at home and I want to tinker with them I have an: * Infineon XMC-2Go kit running an...
21 Feb 2021 by HenkAlles
Show Simple Log - see the article by Jochen Scharr - in the browser with a nice layout
7 Oct 2020 by Alex Robenko
Easy compile-time configurable implementation of binary communication protocols in C++11
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], ...
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.
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...
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...
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...
29 Nov 2019 by Member 14608858
while writing values to the registers in microcontrollers we write directly a value to the register such as initializing the gpio pins and again the other way is providing bit values to the registers such as stoping the watchdog timer, kindly explain why these two methods are available and which...
29 Nov 2019 by CPallini
Generally speaking, you can directly initialize registers because they are memory mapped. Hence you assign a value to a variable and the corresponding bit pattern is set into the target register (and viceversa in a read operation). Quote: and again the other way is providing bit values to the...
5 Nov 2019 by evan1138
I'd like to know if, and then how, to embed HTML and javascript into a Word 2010 document so as to for instance change a font depending on contents of an external file. The HTML and javascript of course will not show in the word document, thll just be lurking and will run when the document is...
3 Sep 2019 by phil.o
I guess you have to activate the sheet programmatically then: Worksheet.Activate method (Excel)[^]
3 Sep 2019 by Member 14575813
getchart element function in excel vba code not return data until the sheet containing the embedded chart activated once What I have tried: Private Sub Image3_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single) On Error Resume Next Const...
22 May 2019 by Member 13719433
I'm trying to connect to an embedded H2 database via ODBC What I have tried: I have tried the PostgreSQL ODBC driver but I don't know the specific parameters (Specially, the Server)
13 May 2019 by H.AL
I am trying to display a PDF on browser but it is not shown if Adobe was disabled in ADD ons in IE (or when user has not installed Adobe on his PC). I don't want to force users to download PDF to view the PDF of my website. I need to write a solution compatible with the 3 browsers: IE, Firefox...
15 Apr 2019 by Member 12444281
Hi I have written the code for serially send data transmission between PC-hyper-terminal and PIC16F877A. When I am using MP LAB IDE Hitech C compiler its showing the error like pointer is required and any of you please check the code and register description is correct or notWhat I have...
15 Apr 2019 by Gokul G Lekshman
void string_uart(char *q) { while(*q) { tx(*q++); } }
4 Mar 2019 by Apriorit Inc, Artem K.
A clear overview on how you can establish communication between a device and its driver
4 Mar 2019 by raddevus
Intro and Chapter 1 - In this book, we will learn basic electronics as we build our first circuit, learn what electronic components do and finally build our own devices.
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
14 Feb 2019 by dabuskol
Hi, My application is already sending email with embedded image, but this time the images were all stored in a database. I can't figure it out on how to read and process the stored image to be part of the email. Thanks in advance What I have tried: below code is for reading image from...
14 Feb 2019 by Gerry Schmitz
Like Richard said: how to send embedded image mail in body that stored in database[^]
13 Feb 2019 by Member 14050287
Hello everyone, I am looking for a javascript engine for the stm32 microcontroller.so I was wondering if someone can suggest a good engine for stm32f4 or other stm32 families. Thank you in advance. What I have tried: I found some options for embedded systems but they are mostly implemented...
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.
22 Jan 2019 by Member 10850253
I have a problem embedding a swf in my website. The swf is a dynamic image gallery, and fetches the images with an xml file. I tried using relative and absolute paths, but I am still unable to load the swf. Can someone please help me? This is the site: cosecha-verde.000webhostapp.com And this...
17 Jan 2019 by Member 14121272
I learned c language using visual studio. Now i want to learn embedded c programming. Please provide your suggestion to learn embedded c. which website to download the development tool. Is there any tutorial website to learn embedded c. thanks in advance your help will be most...
17 Jan 2019 by raddevus
Arduino and the following book are your best bet for learning this: AVR Programming: Learning to Write Software for Hardware (Make: Technology on Your Time): Elliot Williams: 9781449355784: Amazon.com: Books[^] I mention this book because it takes you one step further down toward the metal...
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,...
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[^].
8 Sep 2018 by Member 13977781
my limitation is i can send udp socket data in one port ,and my requirement is i want to recieve same data in another port.how it possible??? is there any setting or script for this problem? What I have tried: No solution is found in any of the case , please help.
8 Sep 2018 by Jochen Arndt
That makes no sense on a single system. If you have received data once there, you can do with the data what you want so that there is no need to use another listener on a different port. If you refer to different systems, you have to send the data multiple times to each listening system. If all...
1 Aug 2018 by MateoGlowinski
Hi:) I've problem with SIM900 module. Seems to me that it's not able to maintain a connection. What i know this firmware is supporting europe (i come from Poland). SIM has no PIN code and it's properly working on smartphone. Firmware version: SIMCOM_Ltd SIMCOM_SIM900B...
4 Jul 2018 by Member 13130683
I'm programming Kiosk based payment system that contains from Cashflow(MEI), Printer (CUSTOM) and screen. I want it will work in windows in ubuntu. So I 'm writing it in Qt5. Is there any guides to perform this work? What I have tried: I'm tried QT5, libusb, MPOST, libserial, serialgate.
4 Jul 2018 by Gerry Schmitz
Unity is cross-platform. Windows, Linux, Android, UWP, XR, 2D, 3D, ...
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....
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...
8 May 2018 by Thaana Paana
I've seen many ways of doing this but never got a real answer. I'm trying to achieve something similar to FVD Firefox downloader plugin. When you load a page you get access to the videos and images and etc... But I can't read embedded images and videos. I don't know how. I want to know how FVD...
7 May 2018 by RmcbainTheThird
Have you looked at putting the application in the startup group?
6 May 2018 by Member 10395084
I want to automatically starting run my application C# front when screen on Desktop appear use Windows Embedded Standard 7 SP1. I chose packet: -Unbranded Startup Screens -Custom Logon Desktop Background Images -Hide Boot Screens package. Can anyone tell me how to change the shell such that...
26 Apr 2018 by Jochen Arndt
This is rather unclear without knowing what you have done so far. But all you have to do is sending data that indicates which button has been pressed. This requires the definition of a "protocol" that defines the meaning of the data transferred via SPI.
26 Apr 2018 by Member 13799356
Hello every one . I want to blink three different Led with master and slave avr eith spi protocol I have interfaced the two avr with spi protocol the problem is when i press one of the three push buttons the three leds blinks. Because the receive condition is the same for the three leds . So i...
18 Apr 2018 by Member 13786831
So i'm creating a website for Multi streaming twitch streams just like [DELETED] My problem is that i only know basic html and i don't have a clue what i'm doing. Twitch provides embed links for both stream and chat for every chanel on there. In my head it's really simple. In code i am so...
18 Apr 2018 by OriginalGriff
Quote: My problem is that i only know basic html and i don't have a clue what i'm doing. And that is the problem. HTML will only allow you to create basic, static, websites - and that isn't what you are trying to do. To create complex websites, you need to understand more: starting with...
22 Mar 2018 by Rick York
First, since this is the Q&A section, always remember to ask a question. You need to revise the CHECK case in your switch statement to something like this : case CHECK : Flag = true; // initialize to true for( int i=0; i
22 Mar 2018 by H W
when i run this function now that has a case to check whether the password is correct or not it looks like it compares the first element and ignore the rest this is in c void Enter_password(){ key= get_key(); if (key >= 0 && key
21 Mar 2018 by CPallini
Your code should be enclosed in a neverending loop void Enter_password() { for (;;) { key= get_key(); if (key >= 0 && key
11 Mar 2018 by tonywilk
Not 'Just Another Parser', this reads elements from JSON simply and without memory overhead in C
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...
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...