Windows Embedded CE 6,0 Installation

I need to install the Windows Embedded CE 6.0 package that works with Visual Studio 2005 because I need to upgrade an old driver that runs under CE 6.0. I understand that Microsoft does not support this CE package any longer and, in fact, they no longer provide the installation files for CE 6.0 Where can I get the Windows Embedded CE 6.0 installation files??? They can be in an ISO file or whatever format is available.

Embedded Has anyone had experience with the Freescale HCS12 Flash Driver for EEPROM Emulation source code?

... and actually had it working, and changed the length of the data record to something larger than the 2 bytes that its demo comes with? It's a bunch of code to talk to the on-chip DFlash, emulating EEPROM pages, in the Freescale HCS12 range of microcontrollers. I'm having some real difficulty changing some of the configuration values. However, if I leave all the settings are they came from the demo, it does work.

Embedded USB CDC device stalling

I'm writing a simple virtual serial port device to report an older serial port. By this point I'm able to enumerate the device and send/receive characters. After a varying number of bulk-out transmissions from the host to the device the endpoint appears to give up and stop transferring data. On the PC side I receive a write error, and judging from a USBlyzer trace the music stops on a stall (USBD_STATUS_STALL_PID). However my code never intentionally issues a STALL condition on that endpoint an

Embedded UART vs I2C vs SPI for inter-processor communication between microcontrollers

