Embedded Questions
Ad
About Keil software simulation
I have problem with nvic registers in keil. in my data sheet nvic starts with nvic_iserx
Raw and TCP Socket plug in Same Vlan Cause Communication Problem in Device
Hi i have an embedded device which is 2 different port. one is communicate with raw socket another device. other port is using tcp/ip packet type.
Is there a way to find the address of a const variable in the map file?
I am writing embedded c-code with the segger embedded studio for a nordic nrf52840 microcontroller. after compiling my code, i get a .map-file and
Cast the return value of a function that returns a casted type
I want to know from compiler perspective what happens when a casted type is returned to a function which also typecast the returned value. i want
what does something like 0400:0130h mean for register location?
I've been trying to develop with devkitarm and only notable guide is coranac's tonc, everything's fine but i can't get what it means when some
What are for square brackets in an addressed-of pointer?
I've been searching for a while what are for square-brackets in an addressed-of pointer, but i continue without understanding it. here are the
Visual Studio 2019 debug embedded targets. How to force VS to not treat it as a windows executable
I am trying to set up cmake arm uc (stm32) embedded project in the vs 2019. project buils ok but i struggle to start the debug session.
Function pointer cast as void without being called
While perusing some stm32 middleware code, i came across this very odd line and can't parse it. it's basically,
How to run each "function" in a code section?
I want to be able to declare function so that they are added to a specific code section and then they are all executed before my start function.
What is the predominant programming language used for the F35 Lightning II aircraft?
I understand ada was used for the f22. what is the principal language for the software on the f35?
Ad
How to get started with embedded systems in the aircraft or submarine industries?
Not 100% sure how to frame this question but here goes... i currently work as a rails developer but want to work on more substancial /
Biquad Filter Example Implementation in C
I am developing a low pass biquad filer for an embedded system. searching for examples in c, i came up to this link on stanford university's
How to use a declared global variable in another global variable Array without any error in STM32 Cube IDE?
I am developing a firmware for the pcb which i developed. the micro controller which i used is stm32f401rct6. i am using swd interface and
Is "(unsigned int *) 0x400253FCU" a pointer in the TI Stellaris Microcontroller header file <LM4F120H5QR.h>?
Background: i'm learning embedded system programming. during the process i have learn that "pointer" is a most
Why is mmap failing with EINVAL when offset is non-negative (but is a multiple of sysconf(_SC_PAGE_SIZE))?
Firstly a bit of context about the machine i'm working on (it's a som with a soc that includes a fpga and two cpu, and on one of them there is a
Const in function on constrained devices
I just have a short question about memory management in c on constrained devices. generally speaking: global const variables end up in the flash
How can a task wait on multiple vxworks Queues?
We have a vxworks design which requires one task to process both high and low priority messages sent over two message queues. the messages for
Texas Instrument CLA float inverse trick - What is its purpose
I have this piece of code written by somebody else that runs on a ti tms320 command law accelerator. so it's optimized in size and speed.
Learning kernel hacking and embedded development at home?
I was always attracted to the world of kernel hacking and embedded systems. has anyone got good tutorials (+easily available hardware) on
How to convert array of char into array of int?
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "stats.h" /* size of the data set */
Read txt file in Resorces folder using vb.net
My goal is to store a txt file in the resources folder of a vb.net application i added the dir.txt file with project > project properties
Ad
How to call an added APK to androidthings image
I am working with this project
FreeRTOS can't set isr routine as critical region
I am running freertos on a nrf52840 i have 2 interrupts running and my rtos crashes if i enter in an interrupt while in another oneto
Why are my variables not updating in node.js?
I have built a webapp with node.js to receive messages from an sns topic via post request and log them to the console then display them on the
Can I initialize a std::array<uint8_t with a string literal?
I write a lot of c code interacting with instruments using uart serial ports. i'm starting a new project where i'm trying to use a more object
Building capicxx-core-runtime for Android
We are trying to build capicxx-core-runtime for an arm based platform running android pie. it's an open source ipc framework which is
How to find the serial port in Ubuntu?
I am using the cantact toolkit for sending can message. the following code performs denial of service attack by sending a message
Your Flutter application is created using an older version of the Android embedding
Recently i opened my old project and there is a warning right now that nothing like this was happening before warning looks like
How to convert EJS Template's table column's strings in dd-mm-yyyy Formats?
I am rendering through ejs template like this and table data coming from database
Is HAL_UARTEx_RxEventCallback Size parameter calculated programmatically or by hardware
I'm realizing uart-dma with stm_hal library and i want to know if message size is counted by hardware (counting clock ticks till line is idle for
Is there a way to make the version of V8 JavaScript that my google script uses constant?
A rookie here. messing with my google scripts projects i have found a strange thing, a method that i was using was strike-through in the
Ad
uart receive interrupt serial port terminal for stm32
I've been trying to implement a kind of emulator for my code from serial port terminal. i am sending the data from the terminal with uart receive
Please explain CEFPython3
I'm a beginner in python/kivy and i want to add a web view widget to my kivy application. after thorough searching, i believe using cefpython
Shutdown Jetty - ShutdownHandler vs stop()
There are several questions about shuting down jetty here on so but they are almost 10 years old and do not fully cover my question. i have
What is the difference between Flutter Android Embedding V1 and V2
I am working on a plugin for flutter with background stuff. recently, i faced somethings about flutter android embedding in
Why am I getting "undefined reference to `_stat`" in the sys/stat.h library?
I'm trying to use the stat() function in the `#include <sys/stat.h> library however whenever i call it i get this error:
getting all file names within a resource package and working for nonjar and jar running
I already apologize for the so unprecise titel but this problem has to be under special circumstances. i am currently writing a little
Why are my floats not printing in C but my ints are?
My floats aren't printing to the console in c and i don't know why. ints print fine so i'm confused why floats are. code below:
Reason for volatile nonstatic local variable in C
Refer to the following code: void calledfunction(volatile uint8_t **inptr); volatile uint8_t buffer[] = {0,0,0,0,0,0}; volatile
What is the replacement of strcmp sscanf and sprintf in embedded system?
Working on embedded systems, came to know that sprintf,sscanf, and strcmp was not recmmended.
Cannot read from UART port, Beaglebone Black
I am trying to read data from uart1 of beaglebone black. i have connected tx of uart1 to rx of uart1 i am getting
How to Generate Exceptions on Cortex M3?
I am trying to generate exceptions like bus fault, usage fault on arm cortex-m3. my code for enable exceptions: void
Ad
C-languge: Creating a generic function out of two similiar functions which have different return values
I am writing two different functions with two different parameter data types. additionally, both of the functions have different return types. the
Is it necessary to use the "volatile" qualifier even in case the GCC optimisations are turned off?
My question is targeted towards the embedded development, specifically stm32. i am well aware of the fact that the use of
.\Objects\Usart.axf: Error: L6218E: Undefined symbol HAL_NVIC_SetPriority (referred from stm32f4xx_hal.o)
I am using uart and added uart files manually from keil/packs/drivers/haldrivers folder but after compiling i am facing the following errors.
Library file (.a) where the contents of the structure changes
I am creating an algorithm in c that is confidential and cannot be shared with external customers. so, i decided to go with creating a library
Facing linking error while compiling the code in keil
I want to use usart in stm32f446re. i am adding the required files such as gpio.c,rcc.c,usart.c etc from the keil
How to controll relay (one channel) connected to USB port in Linux?
How to controll relay (one channel) connected to usb port in linux? this pic ilustrate the usb cable connection.
I want to use embedded Browser inside of my WebPage in React
So i have a task to make a browser embedded into my web page. i have a react project (i do not have a react-native project) i tried this
Why typecast a pointer at its declaration?
Not sure if i'm phrasing the question properly nor how to best explain what i'm trying to have answered so bear with me. when defining a
Why using memory layout for running a C program
As i know, when a c program running, a virtual memory is create with stack segment for local variable,
How to write numbers in text files in embedded C
I'm working with an efm32wg280f256 and i would like to debug the code that i'm writing in the following manner: opening a file in sd memory and
How to cast struct to uint8_t (error: conversion to non-scalar type requested)
I need to store the state of 8 relays in eeprom. i didn't want to bother with shifting and i like using bitfields. so i wanted to define them like
Ad
How to ensure consistency of data between two execution loops
I have been developing control software based on freertos operating system. from the timing point of view the software can be divided into two
Linker --whole-archive option
I am using c language. i am linking static libraries with --whole-archive. linker is
Cross-compiling Azure IoT SDK for C
I have successfully managed to cross-compile the c azure iot sdk for a target device running embedded linux. the instructions are here :
proper way to create multiple forked threads
I'm creating a timer function for a bit of embedded code that will allow me to bypass certain gpio checks while a certain process is running,
STM32F103 chip keeps resetting about every 500ms
I wrote a simple blink program for a stm32f103rbt6 chip, but after a while i noticed that mcu is resetting constantly. when i check rcc-csr
what is the meaning of this Logical operators combination in C
I know that -> is a pointer |= is or. what is the logical meaning of such line? timer0->routeloc0 |= timer_routeloc0_cc0loc_loc15
How does GCP iot-device-sdk-embedded-c work on MIPS(uclibc)?
I download source code
What is the link between Baud rate for embedded C pointers
I am reading manuals regarding controlling a device with c,and in general its just playing with addresses; however when we are connected through
D type qualifier is meaningless on cast type
What is the meaning of "d type qualifier is meaningless on cast type at this line of code" (*((volatile rcc_t *
Declaring struct instances as static/local in main() with while(1)
I am working on microntroller rza1, with kpit gnuarm 16 toolchain, in e2 studio. i am not an expert on the subject, so i'll try to explain the
Stack overflow happening when changing a line which is never reached - why and how to prevent it?
I'm developing something in an embedded context with zephyr. essentially i'm dealing with a boot-loop caused by a stack overflow. the
Ad
Where is unsigned int defined for embedded systems?
Using the arm-none-eabi-gcc toolchain. during arm development using options -nostdlib in the linker,i can use
Can't blink LED on STM32F4 microcontroller
I want to make sure i have set up my first embedded software project up correctly and therefore am trying to blink an led on my nucleo-f411re
how do i write a binary number to STM32 GPIO
I want to control a 4 bit multiplexer with my nucleo board. i understand i have to write either to the higher or lower parts of the bsrr
Getting started with STM32 - writing to BSRR
I recently bought a stm32f031k6 nucleo board and i'm programming it using stmcubeide. i have experience with programming 8 bit avr's so i'm trying
libgpiod API usage (Linux shared libraries)
Does anyone have any experience with the libgpiod api? i have installed it on my linux platform but am unable to call its library functions.
Floating point numbers and the effect on 8-bit microcontrollers memory
I am currently working on a project that includes bare-metal programming on an stm-8 micro-controller using the sdcc compiler in linux. the memory
c - casting uint8_t* to uint32_t* behaviour
I have read this question: how does casting uint8* to
Is an interrupt a signal, according to the C spec?
C11 5.1.2.3/5: when the processing of the abstract machine is interrupted by receipt of a signal, the values of objects
Avoid race condition on check-then-sleep
Take the following example code: static volatile bool pending = false; void __attribute__((interrupt(timer0_a0_vector)))
Switch Case within a Switch Case - Is using fall through cases followed by a new switch case of the same fall through a bad design philosophy?
I am designing a system where some different states will have the same initial actions, but then depending on what the inital state is, the next
What are arm-none-eabi-c++ and arm-none-eabi-cpp for?
I'm using the gnu arm embedded toolchain to cross-compile on windows, and was wondering what the following highlighted executables were used for.
Ad
IAR Workbench Error [Li005] while copying files between examples
I'm having the following errors: error[li005]: no definition for "mfs_uart_init" [referenced from
Compressing three individual jpeg pics containing temporal redundancy?
I am interfacing an embedded device with a camera module that returns a single jpeg compressed frame each time i trigger it. i would like
How do I embed Media Player in a C# MailMessage to play an Attachment
I'm using a c# mailmessage to attach a wave file (8k) to an email message. i'd like to provide a player within the body of that email message
Embedding flv (flash) player in windows forms
I'm trying to the the flv flash player from here in a
Will a tomcat request connection also time out when a server side process is taking too long to send a response?
I have a spring boot application with an embedded tomcat server. to limit the impact of dos attacks i've set the property
Which form is better for return value of functions in embedded C?
I am working on embedded c. could somebody help me which piece of code? is efficient in terms of robustness, memory as well as misra
Inject JavaScript to website
I'm trying to inject javascript code to a website and run this function: string js = "var script =
I am using Raspberry PI + BHI 160 shuttle board + BMM150,How to get data from sensors into Raspberry PI using any binary?
I am using raspberry pi + bhi 160 shuttle board + bmm150,how to get data into raspberry pi using binary. can i use
Jetty, isSecure() returning false on HTTPS connection
I have hit a problem with issecure() returning false on request arriving on https connection, actually a https connection with valid
powerbi js export summarized data Error: Cannot read property 'Underlying' of undefined
I am trying to use exportdata(summarized) of powerbi.js and getting the following error. typeerror: cannot read
Keycloak logout does not end session
I am using keycloak 3.4 in a java application using spring framework and jetty 8.1 with keycloak jetty-81-adapter 3.4. according to the
Ad
Compiling C++ using -pthreads for Openwrt Linux-Get segmentation fault
I´m pretty new to programming in c++ and i´m using pthreads. i´m cross compiling my code for openwrt but for some reason i get segmentation
How can I permanently bypass Windows XP startup?
I have an application for windows xp. this application is deployed with the hardware. the application is the only application that ever runs on
Is there any difference in passing &arr(address of entire block) or just passing name of array (address of first element)?
Void func1(int* ptr) { printf("func1 :%d
",++ptr); } int main() { int arr[4] = {0,1,2,3}; printf("addr enter
F/OSS for the PIC24?
I'm learning embedded programming with the pic24, and i'm looking for something "real-world" to dig into to help me learn. are there any free
What is the correct way to declare a pointer to a __far pointer?
On an embedded target i use far pointers to access some parts of the memory map. near pointer (without explicitely specifying
Embedded Database for .net that can run off a network
I was (and still am) looking for an embedded database to be used in a .net (c#) application. the caveat: the application (or at least the
.NET Microframework SDK with VS 2008
I am trying to get started developing using the .net micro framework but appear to have hit a road block. i am using visual studio 2008 and it
Small RISC emulator
I'm looking to build a vm into a game and was wondering if anyone knew of any really simple vm's (i was thinking risc/pic was close to what i
Porting C++ lib/app on android
I want to port few c/c++ libraries to android, how feasible it would be e.g. openssl can it be ported or suppose an application which
How to clone a private git repo from within a BitBake recipe?
I'm interested in cloning contents of a private git repo so they can be used by a custom bitbake recipe. i've tried adapting
What syntax error does this sql command have?
I am trying to create a table in java embedded database ( with netbeans). i'm getting an error when executing the table creation command. this
Ad
Can I get the path of a .bbappend file?
I have a .bbappend file within a custom yocto project layer (and separate repo). i would like to place information about
Does a lack of indentation guarantee a top-level context in Python?
I'm working on a script parser that expands embedded python code into script code by extracting all python code into a single file so that it can
Ad
Blog Categories
Ad