embedded

serial port configuration using boost ASIO

一个人想着一个人 提交于 2020-01-15 14:23:34
问题 I am configuring serial port using boost asio. but why below code is giving error? If I comment set_option it works fine. below code gives error serial_config.cpp:13: error: expected unqualified-id before numeric constant In file included from /home/chirag/boost_install/include/boost/asio/serial_port_service.hpp:25, from /home/chirag/boost_install/include/boost/asio/basic_serial_port.hpp:30, from /home/chirag/boost_install/include/boost/asio.hpp:25, from serial_config.cpp:1: /home/chirag

How to install .exe file on windows embedded compact 7?

社会主义新天地 提交于 2020-01-15 12:30:23
问题 I want to install a .exe file in a windows embedded compact 7 terminal. However when I click the file, nothing happens. Hope someone can help, I am new to windows embedded compact 7. 回答1: if it is truly an Embedded Compact device, then you're probably out of luck. The app you're talking about is a full Windows application. Windows Embedded Compact won't run it. WEC7 is more closely related to the old Windows Mobile Handhelds than Windows 7. Are you sure it's Embedded Compact and not Embedded

Memory allocation in header files

 ̄綄美尐妖づ 提交于 2020-01-15 11:55:06
问题 The company I'm working for have development rules for C development on embedded target. One is : It is recommended to not allocate any storage space in the header files. I'm not sure what it means, the person who wrote it is not around and the other developers don't really care, so I am asking here. What I understand is that I shouldn't declare variables in a header files, so something like that would be discouraged in a .h : int myVar; static char myOtherVar; What I don't understand is what

Detecting if the Compact Framewok is installed on mobile device

若如初见. 提交于 2020-01-15 06:55:29
问题 Ive written an application using the .net compact framework. One of the requirements is that a check is run before app runs to see if the compact framework is installed. If not I should prompt this to them and redirect them to cf download location. What would be the best most common approach to doing this. Obviously my .net wont run in the first place if .net cf is not installed, do i need to write this in eVc++? Much appreciate your thoughts on the Tony 回答1: This is an MSDN article about

Initializing a class using malloc

本小妞迷上赌 提交于 2020-01-15 05:59:06
问题 I am working on a toy language for avr using C++ as the intermediate language, Problem is avr-gcc does not have new implemented. All my object derive from the class Object which has virtual methods when I create say a float object with malloc using instructions from, Can I implement the Factory Method pattern in C++ without using new? as soon as I cast it to an Object to pass around and back to a Float my program crashes, comments in the answer says that this is due to vtable not initializing

Initializing a class using malloc

匆匆过客 提交于 2020-01-15 05:57:45
问题 I am working on a toy language for avr using C++ as the intermediate language, Problem is avr-gcc does not have new implemented. All my object derive from the class Object which has virtual methods when I create say a float object with malloc using instructions from, Can I implement the Factory Method pattern in C++ without using new? as soon as I cast it to an Object to pass around and back to a Float my program crashes, comments in the answer says that this is due to vtable not initializing

Experience building and using Qt Embedded

半世苍凉 提交于 2020-01-15 05:05:31
问题 I am currently trying to compile and build QT for Embedded Linux on an Ubuntu box for ARM architecture. So far, I have run into MANY errors while trying to MAKE. The biggest one being a 2000 line C++ function which caused a compiler error. What are other peoples experiences with this and how did you fix it? 回答1: My experience has always been favorable, given: You must follow every single instruction in the installation instructions for Qt, without exception. Every time I've run into

unaligned memory accesses

≯℡__Kan透↙ 提交于 2020-01-14 14:13:12
问题 I'm working on an embedded device that does not support unaligned memory accesses. For a video decoder I have to process pixels (one byte per pixel) in 8x8 pixel blocks. The device has some SIMD processing capabilities that allow me to work on 4 bytes in parallel. The problem is, that the 8x8 pixel blocks aren't guaranteed to start on an aligned address and the functions need to read/write up to three of these 8x8 blocks. How would you approach this if you want very good performance? After a

unaligned memory accesses

China☆狼群 提交于 2020-01-14 14:13:10
问题 I'm working on an embedded device that does not support unaligned memory accesses. For a video decoder I have to process pixels (one byte per pixel) in 8x8 pixel blocks. The device has some SIMD processing capabilities that allow me to work on 4 bytes in parallel. The problem is, that the 8x8 pixel blocks aren't guaranteed to start on an aligned address and the functions need to read/write up to three of these 8x8 blocks. How would you approach this if you want very good performance? After a

Finding position of '1's efficiently in an bit array

十年热恋 提交于 2020-01-14 09:48:27
问题 I'm wiring a program that tests a set of wires for open or short circuits. The program, which runs on an AVR, drives a test vector (a walking '1') onto the wires and receives the result back. It compares this resultant vector with the expected data which is already stored on an SD Card or external EEPROM. Here's an example, assume we have a set of 8 wires all of which are straight through i.e. they have no junctions. So if we drive 0b00000010 we should receive 0b00000010. Suppose we receive