I am examining a way to connect two microcontrollers. On the level of serialization I am thinking of using Nano protobuffers ( This way I can encode/decode messages and send them between two processors. Basically, one small processor would be the RPC server, capable of doing several functions. Bigger processor will call there RPCs via messages sent, and then when data is ready, it will read it from smaller processor. What would be the pros/cons of using UART,

Embedded how first instruction is executed when the system is powered on

im very curious about how the board start up takes place , how the first instruction is executed when board is powered on how the peripheral are intialized...thanks in advance how the first instruction address of ROM is loaded into PC(program counter),when system is powered on in embedded systems

Embedded STM32 IAR no ITM trace output unless printf is included in the code

I have a small project that I added my own custom debug functions to so I could have some extra functionality. They have been working great, and use the following method to send the data: while(*bp) ITM_SendChar(*bp++); I finally got around to switching over all the printf statements to use my own function and all the output just stopped. A little playing around and I figured out as long as I have one single printf function compiled in, no matter where, ITM_SendChar works right out the ga

Embedded How do I remove and repair the hex file on my Ds2250t-32-16 micro controller

Hi I have a circuit board that runs my on board water maker the chip Ds2250t-32-16 is faulty. The manufacturer won't supply the chip or the hex file . They want me to upgrade to a new board cost $3k Aud. I can but the chip for $50 online and a kit to load it from Dallas Microprocessor. My question is can I download the current file and repair it from the chip . I can get hold of 7 different chips all faulty but with different faults . Could these be overlaid on each other to build a correct file

Embedded STM32 Read-out protection via OpenOCD

The STM32 family of microcontrollers features a read-out protection feature so proprietary code can't be read out via the debug interface (JTAG or SWD). Using OpenOCD, how can I enable/disable the read-out protection via a SWD/JTAG interface? How secure is the RDP read-out protection? If possible, please give an answer valid for the entire STM32 family.

How are device tree blobs actually used from an embedded application?

I'm trying to learn how device tree works. I have read some documentation and more or less understand what are dts, dtsi and dtb files. What I don't understand very well is how the information in the dtb files is accessed from the final application. I have been reading the zephyr os documentation and a bit of the linux kernel to understand this, but it's still not very clear to me. What I have understood for now is that the final application (possibly the OS kernel) reads and parses the dtb file

Why would I consider using an RTOS for my embedded project?

First the background, specifics of my question will follow: At the company that I work at the platform we work on is currently the Microchip PIC32 family using the MPLAB IDE as our development environment. Previously we've also written firmware for the Microchip dsPIC and TI MSP families for this same application. The firmware is pretty straightforward in that the code is split into three main modules: device control, data sampling, and user communication (usually a user PC). Device control i

Embedded printing float/double using printf crashes the program

I am working on a syscall implementation for a PowerPc. I have tested some gcc functions and they all seem to work (e.g. sqrt sin cos pow printf malloc...) I recently realised a problem with the printf. it works fine as long as I print some integer/char but when I try to printf %f/lf to print float/double the program crashes. (it seems to be executing somewhere it should not be) I have checked the makefile, it uses: # use soft float CFLAGS += -msoft-float and when making the program I can s

Embedded How to handle GSM buffer on the Microcontroller?

I have a GSM module hooked up to PIC18F87J11 and they communicate just fine . I can send an AT command from the Microcontroller and read the response back. However, I have to know how many characters are in the response so I can have the PIC wait for that many characters. But if an error occurs, the response length might change. What is the best way to handle such scenario? For Example: AT+CMGF=1 Will result in the following response. \r\nOK\r\n So I have to tell the PIC to wait for 6 c

Embedded SSDP for device discovery

I am developing a hardware device that should be automatically discovered in Windows, so I prefer to do it through SSDP instead of mDNS (Zeroconf, etc.) to avoid to force users to install its support applications. I just need that the device appears in the network in Windows Explorer, and clicking on it to open the default browser using the device IP address in the URL. I've already made the code (answering in unicast to multicast M-SEARCH requests and sending NOTIFY messages on boot and period

Embedded AVR (Atmega 324A ) DAC interfacing via SPI

DataSheet:(Atmega 324A) DataSheet:(DAC) Hi there!! i'm learning Embedded programming in c, so please bear with me. I am trying to generate a wave using a DAC (DAC101S101) which is connected to ATmega324A via SPI. The Dac is uni-Directional. right now i'am just trying to get a output off the dac. I have made a lut which i will use

Embedded Code Structure: Multiple Devices on I2C line, with multiple source files

I am working on programming a TI MSP432. We have 4 different devices on a single I2C line. In order to keep our codebase legible we keep the functions pertaining to different devices in different C files. The files were originally developed with only one device on the I2C line, and therefore the I2C interrupts are in the individual files. What is the proper way to integrate these files? Do we just put the I2C interrupt in the main file, and have it call a function in each file? Or somehow dy

Embedded Are the higher level libraries unnecessary for STM32F042?

I have been working with the STM32F30x series for a while and am used to the file system looking something like this: inc/ ---*.h lib/ ---CMSIS/ ---STM32F30x_StdPeriph_Driver/ ------inc/ ------scr/ ---STM32_USB-FS-Device-Driver/ ------inc/ ------scr/ src/ ---*.c usb/ ---inc/ ------ hw_config.h ------ *.h ---scr/ ------ hw_config.c ------ *.c Now I'm switching to work with a STM32F042 and I'm utterly unable to find the usb library with the hw_config and usb files so my setup is like this: inc

Embedded MBED Ticker doesn't attach interrupt

I have a class: #ifndef _BUTTON_LISTENER_H_ #define _BUTTON_LISTENER_H_ #include <iostream> #include <vector> #include "mbed.h" #include "Buttons/MenuButton.h" #include "MenuNavigator.h" class MenuNavigator; class ButtonListener { public: ButtonListener(MenuNavigator* navigator, unsigned int samplePeriod_us, MenuButton* select, MenuButton* down, MenuButton* up, MenuButton* cancel); vector<MenuButton*> getButtons(); MenuN

Embedded why i cant see change in ifg port in msp430

I cant see any change in the P2IFG register also not on live watch while clicking the on the right flag on forced interrupt. I checked the config and I think they are set good. Here is the screenshot of the IAR software while I'm debugging

Embedded How to assign address to external symbols from another library without including it in the output of ld?

Here the context : I'm developing some kind of micro OS for arduino ( SAMD21 MCU ). I would like the boot loader to load the OS (easy part, the official one works, and the OS is linked with a "with-bootloader.ld" script). Then, to load an application from the OS in a similar way the bootloader loads the OS. (easy for the OS part) Doing so, the OS would not have to be re-programmed and only the application would change. Here the question : Since the OS would include most of arduino code, is i

Embedded How to change available sampling rate in PyAudio?

I'm working on a project using ReSpeaker Mic Array v2.0, which is a PCB board with 4 microphones connected to Jetson Nano board. I've managed to record audio with 48 kHz rate (maximum for that ReSpeaker) using command: arecord -D plughw:ArrayUAC10 -c 6 -r 48000 -f S32_LE test.wav and I would like to do the same using PyAudio, but every time I set the rate to a different value than 16 kHz: RESPEAKER_RATE = 48000 RESPEAKER_CHANNELS = 6 RESPEAKER_WIDTH = 2 RESPEAKER_INDEX = 11 # r

Embedded Can I use SigmaTel STMP 3650 kit firmware code on other devices?

I know little about MCUs and embedded systems. A year ago we made contract with a company to design a special purpuse MP4 device based on the SigmaTel STMP 3650 kit. Now we have all the source code for the firmware (code, resource around 1G). My questions are Can we use this code to run on other STMP 3xxx famliy based devices (with acceptable modification, of course)? What about other ARM9 based devices?

Embedded Are MIFARE smart cards programmable in sense I could write a program they could execute?

Variations of MIFARE Ultralight cards are becoming quite widespread. For example, huge transport companies employ them as payment cards. As I get from MIFARE site and Wikipedia there's a full-blown microcomputer inside the card - with a processor, memory, etc. When I move the card close to the reader its field induces current in the card antenna, the card computer turns on and runs some complicated protocol to communicate with the reader. That's all cool but could I write my own program that w

Embedded controlling lauterbach through command line

I have condition that i have to flash multiple output files one by one to the mpc controller. We use GUI for lauterbach to do the flashing and running software. Now i want to do the same via >command line argument. Some one please explain me what all things are needed for controlling the lauterbach through command prompt. I want to use Lauterbach Powerdebug interface/ usb2 for the debugging purpose.

What is the fastest algorithm in terms of computation time for burst errors (block code) in embedded environment?

I am looking into implementing encoding and decoding for devices operating in noisy channel with burst errors. I have found that the most common techniques to overcome burst errors are the following: Reed-Solomon (RS) codes Fire codes Interleaving Concatenation Cascading I presume in embedded systems, the most efficient way to implement polynomial based techniques to store relevant polynomials in lookup tables. However, the encoding and decoding involves fair amount of computation and just

Embedded How do you handle interrupts in a bootloader?

My bootloader needs to use the interrupt vector, but so is my application program. The high vector starts at address 0x08 and the low vector starts at address 0x18. How can I share interrupt vectors so that I have a separate interrupt function in the bootloader and in the downloaded application? I am using PIC18F87J11 and MPLAB XC8 compiler.

Embedded Off the shelf programmable USB

Is there a way to create a programmable USB just using off the shelf USB dongles? This question: Programmable USB dongles has answers relating getting "programmable" USBs. But I just want to use an off the shelf USB. It's like this: but just using off the shelf USB device. Preferably, once the USB is plugged in, an "app" can be ran off it which can be cross platform. This app can be a GUI app, but I'm fine with it being a CLI app. Would this question be rela

Embedded What would cause a LBC-managed region access to hang?

I'm trying to write a Compact Flash driver for the RouterBoard 800, for FreeBSD, and running into problems. The CF slot is managed by the Local Bus Controller (LBC) of the CPU (MPC8544E), using the User Programmable Machine (UPM) module and any access to the memory region the CF is located at hangs the thread (the CPU can still be interrupted, but the thread never continues). Even dummy accesses, when programming or reading the UPM, hang. Now, the question is, what would cause the thread to h

Embedded Led on/off using PIC 16f777a

I am doing an exercise using push button. When the button is pressed once the led starts blinking and when it is pressed again it stops. When I tried the led is blinking on 1st press but it is not stopping on 2nd. I am using PIC16F877A MCU with HiTech C Compiler. My code is : #include<pic.h> #define _XTAL_FREQ 20000000 void main() { TRISB = 0x01; PORTB = 0x00; while(1){ if(RB0 == 1){ while(1){ PORTB = 0xff; __delay_ms(250); PORTB = 0x00;

Reading Embedded controller memory

I have a windows7 machine with an Embedded Controller (EC) on its mother board. EC works according to ACPI protocol. EC stores temperature and fan speed values in its memory. I am trying to access these values from the EC memory. Please let me know if the OpenHardWareMonitor(, which uses WinRing0 and WMI, can be used to read the EC memory. If not, please suggest the procedure to read EC memory.

Embedded Only scrolling some Text in 16x2 LCD(HD44780 display programm

I have a program which display as follows . first Line : Volt : Over Voltage Second Line : Current : Over Current. In LCD the cant fully display the letter OVer Voltage or Over Current . I just want to scroll these . But the Volt : and current : letter will be there that will not need to scroll ?

Embedded CAN bus arbitration backoff time

I am aware of the way CAN bus does its arbitration. In a nutshell the CAN node ID having more '0' 's in its indentifier wins the rite to transmit on the bus and the rest of contending nodes back off. But i dont find any details of how long the backed out node waits before re-trying to win the bus back. I consulted a few sources but still cant find the answer. Any experimental evidence for this ? Bosch CAN Introduction to the Controller Area Network

Embedded Effect on I2C Communication with change in Temperature (Extreme Temperatures)

I have a requirement to use I2C communication at extreme temperatures (-85C to 140C). I was told that the I2C Communication will not work at such extreme negative temperatures. I cannot get a satisfactory answer from google either. The only thing that i can think about is I2C requires Pull-Up resistors and they may change with change in temperature (very little) and that change may have an impact on the communication lines. But that will not be a communication limitation but rather a hardware l

Embedded What to pad flashable images with?

Dumb question... I'm stitching various parts (kernel, FS, etc.) to create a firmware image that will be flashed on NOR flash. Right now I'm padding the remaining space with zeros. Is there any convention / benefits of using other padding?

Embedded How to send data to target through Trace32 debugger?

I need a way to send some data to the ucontroller through Trace32. I heard that this is possible some way, but I have no idea where to start. What I am actually trying to do is run a piece of code on a Aurix TC297 ucontroller to do some measurements (runtime, RAM, etc.). This piece of code is actually a Kalman filter that needs as input a vector of structs that I have too send from the computer through Trace32. Please help !

Embedded communication lost detection CAN

I have been implementing motor control software. This control software runs in one microcontroller which communicates with different microcontroller over CAN bus. I need information about CAN "failure" (communication lost) in the control software. I am not sure what could be the appropriate symptom of the CAN "failure". I have an idea that I would check whether the CAN periphery is in the Bus off state. If so, I would trigger some timer and after expiration of for example 1 s I would take the co

Embedded Bluetooth controlled bot code not understood

I am making a Bluetooth controlled bot but I am not able to write the code. So I searched on internet but do not understand why can't we use output of "" directly instead of using a char string to store it's value as done in the code below? Here is the code I saw(from circuit digest): There are 4 wheels and hence 4 motors. #define frm1 2 //front right motor #define frm2 3 #define flm1 4 //front left motor #define flm2 5 #define rrm1 6 //rear right

Embedded Reading and Writing file to end of flash memory in STM32 device

I have some functioning firmware that I am deploying to an STM32 part with 64K of Flash memory (starting at address 0x8000000). I want to use some amount of this memory towards the end of the flash memory space to store a gzipped file on the STM32 part itself. What is the best way to write this file to a location in the flash with openOCD? Should I somehow bundle it into the firmware ELF? Should I flash firmware and then follow that up with another flash command to write the file to a specific

Embedded Who's got higher priority CPU or DMA controller?

Let's assume i have to refresh OLED screen pretty often using I2C so i want to take load from CPU and let the DMA transfer the data for me. After commanding DMA, CPU is executing next instructions untill it reaches point where it needs bus(let's say to communicate with SPI perhiperal). What happens then? Does DMA yields or the CPU waits until DMA finishes it's task? Architecture: Cortex-M4 or M0+

Embedded how to send 32bits frame at once from efm32 controller

I am trying to send 32bits at once from my USART in my efm32 controller. I improvised the following way where i define usart frame register first 4 bitfield as 13(to have 16 bit frame as shown in manual bellow)using USART0->FRAME=USART0->FRAME&(0xFFFFFFF<<4) //leaving all bits except the first 4 USART0->FRAME=USART0->FRAME|(0b1010) Using the TXDOUBLE register i put the first 16 variable in 0-15 place and second 16bit variable at 16-31 places using(as shown in the manual

Embedded AtmelStudio recipe for target *.elf failed

I have separated the code into files (*.c and *.h) and included them. I have guard headers and all the separated files were reported to being build: Finished building: .././test.c But my project build results in this error: recipe for target 'Midi.elf' failed , because of undefined reference to 'some_test()' (all calls to functions) defined within these separated files. And I don't know how to debug this. I inserted compiler warnings and can proof the function definition and declaration to be

Embedded What exactl hex information is telling me to send? Where LC and xx yy zz is not clear to me

This is not clear to understand, what exactly i have to send as command? does it mean i have to send in two step? (its a usb hardware connected to pc where i can send the command to get informations) 1) first one has to be 00 A4 08 0c 04 df 01 40 31 {LC?? what does it mean} ? 2) second one has to be 00 b0 xx yy zz {what is exactly xx and yy and zz has to be??} Reference saying as below: To select those files, you have to use: 00 A4 08 0c 04 df 01 40 xx Lc 00 : ISO C

  1    2   3   4   5   6  ... 下一页 最后一页 共 7 页