embedded

Differences Between ARM Assembly and x86 Assembly [closed]

谁说胖子不能爱 提交于 2019-12-02 16:16:49
I'm now going to learn ARM Assembly, to develop for my Windows Mobile 5 iPAQ, but I have some questions: What Are The Main Differences Between ARM Assembly and x86 Assembly? Is Any Differences In The Interrupts(New Types)? Which Are They And What Is The Meaning Of They? Best Assembler To Compile And Where To Get It? Where I Can Find Some Good Resources? Michael Burr Main differences: ARM is a RISC style architecture - instructions have a regular size (32-bit for standard ARM and 16-bits for Thumb mode, though Thumb has some instructions that chew up 2 instruction 'slots') up through at least

How to start develop for chinese mobile phones based on nucleus RTOS? (MTK) [closed]

拥有回忆 提交于 2019-12-02 15:58:41
I've noticed that chinese mobile phones became very popular, perhaps because of their very reasonable price and many modern features (touch screens, advanced multimedia, double sim cards etc). I'm wondering if there's any way to develop custom solutions for this handsets as independent developer? How to obtain a toolkit and documentation? I've found some resources, but mainly inconsistent tech notes, often in chinese only. For now I know, that majority of chinese handsets are based on chips from MediaTek (MTK), with operating system based on Nucleus RTOS and MMI (plutoMMI?) framework.

What is the bootloader and startup code in embedded systems? [closed]

十年热恋 提交于 2019-12-02 15:19:34
What is the basic significance of bootloader and startup code in the embedded systems? What is the difference? Where are these placed?? And an overview of the flow from power on reset to the application start. Considering any platform in general. old_timer All processors have some processor-specific way of starting. Usually there is some address in the processors address space, let’s say 0xFFFF0000 for example, where the processor reads that memory. The value it finds it uses as an address to code and starts executing code at that address. What the hardware either chip or board designers would

Best platform for learning embedded programming? [closed]

巧了我就是萌 提交于 2019-12-02 14:55:52
I'm looking to learn about embedded programming (in C mainly, but I hope to brush up on my ASM as well) and I was wondering what the best platform would be. I have some experience in using Atmel AVR's and programming them with the stk500 and found that to be relatively easy. I especially like AVR Studio and the debugger that lets you view that state of registers. However, If I was to take the time to learn, I would rather learn about something that is prevalent in industry. I am thinking ARM, that is unless someone has a better suggestion. I would also be looking for some reference material, I

What Java embedded VM do you suggest for ARM development? [closed]

与世无争的帅哥 提交于 2019-12-02 14:42:07
There are a lot of Java embedded VMs. What do you suggest for ARM development? http://www.cacaovm.org/ http://www.rtjcom.com/main.php?p=home http://www.k-embedded-java.com/ http://jamvm.sourceforge.net/ I'm currently using the TINI platform from Dallas and works great (512 KB RAM and 1 MB flash), but now I need more power (memory and CPU). My final choice is JamVM + GNU Classpath. Works great! :) 4 different VMs have been ported to Symbian OS, which runs on ARM cpus. Sun's KVM, Sun's hotspot (or cldc-hi) VM, Sun's CDC VM and IBM J9 VM. I suspect there are several more. a good place to start

Calculate execution time when sleep() is used

别等时光非礼了梦想. 提交于 2019-12-02 14:39:48
问题 I am trying to read data from the ADC in the Beagle Bone, running Angstrom Linux distribution. I need to use a delay mechanism like sleep() , to only read samples at specific time, to help conform to a specific sample rate. I also am required to calculate the execution time. Here is a sample POC (proof of concept), to demonstrate the problem I am facing: #include <stdio.h> #include <stdlib.h> #include <time.h> int main() { clock_t begin, end; while(1) { begin = clock(); sleep(1); // delay for

How can I make my own microcontroller?

一曲冷凌霜 提交于 2019-12-02 14:17:25
How can I make my own microcontroller? I've done some work using GAL chips and programmed a chip to do simple commands such as add, load, move, xor, and output, but I'd like to do something more like a real microcontroller. How can I go about doing this? I've read a little bit about FPGA and CPLD, but not very much, and so was looking for some advice on what to get and how to start developing on it. Look here for a good wiki book. I had some coursework I wrote when I was teaching Electronic Eng, but I couldn't find it around. When I was teaching, most of the students were happy to use the

Getting into Embedded [closed]

牧云@^-^@ 提交于 2019-12-02 14:11:01
I'm trying to familiarize myself with the embedded field, but also have limited resources in terms of time and equipment to buy. What's a good language to wrap my head around embedded, without investing too much time leaning an embedded-specific language? I'm most familiar with PHP, Java, Actionscript, but unfortunately know very little C. I remember reading somewhere that someone used PERL to program embedded systems, but not sure if that's really possible. Can learning be done without needing to buy chips, etc. via simulators or such? Can someone recommend a simplified roadmap to show how

Total size of the contents of all the files in a directory [closed]

耗尽温柔 提交于 2019-12-02 14:05:50
When I use ls or du , I get the amount of disk space each file is occupying. I need the sum total of all the data in files and subdirectories I would get if I opened each file and counted the bytes. Bonus points if I can get this without opening each file and counting. If you want the 'apparent size' (that is the number of bytes in each file), not size taken up by files on the disk, use the -b or --bytes option (if you got a Linux system with GNU coreutils ): % du -sbh <directory> rob Use du -sb : du -sb DIR Optionally, add the h option for more user-friendly output: du -sbh DIR cd to

A good serial communications protocol/stack for embedded devices? [closed]

久未见 提交于 2019-12-02 13:59:39
After writing several different custom serial protocols for various projects, I've started to become frustrated with re-inventing the wheel every time. In lieu of continuing to develop custom solutions for every project, I've been searching for a more general solution. I was wondering if anyone knows of a serial protocol (or better yet, implementation) that meets the following requirements: Support multiple devices. We'd like to be able to support an RS485 bus. Guaranteed delivery. Some sort of acknowledgement mechanism, and some simple error detection (CRC16 is probably fine). Not master