Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [firmware]

Firmware refers to software running on an embedded system or microcontroller to control hardware directly.

2
votes
3answers
197 views

How to prevent someone clone PIC [closed]

ACT 1 Okay I know there is code protection system on PIC. But it is preventing someone read the code, not copy. It looks still easy to clone and run on another circuit. Can you suggest another ...
0
votes
0answers
21 views

Simple relocatable image format options

I am writing firmware for an ARM platform in which I want to have the main bootloader relocatable in memory rather than always loaded at a fixed address during boot. This means that I need a ...
0
votes
1answer
33 views

Is Pull-up present by default?

I'm using the MC9S12DP512, Motorola's microcontroller. I was executing a service and ,at the end, I put low logic level at the pins PS4, PS5 and PS6, then after that, I configured these pins as inputs....
0
votes
2answers
536 views

if(){} else{} if(){} VS if(){} else if(){} in PWM control [closed]

I'm using timer0 and a gpio pin to generate a 300Hz PWM signal on an ATmega2560. The details if you care: F_CPU=16M, timer clock prescaler /256, count_max=208 The frequency changes depending on if I ...
1
vote
2answers
91 views

OTA Programming of STM32

I am currently using ST32L152RE controller interfaced with BLE CC2640R2F module and 4 MB external flash memory interfaced through spi. I was trying to upgrade the firmware of my st controller using ...
0
votes
2answers
117 views

Garbage data when using UART on atmega2560

(updates at bottom) I am using an Arduino Mega with the SoftwareSerialExample sketch on it to send and receive bytes through UART on my ATmega2560 (which is actually on a Arduino Mega Board). ...
0
votes
1answer
36 views

Separate Vector Table for USB Bootloader (Infineon 4400-CortexM4F)

