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 8 years ago.
Improve this question
I'm trying save data in memory on LPC1768. I want to load data when I put on the microcontroller. I expect data don't erase when I put off the machine.
I'm programming in C. I would need a example code in C but I fount a example code in C++ only: http://developer.mbed.org/users/okano/code/IAP/
Thanks everybody. Bye.
You can write data to the flash on the LPC1768 using the IAP commands documented in the user manual in Chapter 32 "Flash memory interface and programming". Specifically, section 32.8 documents the IAP (In Application Programming) commands that let the program running on the device write to flash. Or you can write to the flash using the ISP (In-System Programming) serial port protocol documented starting in section 32.3.
You can use a tool like Flash Magic or lpc21isp to program using the ISP protocol if you don't want to roll your own.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I'm tying to convert a MFRC522 arduino chip to an USB device so as to use it natively on windows (with a cli or software) and without an Arduino. I don't know if I was clear (sorry for my bad english). Can anyone help me to do this.
No, you can't do that because you need some mediation between the RFID reader and the PC USB port.
You don't have to use Arduino, but you do need a processor to "translate" the information from the reader and some hardware to speak to USB.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I need o write a kernel mode driver that plays a note when a key is pressed. I can capture keystrokes but I have no idea how to play sound from kernel. What do I have to do to play a sound? I am brand new to creating drivers.
I need o write a kernel mode driver that plays a note when a key is pressed.
Why?
Seriously, why. What's the reasoning behind this "need"? What's the true reason for the need to play a sound? Maybe there is a better way.
Assuming a PC, with the pcspkr module loaded, you can of course call its functions. But if you want to play something through the soundcard, you'll essentially have to "open" an ALSA device (inside the kernel), and call its fops, all along while user space may do the same thing.
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 7 years ago.
Improve this question
Is there anything as low level as that on any Linux distribution? My overall goal is to redirect the message (instruction) meant for the GPU.
That means I would have to be able to program a driver between the CPU and the GPU which redirects any message to where I'd like (like a packet sniffer, but for GPU instructions and one that would stop the info there).
Is there any native Linux support for this kind of thing? Where do I start and what OS is most recommended for this kind of access?
You would need to modify the GPU driver. There you can insert logging or whatever other redirection you have in mind. Since many graphics drivers on Linux are open-source, this should be possible for many graphics cards. But take note that it won't be portable--you'll need to write some separate code for each major variant of GPU you want to support.
If you have something more specific, like that you're trying to capture OpenGL commands, that might make things easier.
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 8 years ago.
Improve this question
I would like to write virtual machine. Ideally I want to write program, which will be run(emulate) windows 7(from .iso) and show it in window on Windows 7 parent. But I can't understand how to do it. I understand how to emulate cpu, for example, just write wrapper(interface) which will be provide real cpu resources(http://www.codeproject.com/Articles/43176/How-to-create-your-own-virtual-machine), but what next? how to run OS, which will be use this abstraction interface of cpu. Bios starts OS, should I emulate bios? how to do it? From what should I start? Please, describe me the basic steps to implement my task.
Thank you very much!
I'm sure years and years of work go into these type of programs. However, to get a taste of emulating CPU and coding it yourself, have a look at nand2tetris.
It starts by looking at the logic and arithmetic first, slowly working your way towards program control, high-level language and making a operating system.
Hope this helps!
(BTW it provides all materials and software for free!)
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 9 years ago.
Improve this question
I'll start by explaining what I'm looking to do.
I have a BeagleBone Black running Ubuntu 13.04, and this TFT LCD w/touchscreen.
There is a library for the touchscreen that can be used with an Arduino to draw primitive graphics and text on the screen. However, instead of just adapting this library to run on the BeagleBone, I would like to write a driver for this LCD that would allow me to display a GUI created with Qt.
According to Qt's website, embedded Linux applications are written directly the frame buffer.
I have been using this book for reference when writing drivers, but I have not been able to find much information about how the frame buffer works and how it would interact with the LCD driver.
My questions:
Do I have to implement my own frame buffer in order to use Qt to draw a GUI on this screen?
If so, will I have to implement a separate driver for the screen to interact with the frame buffer, or would the frame buffer also handle sending the data to the screen?
Can anyone suggest any examples or reference materials on developing drivers for LCD screens?