Questions tagged [firmware]

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

Filter by
Sorted by
Tagged with
5
votes
3answers
2k views

How to extend a microcontroller GPIO to ~300 inputs?

I need to find out the address of buttons pushed. Say I need about 300 Input port required dedicated for individual buttons. Then I would need 300 I/O pins to read the address of a pushed button which ...
2
votes
1answer
91 views

DIY laser cutter - laser is turning off at various places while cutting [closed]

I converted my Monoprice Maker Select IIIp 3d-printer into a laser cutter by mounting a 4W diode laser to the printhead, and using the cooling fan leads to control the laser beam, via a simple ...
21
votes
7answers
5k views

C - wrapping globals in a struct?

A firmware style question concerning C. I have some legacy code I am tidying up. One of the nasty features is global variables being scattered through the source files. I can make a few of them ...
0
votes
2answers
54 views

Data send only in MCU based I2C Slave

I want to know that is it possible that a Slave I2C device which is a 32-bit MCU, for example STM32F407, I write its I2C data send function and send data through it after every 1 sec? I am asking this ...
0
votes
2answers
189 views

DAPLink firmware doesn't operate with OpenOCD

  Why this is not a duplicate Some people seem to think this question is a duplicate, but there is an important difference: The How to update the SWDAP firmware? question is all about how to ...
0
votes
1answer
117 views

How to update firmware over DFU on read protected STM32 microcontroller with command line tool?

STM32 microcontroller have bootloader in system memory witch is write protected (and it works). This can be booted with right sequence, what I don't cover here. ST provide DfuSe tool to upgrade ...
0
votes
0answers
34 views

How to select the compatible USB to SPI IC Programmer?

I built an image of Coreboot (open source firmware) and wanted to flash it on the Minnowboard Max. SF100 is compatible to do the job (as described in this article). However, I want to be clear on the ...
0
votes
2answers
95 views

IAP bootloader not jumping to the application address

I am working on IAP in STM32F4. I received .bin file using uart and flash it in 0x08004000 address successfully and disable irq , set msp , set vector, deinit hal , reset the systick registers but the ...
1
vote
2answers
355 views

STM32 firmware upgrade (In-System Programming) over USB?

There are many ways to program an STM32 chip (in my case STM32L4R5): USB DFU mode (using DFuSe utility from ST) UART Serial Port (through something like FTDI chip)...
0
votes
1answer
57 views

Smart vs Intelligent vs Adaptive vs Advance (etc) Embedded Devices [closed]

I hope my question is not off-topic here. I am asking it here because it is directly related to the hardware devices which are primarily based on MCU's. These Embedded System devices are used every ...
0
votes
0answers
15 views

Has anyone configured/initialized a BCM89501 to use BroadRReach mode on all 4 channels?

I have a board where my configuration seems to get the individual channels in a good state about 80% of the time, but that means that I frequently have one or more bad channels on a board. Which ...
0
votes
0answers
14 views

Regenerate IRK for NXP QN9020 Bluetooth Low Energy Peripheral

According to Bridging the GAP: Bluetooth LE Security Part 3, IRK Re-generation Each time you clear your peripheral’s bonds, and open it up to a new pairing, you should re-generate your IRK. ...
0
votes
0answers
29 views

HC08 Bootloader

Can someone explain the basic process of flashing a bootloader to an HC08 based MCU? Specifically the MC908QB8. If I understand it correctly, the firmware can be updated via serial while the chip is ...
2
votes
1answer
81 views

STM32F411VE Custom bootloader USB de-Init issue causing Jump to app fail

I'm developing a custom a bootloader on STM32F411VE MCU which must download a .bin file from USB key and flash it into the application sectors of flash memory. Following the examples provided with ...
4
votes
1answer
101 views

How can I make it so that customers who buy my arm based product can easily update the firmware?

I'm building an arm-based (stm32F7) hardware device which will have a USB port. I would like to be able to update the firmware and distribute it such that customers with my device can easily install ...
0
votes
1answer
51 views

What pins on a nRF51822 do I connect to a STM32 programmer?

I want to be able to program a nRF51822 with this programmer but I'm not sure what pins on the actual chip I should use, and all the guides seemed to be using a different chip
1
vote
0answers
69 views

How to specify in the project or firmware of the application, where to start writing the code?

I have a bootloader to PIC18F4550 that was written using Mikro C for PIC and I have two firmware applications, one was written using Mikro C for PIC and the other using MPLAB X with XC8 compiler. With ...
0
votes
1answer
138 views

MPLABX with PIC18F4550 Debug and programming are not working

First I used MikroC for PIC to modify a firmware to a PIC18F4550. I was programming the device using MPLAB IPE and the PICKit3 programmer, everything was ok. Now, I need to change to MPLABX XC8 ...
2
votes
3answers
243 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
33 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
38 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
562 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 ...
2
votes
2answers
796 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
433 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
56 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
448 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
40 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
194 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
496 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
129 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 ...
4
votes
4answers
999 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
123 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
254 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
1k 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
180 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
62 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
68 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
120 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
369 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
383 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
109 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, ...
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 ...
18
votes
4answers
6k 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
2answers
76 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
107 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
1k 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
2k 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
112 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) ...