I am developing a USB bootloader for Infineon XMC 4400 micro . I have modified linker_Script.ld file and have allocated 32K for flash. MEMORY { ...
0
votes
2answers
140 views

Using Arduino Mega as Atmega2560 AVR development board with Atmel Studio 7

(updates at end) Qualifier: I am posting this here and not on the Arduino Stack Exchange because my question is about firmware development and not Arduino development. Project: I am designing a PCB ...
1
vote
0answers
31 views

Is it possible to use EL3 on an AllWinner SoC (R18)?

I have been looking for a cheap development board to play around with ARMv8 EL3 mode in the interest of writing a monitor. I stumbled across the PINE64 recently and it seemed like a great fit. It used ...
0
votes
2answers
98 views

Reverse engineering SREC firmware

I have a firmware from a long discontinued product that I would like to improve on. The firmware is in a .mot file format (SREC from my research) and is uploaded using a tool called M16C asynchronous ...
3
votes
3answers
309 views

How to define 14-bit lookup table for PIC/XC8 (if it's possible to do without assembly)?

I'm writing the firmware for a simple testing device that would need to store a very large lookup table (I need 13500 entries with values 0..100 decimal). The target PIC MCU is PIC16F1829 (8K words of ...
0
votes
0answers
42 views

Can we store hex data through UART into flash and RUN it from that particular location

I am trying to store my hex file in another sector of the flash memory i.e (0x00050000) I want to store a hex file at different sector of the flash and to change the execution point to that address ...
3
votes
4answers
266 views

Error handling in embedded systems development

I am developing a Firmware and I am using 3 layers: Driver, Platform and Application. In order to handle the communication between these layers, I am using an approach where each function will return ...
0
votes
1answer
64 views

On-board ST-Link Firmware

There is an on-board ST-Link on STM32F4Discovery board based on STM32F103 MCU. If I have to use this circuit in my design then where could i get the ST-Link firmware for STM32F103 MCU?
3
votes
2answers
170 views

Multiple(five) alarm time setting in stm32f0 mcu

I am working on my hobbyist project and need to develop the alarm timings. And RTC and Timer are new for me and I am confused in RTC Alarm time setting. I need to make alarm with RTC for five ...
0
votes
1answer
523 views

STM32L011 jump to bootloader from user code

I'm trying to make it so that my STM32L011 can jump from user code to the ST bootloader that allows flash to be reprogrammed over USART2. This is hypothetically the same question as STM32F091 Jump to ...
1
vote
3answers
142 views

Embedded Firmware Question - Memory dump

Ok so the back story is this. I landed an online code interview with a company that shall remain nameless. I know I am not ready for a job there but I was basically given the chance by an insider. ...
0
votes
1answer
59 views

What physical tool to use to quickly dump firmware?

Recently, I managed to take a dump of the firmware and write a modified one using the pins that I marked with red by soldering 4 thin wires to those points. Now, I needed to perform this more than 50 ...
1
vote
0answers
49 views

Flashing firmware using RPi3

I have been trying to flash firmware onto the PC Engines APU2 platform. I'm using an SPI interface. RPi3's SPI is hooked up to the three-state quad buffer SN74LV125AD. For now, it is just a proof of ...
0
votes
1answer
104 views

Single Board Computer with no hardware memory for firmware [closed]

Im looking for a SBC that has Completely no hardware memory for the firmware (e.g BIOS, ,etc.), i think raspberry pi has that, except the bootloader which is ROM OR All firmware memory on the ...
3
votes
3answers
240 views

C to C++ How do I make h/w initialization look neat? [closed]

Doing an experimental conversion of some firmware from C to C++ to try and get a better structure in it, since the C code "evolved" in line with experiments across a 2 year period. The question is ...
0
votes
4answers
177 views

How firmware [like BIOS] gets added to hardware

I am reading about BIOS, which is a piece of non-volatile Firmware. Wikipedia says of firmware: Common reasons for updating firmware include fixing bugs or adding features to the device. This may ...
16
votes
5answers
2k views

Possibilities for allocating memory for modular firmware design in C

modular approaches are pretty handy in general (portable and clean), so I try to program modules as independent of any other modules as possible. Most of my approaches are based on a struct that ...
1
vote
0answers
69 views

LED-Monitor-Firmware reverse engineering / disassembly => replace manufacturer startup logo

I have a display from a disassembled led-monitor (Wortmann Terra 2446W), that I want to use for a SmartMirror-project. Unfortunately, the monitor shows a big manufacturer logo when connected to power, ...
0
votes
0answers
58 views

Read data from MB85RS2MT using bus pirate

edit: I guess I'm targeting the wrong chip in the first place... FRAM chips doesn't seemed to be storing firmware. But I'm still willing to learn more about the question I asked. Original post: Hi! ...
1
vote
1answer
46 views

Serial protocol and connector choice for tethered firmware distribution project

I am designing a system in which a central host controller that has a cellular internet connection is going to be used to query/control/flash intermittently tethered (wired) nodes. The central host ...
0
votes
0answers
68 views

How to combine uBoot, uImage and rootfs to flash them into EEPROM?

So, I'm trying to restore an IP camera that uses HiSillicon 3518EV200 SoC, after I accidentally overwrote the original firmware. Using a buildroot fork that includes all the necessary bits from the ...
18
votes
4answers
5k views

How does factory reset work?

All embedded devices includes a "Factory reset" option that allows the user to reset his device if something is wrong. I am developing a Firmware on an STM32 board. The firmware includes a boot ...
0
votes
1answer
58 views

ESP8266 12F doesn't work when programmed with arduino, but works fine with AT commands

So, I got this webserver running using: http://arduino.esp8266.com/stable/package_esp8266com_index.json V2.4.1 ...
10
votes
4answers
1k views

Encoding version or configuration on PCB

I need to encode information about either version or configuration on the board/electrically, so the firmware can detect which board layout is used. What options are possible and what are their pro/...
0
votes
1answer
99 views

What is the Microcode in the Intel's Linux Microcode update?

I am a bit confused as to the use of the word microcode in the following links: https://downloadcenter.intel.com/download/27591/Linux-Processor-Microcode-Data-File?product=873 https://newsroom.intel....
0
votes
0answers
888 views

STM32L4 bootloader unable to enter application

I've been following bootloader guide here and trying to write a bootloader that simply turns an LED on when entering a pushbutton-induced performFirmwareUpdate(). I'm using the ARM GNU toolchain in ...
0
votes
2answers
1k views

Upgrading firmware of SIM800C

My SIM800C, feeded directly from a 4.0V Li-ion battery (or once, from a Delta bench PSU) through a 1500 µF capacitor, instantly turns off when it wants to join to my 2G+ European network (e.g. in <...
0
votes
0answers
83 views

nRF51822 bricked after faulty boot loader

I have a custom board (a chinese game pad) which uses a chip named n51802, which according to nordic is a “custom” nrf51822 - completely compatible with it though. I “accidentally” (fiddling around) ...
1
vote
2answers
118 views

Is there any advantage to use a PLL with unitary frequency gain?

I am not a very experienced firmware developer, so I came across this doubt when I was reading the datasheet of a microcontroller: In my application, I will use a crystal to generate a clock signal ...
0
votes
1answer
723 views

STM32 External Interrupt via GPIO cannot be triggered after waking up from STOP mode

I have a problem with a project based on an STM32L051. I want to use the stop mode and wake up on an external (GPIO based) IRQ. This all works great but after the MCU woke up once, no IRQs seem to ...
4
votes
0answers
282 views

How to develop for the NRF24LE1? [closed]

I found about the nRF24LE1 chips a while ago and they seem perfect for really small applications that require RF since they are the same as the well-known nRF 24L01 but include an 8051 MCU and memory. ...
1
vote
1answer
62 views

Project Collaboration Tools [closed]

I formed a startup business six months ago. The first product has been designed consisting of a PCB, some firmware, verification tests, and some supporting PC-based application software. The first ...
1
vote
1answer
98 views

Distinguish between hardware or firmware issue

I'm writing a firmware for CC3220SF from TI using a custom board I've designed. I'm facing a weird behavior and I'm not sure if it's hardware or firmware related. Here I'm looking for some hints ...
1
vote
2answers
108 views

Design decision for dynamic firmware loading?

I've noted that some device drivers in Linux have a dependency on the device firmware. The firmware is usually a binary that the driver loads on the device (like a USB wifi dongle). This question is ...
-4
votes
1answer
973 views

Problem using RFID RC522 with Arduino. Please help, Urgent need

I am using an RFID RC522 with Arduino but, Arduino is not detecting the RFID connected to it, its showing error. so for this, i ordered a new RFID reader and still, the problem remains the same, I ...
1
vote
2answers
213 views

ADS1234 and STM32L

I am attempting to use the SPI2 peripheral on the STM32L471RG microcontroller in order to communicate with the ADS1234 and wanted to run my thoughts past some of you more experienced firmware ...
2
votes
1answer
89 views

On IAR's EWARM package, what is the difference between the built-in MISRA C checker and CSTAT's MISRA C checker?

A bit of background: Our team will be programming firmwares for ARM microprocessors. Programming codes should comply with the MISRA C standard. We have decided to check IAR's EWARM package: https://...
0
votes
2answers
461 views

Is possible to update the firmware of the PN532 chip?

I want to know if is possible to update the firmware of the NFC chip PN532 from NXP. If it is, how can this be done? If this isn't the appropriate Stack exchange site please move the question.
0
votes
1answer
47 views

Cypress FX3 CyU3PToolChainInit Understanding help

I don't understand the purpose of the CyU3PToolChainInit function that is written in assembly source code for the FXE. As for as I know it clears the BSS area and enters the main function, but how is ...
4
votes
1answer
956 views

Is there a preferred encryption scheme for encrypting firmware builds on external flash?

I have a product that is going to be deployed in large numbers, and I want to maximize the trouble that someone is going to go through to reverse engineer it (a high level of security). It is an ...
0
votes
1answer
1k views

UART on PIC16F1829 - RCIF Interrupt for RX pin not working, cannot receive anything even with polling

Code is written in MPLABX v4.00 with XC8 compiler. I am new to writing firmware for 8-bit PICs and could use some help with my code. I am using a PIC16F1829 for an LED module which gets RX commands. ...
0
votes
1answer
103 views

Why does SendChar code of UART different between IRQ and Polling?

Now I'm trying to analyze STM32F103 Cortex-m3's UART code in IRQ and Polling mode. Ans I found 2 types example code such as the below. This is IRQ. ...
1
vote
2answers
113 views

Is that possible to know micro controller pin voltage and current without using multimeter?

So, the condition is there is a Photo Voltic (PV) module connected to a microcontroller (directly to pin 5 and assume that PV module is generating 3V, hypothetically!). I am wondering if I can some ...
0
votes
1answer
141 views

Anyone knows how X86 platform set the PCIe bifurcation at boot up?

I got a question about the PCIe bifurcation setting when booting up in X86 system. Normally, we can set the PCIe controller to be X16, two X8, or four X4 in the UEFI shell menu. However, there is an ...