I'm working with an ARM Cortex M4 microcontroller that has a DMA, or peripheral DMA controller. One requirement of the DMA is that it cannot access pointers to addresses that exist in flash, but only pointers to addresses that are in RAM. Is there a way to determine if a particular pointer points to flash or RAM? If not, I think I need to actually initialize a buffer in RAM then strcpy or something like that to transfer what is in flash into RAM so the DMA can read it.
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by Eugene Sh
Serial protocol delimiting/synchronization techniques
As asynchronous serial communication is widely spread among electronic devices even nowadays, I believe many of us have encountered such a question from time to time. Consider an electronic device and a computer connected with serial line (RS-232 or similar) and required to exchange information continuously. I.e. is sending a command frame each , and is replying with status report/telemetry frame each (The report can be sent as response to requests or independently - doesn't really matter here).
How NOT gate generates power
The gate does not generate power. This is how a NOT gate might look inside (from Wikipedia): When A = 0 (an off input), the transistor on the top conducts and the bottom transistor doesn't, thus Q will be approximatelly Vdd. The opposite is true, when A = 1, the transistor on the bottom conducts and the transistor on the top doesn't, giving Q = Vss.
Is Beaglebone Black microcontroller or computer?
The Beaglebone Black is an SBC (single board computer). It contains a AM335x ARM® Cortex-A8 which is a microprocessor (not microcontroller) with some peripherals, including two 32-bit 200MHz co-processors intended for real-time processing.
Is BeagleBone Black a microcontroller or computer?
I started working on BeagleBone Black, and I cannot find out whether BeagleBone is a microcontroller, or some kind of computer? If computer, what makes it a computer? I worked on different Cortex-M microcontrollers, but I am not sure what BeagleBone really is.
What tests should I perform before I claim my enclosure is Type 1?
Well, you can also call it a banana type 1 enclosure then or whatever else you want, because the name is rather meaningless, if it is not bound to a specification. I guess you are referring to the NEMA enclosure types, which states type 1 to be The purpose of this document is to provi de general information on the definitions of NEMA Enclosure Types to architects, engi neers, installers, inspectors and other interested parties.
Why do I first need to set a value and then direction of the GPIO in an embedded processor?
I have a full time job as a firmware engineer. I've recently been given a task to review GPIO configurations and change the settings as needed. I found a few pins that were incorrectly configured so naturally I reconfigured them, however I was told I did it in the wrong order. Here is what I'm talking about: However during the code review I've been told that I need to change the order of initialization to the following: In other words set the value first and then set direction of the pin.
Why I first need to set a value and then direction of the GPIO in an embedded processor?
I have a full time job a firmware engineer. I've recently been given a task to review GPIO configurations and change the settings as needed. I found a few pins that were incorrectly configured so naturally reconfigured them, however I was told I did in the wrong order. Here is what I'm talking about: However during the code review I've been told that I need to change the order of initialization to the following: In other words set the value first and then set direction of the pin.
Why does measuring the voltage drop across a thing not simply measure the battery voltage?
[I'm ignoring non-ideal behavior since that doesn't seem to be what you're interested in.] Your assumption is wrong. Measuring the voltage drop across the resistor does measure the battery voltage. The battery voltage and the resistor voltage are the same in your circuit. The general rules are: Components in parallel share the same voltage Components in series share the same current Ideally, adding or removing the resistor doesn't change the voltmeter's measurement at all.
Can a photodiode distinguish between daylight and white/blue LED?
The peak spectral response of your photodiode is actually about 580 nm. So get rid of the blue/white LED, and go with a yellow-green ultra-high-brightness LED. Then get a narrowband filter at about the wavelength of your LED. Thorlabs, for instance, has a good selection for not too much money http://www.edmundoptics.com/optics/optical-filters/bandpass-filters/visible-bandpass-interference-filters/3429/.
String literals vs array of char when initializing a pointer
String literals have a "magical" status in C. They're unlike anything else. To understand why, it's useful to think about this in terms of memory management. For example, ask yourself, "Where is a string literal stored in memory? When is it freed from memory?" and things will start making sense. They're unlike numeric literals which translate easily to machine instructions. For a simplified example, something like this: ...
java - What is the difference between eclipse luna and juno etc - Stack Overflow
There are too many eclipse IDEs.I am wondering what is the real difference between LUNA,JUNO,KEPLEER, etc.? Thanks for your information.. put on hold as too broad by mabbas, BartoszKP, Mitch Wheat, Pshemo, Reimeus There are either too many possible answers, or good answers would be too long for this format.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with Eugene
Contact Eugene, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack