embedded

Java in Embedded Programming

别说谁变了你拦得住时间么 提交于 2019-12-22 08:14:19
问题 Can java programming be used in micro-controller programming like C and C++? If yes what are the requirement for it? What about in PIC16 and PIC32 series micro controller? Any Possibility for them. I could not find much more information about it in the web too.I appreciate your help. Cheers!!! 回答1: To run Java on any platform you will need a Java Virtual Machine (JVM). I would not hold out too much hope for PIC16 due to the memory resources required and perhaps the performance. If you want

Relation between endianness and stack-growth direction

狂风中的少年 提交于 2019-12-22 08:00:05
问题 Is there a relation between endianness of a processor and the direction of stack growth? For example, x86 architecture is little endian and the stack grows downwards (i.e. it starts at highest address and grows towards lower address with each push operation). Similarly, in SPARC architecture , which is big endian , the stack starts at lowest address and grows upwards towards higher addresses. This relationship pattern is seen in almost all architectures. I believe there must be a reason for

Parsing an RFC822-Datetime in .NETMF 4.0

六眼飞鱼酱① 提交于 2019-12-22 07:50:18
问题 I have an application written in .NETMF that requires that I be able to parse an RFC822-Datetime. Normally, this would be easy, but NETMF does not have a DateTime.parse() method, nor does it have some sort of a pattern matching implementation, so I'm pretty much stuck. Any ideas? EDIT: "Intelligent" solutions are probably needed. Part of the reason this is difficult is that the datetime in question has a tendency to have extra spaces in it (but only sometimes). A simple substring solution

Windows CE or Windows Embedded Standard?

心已入冬 提交于 2019-12-22 07:12:12
问题 im building an interactive portable ad campaign device (x86 platform) with touchscreen and stuffs. which is better OS for the device, Win CE or Win embedded standard (XPE). i need to provide support for multimedia platform such as Flash for easy ad development. thanks. 回答1: Windows CE is (+) Much cheaper . A few $. If you are planing 100s of devices this is a big factor. (-) Not as easy to develop against, but the Windows API & .NET are mostly the same. (+) Considered less vulnerable to

How to setup ARM interrupt vector table branches in C or inline assembly?

◇◆丶佛笑我妖孽 提交于 2019-12-22 05:26:06
问题 Can someone please show me an example of how to setup an ARM9 interrupt vector table using C or inline assembly in a bare-metal environment with no RTOS or Linux OS? Specifically how can I use inline assembly or C to set branches to my IRQ interrupt handler ISR coded in C? /// timer1 64-bit mode interrupt handler connected to TINT2 interrupt=#34 /// \todo I think I need to ACK it once I get working interrupt void interruptHandlerTimer1(void) { printf("\n [* ISR *] \n"); // ACK TINT2 interrupt

I need a TCP option (ioctl) to send data immediately

此生再无相见时 提交于 2019-12-22 04:48:29
问题 I've got an unusual situation: I'm using a Linux system in an embedded situation (Intel box, currently using a 2.6.20 kernel.) which has to communicate with an embedded system that has a partially broken TCP implementation. As near as I can tell right now they expect each message from us to come in a separate Ethernet frame! They seem to have problems when messages are split across Ethernet frames. We are on the local network with the device, and there are no routers between us (just a switch

How to detect cold boot versus warm boot on an ARM processor?

不问归期 提交于 2019-12-22 04:43:15
问题 I'm looking for a way to determine whether an ARM processor is booting from a cold boot (i.e. initial power-on) versus a warm boot (i.e. reset assertion without actual power loss). Specifically I'm using an ARM968 core, will be making the determination using C or assembly, and I will use the determination so certain operations only run on the initial power-on and not on subsequent resets. In previous projects I've leveraged external circuitry (e.g. FPGA) to detect the different boot scenarios

Problem with time() function in embedded application with C

不问归期 提交于 2019-12-22 01:32:50
问题 I am using time() on an ARM micro-controller. The processor restarts as soon as it reaches this function. What is strange is that when I am in debug mode the code works perfect but as soon as I want to apply it in standalone I encounter a reset. Am I overlooking something? Is there a replacement for this function? the part of code is like this #include <sys/time.h> #include <stdio.h> void main (void) { static time_t rawtime = 0; rawtime = time (NULL); } 回答1: Is there a replacement for this

synchronization between two tasks

自闭症网瘾萝莉.ら 提交于 2019-12-21 20:42:23
问题 This is actually a design question for firmware in an embedded system I have two ISRs (of same priority) executed independently . These ISRs are triggered when the h/w generates data. I want a mechanism which must be put in place to synchronise between task1 and task2. task 2 must know about the certain values calculated in task1 which must then be taken into account while computing certain values in task2. I don't have OS primitives to use ie the system does not have any Operating system.

Linking with static library not equivalent to linking with its objects

孤人 提交于 2019-12-21 20:36:05
问题 Problem: The firmware image generated when linking with a static library is different to the firmware image generated when linking with the objects directly extracted from the static library. Both firmware images link without error and load successfully onto the microcontroller. The latter binary (linked with objects) executes successfully and as expected, while the former (linked to the static library) does not. The only warnings during compilation are unused-but-set-variable in the