embedded

What are .axf files?

荒凉一梦 提交于 2019-12-03 05:08:58
I am new to arm architecture, I work on embedded software and was trying to learn about the .axf file which is present in my project binary's debug folder. Discovered that it is an arm executable format file generated by linker while the build process and it is used in debugging the crashes. So it is obvious that it contains some debugging information but its not clear what kind of information that is? And also there exists one .map file in the debug folder, so what could be the difference between these two files? The AXF file is an object file format generated by ARM's RealView compiler (also

Initialization of a microSD card using an SPI interface

二次信任 提交于 2019-12-03 05:04:54
I'm using a microSD card in an embedded design. The card is connected to a microcontroller using the SPI interface. It worked fine for all cards I've used before, but now my new card will not initialize. The card is a Transcend 2 GB microSD card (TS2GUSD). After sending the initial clock train to switch to SPI mode, I do the following: CMD0 (Argument 0, CRC 0x95) -> Response 0x01 -> OK CMD8 (Argument 0x000001AA, CRC 0x87) -> Response 0x01 0x000001AA -> Means it's SDC V2+ card, the voltage range 2.7 V - 3.6 V is supported -> OK Then I should send the ACMD41 command, but when sending the CMD55

Program received signal SIGTRAP, Trace/breakpoint trap

人盡茶涼 提交于 2019-12-03 04:56:46
I'm debugging a piece of (embedded) software. I've set a breakpoint on a function, and for some reason, once I've reached that breakpoint and continue I always come back to the function (which is an initialisation function which should only be called once). When I remove the breakpoint, and continue , GDB tells me: Program received signal SIGTRAP, Trace/breakpoint trap. Since I was working with breakpoints, I'm assuming I fell in a "breakpoint trap". What is a breakpoint trap? Breakpoint trap just means the processor has hit a breakpoint. There are two possibilities for why this is happening.

how to know the Interrupt/GPIO number for a specific pin in linux

依然范特西╮ 提交于 2019-12-03 04:34:56
问题 i'm doing a project in which i need to handle an interrupt in Linux. the board i'm using is an ARM9Board based on the s3c6410 MCU by Samsung (arm 11 processor) and it has the following I/O interface : as the image shows i have EINTx pins for external interrupts and GPxx pins as GPIO pins and i don't mind using any of them but i don't have their numbers ! For EINTx pins : when i call int request_irq(unsigned int irq, void (*handler)(int, struct pt_regs *), unsigned long flags, const char

Protocols used to talk between an embedded CPU and a PC

我的未来我决定 提交于 2019-12-03 04:24:46
问题 I am building a small device with its own CPU (AVR Mega8) that is supposed to connect to a PC. Assuming that the physical connection and passing of bytes has been accomplished, what would be the best protocol to use on top of those bytes? The computer needs to be able to set certain voltages on the device, and read back certain other voltages. At the moment, I am thinking a completely host-driven synchronous protocol: computer send requests, the embedded CPU answers. Any other ideas? 回答1:

Where can I start with programmable Hardware?

血红的双手。 提交于 2019-12-03 04:20:56
问题 I've had a desire to learn at least a tiny bit about programming hardware for quite some time now and thought I'd ask here to get some starting points. I am a reasonably accomplished programmer with Delphi and Objective-c experience but have never even listened to a device port / interupt (I dont even know the terminology) let alone programmed a piece of hardware. To start with what I would like to be able to do is, Buy a simple bit of kit with 2,3 or 10 buttons Plug the device into my pc via

What are some ideas for an embedded and/or robotics project?

一个人想着一个人 提交于 2019-12-03 03:58:50
问题 I'd like to start messing around programming and building something with an Arduino board, but I can't think of any great ideas on what to build. Do you have any suggestions? 回答1: I show kids, who have never programmed, or done any electronics before, to make a simple 'Phototrope', a light sensitive robot, in about a day. It costs under £30 (GBP) including Arduino, electronics and off-the-shelf mechanics. If folks really get into mobile robots, the initial project can grow and grow (which I

Why are C, C++, and LISP so prevalent in embedded devices and robots?

自古美人都是妖i 提交于 2019-12-03 03:47:30
问题 It seems that the software language skills most sought for embedded devices and robots are C, C++, and LISP. Why haven't more recent languages made inroads into these applications? For example, Erlang would seem particularly well-suited to robotic applications, since it makes concurrent programming easier and allows hot swapping of code. Python would seem to be useful, if for no other reason than its support of multiple programming paradigms. I'm even surprised that Java hasn't made a foray

Linux automatically restarting application on crash - Daemons

风格不统一 提交于 2019-12-03 03:26:43
I have an system running embedded linux and it is critical that it runs continuously. Basically it is a process for communicating to sensors and relaying that data to database and web client. If a crash occurs, how do I restart the application automatically? Also, there are several threads doing polling(eg sockets & uart communications). How do I ensure none of the threads get hung up or exit unexpectedly? Is there an easy to use watchdog that is threading friendly? The gist of it is: You need to detect if the program is still running and not hung. You need to (re)start the program if the

How to do code coverage on embedded

岁酱吖の 提交于 2019-12-03 03:20:37
I write a project for a non POSIX embedded system so I cannot use gcc option --coverage (i don't have read or write). What else can I do to produce gcov like output. I do have an output function. It can be most easily done with by a processor with embedded trace, a board design that exposes the trace port, and a suitable hardware debugger and associate software. For example, many Cortex-M based devices include ARM's embedded trace macrocell (ETM), and this is supported by Keil's uVision IDE and ULINK-Pro debugger to provide code coverage and instruction/source level trace as well as real-time