Questions tagged [firmware]

Firmware is one of the most often used terms to denote the fixed programs and/or data structures that internally control an electronic device.

The wiki page describes firmware as the combination of persistent memory and program code and data stored in it.

Typical examples of devices containing firmware are embedded systems (such as traffic lights, consumer appliances, and digital watches), computers, computer peripherals, mobile phones, and digital cameras. The firmware contained in these devices provides the control program for the device. Firmware is held in non-volatile memory devices such as , , or .

Changing the firmware of a device may rarely or never be done during its economic lifetime; some firmware memory devices are permanently installed and cannot be changed after manufacture. Common reasons for updating firmware include fixing bugs or adding features to the device. This may require physically changing ROM integrated circuits, or reprogramming flash memory with a special procedure.

Firmware such as the ROM of a personal computer may contain only elementary basic functions of a device and may only provide services to higher-level software. Firmware such as the program of an embedded system may be the only program that will run on the system and provide all of its functions.

640 questions
3
votes
2 answers

HDLC Frames - Octets/modulo 8 doubts

I am trying to implement the HDLC frame format type 3 and I have some doubts as regards Octets/Modulo 8 encoding of frames. Firstly, Is the HDLC frame transmitted entirely in Octets? What do they mean by a frame is 'n' Octet in length? Please give…
Paul A.
  • 449
  • 1
  • 4
  • 22
3
votes
1 answer

Most hardware is controlled at the driver level through memory mapped handles. How is RAM controlled? Is there a spec for it?

I'm just getting into the massive topic of learning UEFI driver development and from what I understand so far, hardware peripherals are controlled using specific addresses mapped to memory. Well, the memory is hardware too. Is it not controlled by…
J.Todd
  • 707
  • 1
  • 12
  • 34
3
votes
1 answer

Does UEFI replace standards like SMBIOS and ACPI?

I always wondered, as a developer with little experience in what goes on behind the OS, why is firmware such a mess. I'm trying to understand at least where the pieces fit. Is UEFI trying to replace all these previous standards for interacting with…
Mihai
  • 509
  • 5
  • 14
3
votes
0 answers

Android BLE DFU multiple devices update one after another...But some devices fails to update

By using nordic Dfu library (updated) I have to update firmware of devices in one go,I have mac addresses of devices which required to update, let say i have 30 devices with their mac addresses and have to update one after another, By using nordic…
3
votes
1 answer

.inc File Not Included Reliably

I am working on some HTML code that was inherited from another programmer, which uses include statements of the form: ~inc:filename.inc~ However, the problem I am encountering is that this include statement does not work reliably. About 90% of the…
CodeRedd
  • 283
  • 1
  • 4
  • 14
3
votes
1 answer

AOSP incremental OTA Signature verification failed

I'm trying to implement the incremental OTA update process for my custom Android ROM based on Android 7.0 Nougat. I've managed to build the first and second(modified) version of the firmware, so I have the first and second target_files.zip. I've…
3
votes
1 answer

Code signing of embedded firmware: Is a CRC enough when the firmware is encrypted?

I'm writing a firmware for an embedded system (microcontroller). The firmware can be updated by a bootloader (also written by me). Now there is a requirement to take measures to prevent manipulation of the firmware, so the system must only execute…
user5234015
3
votes
0 answers

Is it possible to know if a user rejected bluetooth pairing on iOS?

So I am developing an application which interacts with a bluetooth peripheral, and I am running into the issue that there is currently no way to tell if the user rejected the peripheral's pairing request or not. The current flow which is implemented…
sak
  • 2,612
  • 24
  • 55
3
votes
1 answer

What is Control Flattened Device Tree of U-Boot?

According to this blog and Uboot docs, U-boot.bin contains a device tree called Control FDT(Flattened Device Tree). Where can I find this dtb or its source in U-boot source tree? Can you supply me an example or a doc about ctrl-FDT (FDT in the…
Saleh
  • 1,819
  • 1
  • 17
  • 44
3
votes
1 answer

Trying to understand ADC of STM32L4

I have difficulties understanding how STM32 ADC works. I want to do something simple ie. sample and convert regularly ( @ 250Hz ) on 2 GPIOs. For now I did it in a "dummy" way: setup ADC in basic single mode, then launch a timer @250Hz and at each…
Guillaume Petitjean
  • 2,408
  • 1
  • 21
  • 47
3
votes
1 answer

C - Warning [pe069] integer conversion resulted in truncation

I know that this question has been asked several times, anyway I didn't find and answer to my specific case: IAR Embedded Workbench returs this warning on compiling: "Warning [pe069] integer conversion resulted in truncation" on the…
gigapico00
  • 417
  • 1
  • 7
  • 24
3
votes
2 answers

Is it possible to delay resolving a .weakreference in gcc-as until link time? (GCC)

If you want to declare .weakreference for a set of interrupt vectors such as: .weakreference ISR_SPI_HANDLER, defaultExceptionHandler in a startup.S file or some framework include, it's very useful except that if you then declare ISR_SPI_HANDLER as…
Andrew Pikul
  • 261
  • 2
  • 12
3
votes
4 answers

Testing firmware

This follows a couple of other questions (but I think I have refined my question better). I want to test out my firmware code before I put on the device. I realize that a lot of people write their code, upload, test, etc. But I really want to…
cbrulak
  • 15,436
  • 20
  • 61
  • 101
3
votes
1 answer

USB (SCSI) firmware development - how to handle removable media

I'm developing a USB mass storage device. I got the device basically working (it's too slow, but that's another conversation). What isn't working as well as I'd like is handling device removal - not from the USB end, but the USB device presenting…
nsayer
  • 16,925
  • 3
  • 33
  • 51
3
votes
1 answer

Energy economy: BLE device - when to make connectable?

I am designing custom BLE device protocol. My Device will be one of - Scales, Blood Pressure Monitor, Fitness Band. The Protocol defines the collection procedure that my Android/iOS app (Collector) will use to collect sensor data from one of these…
Drew
  • 3,307
  • 22
  • 33