embedded

What is the best Evaluation Kit for Learning Embedded C/C++ Development? [closed]

 ̄綄美尐妖づ 提交于 2019-11-30 00:39:27
I am trying to improve my embedded C/C++ development on ARM architecture. I have recently moved from 68K development to ARM and wanted to use some of my spare time to dig into the platform and learn the best practices especially on developing for mobile platforms. Preferably 32bit architecture will be helpful with supporting development tools. A bit of fun during the learning process may enhance my understanding of the platform ST Micro has a very attractively priced (and packaged too) kit for their ARM Cortex-M3 based STM32 line. MSRP runs about US$35 for the STM32-PRIMER with 128x128 color

Strategy for feeding a watchdog in a multitask environment

落花浮王杯 提交于 2019-11-30 00:22:49
Having moved some embedded code to FreeRTOS, I'm left with an interesting dilemma about the watchdog. The watchdog timer is a must for our application. Using FreeRTOS has been a huge boon for us too. When the application was more single-tasked, it fed the watchdog at timely points in its logic flow so that we could make sure the task was making logical progress in a timely fashion. With multiple tasks though, that's not easy. One task could be bound up for some reason, not making progress, but another is doing just fine and making enough progress to keep the watchdog fed happily. One thought

Unit testing patterns for microcontroller C code

断了今生、忘了曾经 提交于 2019-11-30 00:05:19
Although there are plenty of unit test frameworks that support C, I'm a little stumped on how to write unit tests for micro controller code (PIC in my case, but I think the question is more general than that). Much of the code written for micro controllers revolves around Writing configuration and data values to registers, reading incoming data from registers and responding to interrupt events. I'm wondering if anyone can provide some pointers on the most effective way to this. You write; "Much of the code written for micro controllers revolves around Writing configuration and data values to

Embed JVM into micro-controller [closed]

风格不统一 提交于 2019-11-29 22:50:45
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I am new in embedded world. May be I am wrong. But I want a relevant solution. I just want to embed java environment into a MCU for ease to develop application. The MCU vendor have provide the C library for lcd, sensor, spi, buttons, UART, DIO etc etc. Can I embed java into this ?

Switching from std::string to std::wstring for embedded applications?

时光怂恿深爱的人放手 提交于 2019-11-29 22:44:57
问题 Up until now I have been using std::string in my C++ applications for embedded system (routers, switches, telco gear, etc.). For the next project, I am considering to switch from std::string to std::wstring for Unicode support. This would, for example, allow end-users to use Chinese characters in the command line interface (CLI). What complications / headaches / surprises should I expect? What, for example, if I use a third-party library which still uses std::string? Since support for

What is the role of .s files in a C project?

蹲街弑〆低调 提交于 2019-11-29 22:20:26
I am working with an ARM Cortex M3 chip (STM32F2) and ST provides a "standard peripheral library". It has some useful .c and .h files. It also has .s files. What is the purpose of these .s files in the context of a C project? How do I get my compiler/linker/? to take them into account? The .s extension is the convention used by GNU and many other tool-chains for assembler files. Last I looked the STM32 Standard Peripheral Library itself contains no assembler files, however the CMSIS library contains start-up code for various STM32 parts, for example startup_stm32f2xx.s is start-up code for all

Use the right tool for the job: embedded programming

独自空忆成欢 提交于 2019-11-29 21:52:51
I'm interested in programming languages well suited for embedded programming. In particular: Is it possible to program embedded systems in C++? Or is it better to use pure C? Or is C++ OK only if some features of the language (e.g. RTTI, exceptions and templates) are excluded? What about Java in this domain? Thanks. Is it possible to program embedded systems in C++? Yes, of course, even on 8bit systems. C++ only has a slightly different run-time initialisation requirements than C, that being that before main() is invoked constructors for any static objects must be called. The overhead (not

How “Real-Time” is Linux 2.6?

£可爱£侵袭症+ 提交于 2019-11-29 20:41:20
I am looking at moving my product from an RTOS to embedded Linux. I don't have many real-time requirements, and the few RT requirements I have are on the order of 10s of milliseconds. Can someone point me to a reference that will tell me how Real-Time the current version of Linux is? Are there any other gotchas from moving to a commercial RTOS to Linux? You can get most of your answers from the Real Time Linux wiki and FAQ What are real-time capabilities of the stock 2.6 linux kernel? Traditionally, the Linux kernel will only allow one process to preempt another only under certain

Using C++ in an embedded environment

大城市里の小女人 提交于 2019-11-29 20:28:06
问题 Today I got into a very interesting conversation with a coworker, of which one subject got me thinking and googling this evening. Using C++ (as opposed to C) in an embedded environment. Looking around, there seems to be some good trades for and against the features C++ provides, but others Meyers clearly support it. So, I was wondering who would be able to shed some light on this topic and what the general consensus of the community was. 回答1: It sort of depends on the particular nature of

How do I make an embedded Android OS with just one app?

半世苍凉 提交于 2019-11-29 19:54:35
I would like to make my own embedded system built on Android (ARM) just using devices distributed with Android but without their launcher. OR I want to start Android with my application launched on top and refuse to close it and shutdown Android from my app. Karim Yaghmour Essentially you're trying to have a custom build of the AOSP where the "Home" is your application. If you look into /packages/apps/Launcher2 you'll find the code for the default Home screen. If you look at the AndroidManifest.xml file in there, you'll see something like this: <activity android:name="com.android.launcher2