embedded

Install ssh server on embedded device

二次信任 提交于 2019-12-07 18:39:28
问题 I'm trying to connect to an embedded device through ssh . However, when trying to connect, I always get a connection refused message even when I try changing the port number. I've tried everything to resolve this issue, from changing the file in /etc/ssh/ to accept the specific port number, to sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT . After reading some comments, it came to me that maybe one of the problems is that I don't have ssh installed on my embedded device. So, how do I

Keyboard input in Qt

霸气de小男生 提交于 2019-12-07 17:54:02
问题 I am working on a Qt application running on embedded Linux. I am pretty new to this Qt business since I have just started it a month back, so understand that I'm not that object-oriented ... :P I have the Qt applications running on my target running Linux. The Qt documentation http://doc.qt.io/archives/qt-4.7/qt-embedded-pointer.html says that we have to enable touchscreen, USB keyboard, keypad, etc. by exporting certain variables. Namely, export QWS_MOUSE_PROTO=tslib:/dev/input/event1 export

High performance logging library for embedded applications

橙三吉。 提交于 2019-12-07 16:25:27
问题 I am looking for a high performance logging library that I will use on an embedded device. I also want to say that I previously used PaulBunyan logging library which provided an efficient method for transferring information. [By efficient I meant it had a solution for transferring only the __LINE__ and __FILE__ when sending data through a low speed interface (SERIAL for example) - of course a __LINE__ __FILE__ mapping was previously made by scanning the code]. Do you know such solutions or at

General JTAG working flow in an embedded development system?

妖精的绣舞 提交于 2019-12-07 16:17:05
问题 In my embedded project am using JTAG interface to download the code and to debug the downloaded application.But i don't know what is happening inside the JTAG set up. Can anyone please give me basic idea/flow(high level view) of the JTAG set up wich will really help me to understand my development system better. __Kanu 回答1: To add to Cliffords answer, there are some pictures here: http://www.fpga4fun.com/JTAG2.html The tap controller state machine is something you will see published ad

Why would a linker script have multiple section commands?

感情迁移 提交于 2019-12-07 14:45:02
问题 I have been reading the sections documentation for ld and something isn't clear. Given the partial linker script: MEMORY { FLASH1 (rx) : ORIGIN = 0x000FB000, LENGTH = 0x05000 FLASH2 (r) : ORIGIN = 0x000FA000, LENGTH = 0x01000 } SECTIONS { .some_code : { KEEP(*(SORT(.some_code*))) } > FLASH1 } SECTIONS { .my_page : { KEEP(*(SORT(.my_page*))) } > FLASH2 } Is there ever a reason to have 2 section commands in a single linker script as above rather than having it all in 1 section commands as below

How to cross compile Expect for ARM

北城余情 提交于 2019-12-07 14:32:40
问题 How does one cross-compile Expect for ARM? It is absolutely no problem to build it from source on a host Ubuntu machine. But if you try to cross compile it, the configure script constantly gives the following error: checking if WNOHANG requires _POSIX_SOURCE... configure: error: Expect can't be cross compiled There seems to be someone who found out how to do it here (but he doesn't elaborate): https://linuxlink.timesys.com/cross_compiling_expect I also took the source and patches from here:

how to remove all debug printf statements from c code

…衆ロ難τιáo~ 提交于 2019-12-07 14:22:40
问题 I want to remove all my debugging printf statements from my code .How can i do this without using conditional debugging by turning on/off debug statements? Iam using printf just to check whether a particular value is coming wright or not ...like below... : printf("value read %d\n", a); 回答1: No way you can do that, without removing them using your editor. What you can do is: Allen Holub recommends in his book to use the following debug macro: #ifdef DEBUG # define D(x) x #else # define D(x)

How to read SMS using AT on an embedded system with limited memory?

﹥>﹥吖頭↗ 提交于 2019-12-07 14:17:59
问题 I'm developing a piece of embedded software, which also communicates with a modem through the AT protocol. Now I want to read messages, but I have come across a problem with my memory capacity. It could be that there are multiple messages for me, and using the AT command set, I get them returned all at once. I do not have the memory capacity to store them all to process them (I only have 1KB or so). See the examples here: http://www.smssolutions.net/tutorials/gsm/receivesmsat/ I send AT+CMGL=

How can I enable Xcode refactor options for an external build project?

旧时模样 提交于 2019-12-07 13:49:21
问题 I want to use XCode as an IDE for developing some AVR code. I did the following 1) create new project 2) select external build system 3) indicated i want it to be make, and told it NOT to "Pass build settings in environment" 4) copied my .c/ .h/Makefile into the same directory i created the project in 5) added the .c/ .h files to the project/target 6) verified that i can build (make) from both command line and Xcode But I cannot use any of the refactor menu options, or jump to/reveal options.

STM32F207 I2C test failing

邮差的信 提交于 2019-12-07 12:56:38
问题 I am learning embedded development on the STM3220G-EVAL board with the STM32F207 microcontroller. I have tried to test the I2C interface by interfacing the two I2C2 and I2C3 modules on the same chip and sending/receiving a character. Here is the code I have currently written (using mdk-arm 5): #include <stm32f2xx.h> volatile uint8_t data = 'a', recv = 'x'; void i2c_init(void); void I2C2_EV_IRQHandler(void) { volatile uint16_t stat, dummy; stat = I2C2->SR1; switch(stat) { // SB set; read SR1