embedded

How do I configure the Linux kernel within Buildroot?

可紊 提交于 2019-12-18 11:37:47
问题 I'm trying to build a rootfs for an x86 target, which is all simple enough. However I can't figure out how I configure the kernel that buildroot produces. The first run through came up with menuconfig, but it's cached the .config since then and I can't see where to change it. ~650MB of kernel modules don't do good things to an embedded target :P Is there an easy way to configure the kernel within buildroot? Something like the uclibc-menuconfig target would be perfect. 回答1: I always do the

Unit testing patterns for microcontroller C code

与世无争的帅哥 提交于 2019-12-18 10:52:35
问题 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. 回答1: You write

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

陌路散爱 提交于 2019-12-18 10:08:25
问题 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. 回答1: 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

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

僤鯓⒐⒋嵵緔 提交于 2019-12-18 10:07:39
问题 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. 回答1: 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

Anyone using Python for embedded projects? [closed]

不羁的心 提交于 2019-12-18 09:55:17
问题 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 4 years ago . My company is using Python for a relatively simple embedded project. Is anyone else out there using Python on embedded platforms? Overall it's working well for us, quick to develop apps, quick to debug. I like the overall "conciseness" of the language. The only real problem I have

Setting internet time server on windows embedded standard through batch or similar

纵然是瞬间 提交于 2019-12-18 09:05:50
问题 I have a PLC running windows embedded standard where I make some installations and modifications specific to my company's software as part of our installation process (which is all manual today). I'm now in the process of automating this procedure. I want to set the Date and time properties->internet time server to pool.ntp.org through a batch file or similar. The command w32tm is not recognized. I've tried using the command net time /setsntp:pool.ntp.org which returns the command completed

How to detect two or more button press (GPIO) at the same time by a microprocessor/microcontroller?

依然范特西╮ 提交于 2019-12-18 08:49:43
问题 As mentioned in the question , I was wondering whether it is possible for the controller to detect two button press simultaneously. I am new to controller programming and started with the basics - blinking LED, then moved to buttons and now trying to play around button presses. I wanted to set some flag when both buttons are pressed together . But as of I know, Only one ISR will be called in this case, thus detecting a single press. How can we achieve this... (In some electronic devices, it

Embedded C - Too many arguments to function (pointer)

折月煮酒 提交于 2019-12-18 06:27:09
问题 I am trying to invoke the following macro in my .cpp file: #define IAP_ROM_LOCATION 0x1FFF1FF1UL #define IAP_EXECUTE_CMD(a, b) ((void (*)())(IAP_ROM_LOCATION))(a, b) However, when I call said function like so: IAP_EXECUTE_CMD(0, 0); I get an error saying too many arguments specified? How is this? I would appreciate any pointers. Development environment is GCC for Cortex-M3. 回答1: For readability, define a signature for the function to be called: typedef void signature_t(int, int); Then you can

Embedded C - Too many arguments to function (pointer)

心不动则不痛 提交于 2019-12-18 06:27:05
问题 I am trying to invoke the following macro in my .cpp file: #define IAP_ROM_LOCATION 0x1FFF1FF1UL #define IAP_EXECUTE_CMD(a, b) ((void (*)())(IAP_ROM_LOCATION))(a, b) However, when I call said function like so: IAP_EXECUTE_CMD(0, 0); I get an error saying too many arguments specified? How is this? I would appreciate any pointers. Development environment is GCC for Cortex-M3. 回答1: For readability, define a signature for the function to be called: typedef void signature_t(int, int); Then you can

C pointers vs direct member access for structs

这一生的挚爱 提交于 2019-12-18 04:08:37
问题 Say I have a struct like the following ... typedef struct { int WheelCount; double MaxSpeed; } Vehicle; ... and I have a global variable of this type (I'm well aware of the pitfalls of globals, this is for an embedded system, which I didn't design, and for which they're an unfortunate but necessary evil.) Is it faster to access the members of the struct directly or through a pointer ? ie double LocalSpeed = MyGlobal.MaxSpeed; or double LocalSpeed = pMyGlobal->MaxSpeed; One of my tasks is to