Questions tagged [programming]

Questions about programming parts (FPGAs, Flash, etc.) Many software programming questions should be asked instead on Stack Overflow.

Filter by
Sorted by
Tagged with
0
votes
2answers
48 views

Multi MPU programming standard or algorithm?

I've been reading that electronics in space vehicles (satellites or crafts) have redundant systems. I'm wondering if there are standards or algorithms (not sure here on either term) that I could use ...
1
vote
4answers
74 views

Understanding Raspberry Pi/SBC's at the same level as microcontrollers

I'm a fourth-year EE student and I have just recently started to dive a bit deeper into trying to understand how microcontrollers work at a low level when it comes to running code and performing its ...
0
votes
1answer
57 views

ATtiny84a SPI communication disabled following chip erase

I am attempting to serially program an ATtiny84a using an ATmega645a. I am able to enter programming mode and read the device signature bytes, but after issuing a chip erase command, the ATtiny stops ...
-3
votes
2answers
81 views

CMSIS - API or library

I have few question that I am not able to understand. What is the difference between API and library in embedded software? Any example would be appreciated. What is CMSIS - is it a library provided ...
4
votes
4answers
2k views

Do you typically need to program-in a USB communication protocol?

I have usb communication set up between a microcontroller I have and a VB.Net script. I am somewhat familiar with how the USB protocol works. My question is: Do I need to program in start frames, ...
0
votes
1answer
38 views

Which pins should I connect to program a PIC chip using the SNAP programmer?

this seems like this question has an obvious answer but despite looking through the datasheet of the PIC MCU I'm going to be using (the PIC18F45K22), and the SNAP programmer user guide, I can't find ...
0
votes
2answers
123 views

Is it possible to write a program that calculates its own energy usage?

If I have a program (e.g. a small Python program) on a specific machine. Would the program be able to measure how much energy its computation costed? I think, there would be two possible ways to go: A)...
1
vote
1answer
49 views

Flashing nRF9160 on a custom board with FTDI UART converter or nRF5340DK?

I'm working on a custom board with nRF9160, I want to flash it with the asset tracker sample, however, I do not own a J-link device. What I have is a FTDI USB-UART converter, a nRF5340DK board, a ST-...
0
votes
1answer
79 views

Store byte instruction in RISC-V assembly

I have a short snippet of RISC-V assembly that I'm having trouble understanding. I'm not sure if I'm interpreting the instructions wrong, from my interpretation it seems as if the branch (BNE) will be ...
0
votes
2answers
59 views

I keep getting this error but don't know why "Invalid input. - input required but omitted"

Please help me by checking if my program is correct or giving the correct ladder program. I keep getting "Invalid input. - input required but omitted" this error for all the variables in ...
0
votes
1answer
83 views

Difficulty programming a custom Atmega32u4 board with a snap programmer using ISP

I've made a PCB which contains an Atmega32u4, and just finished soldering it up today. Now, I realised that I bought the wrong Atmega32u4 version - I bought the version which does not by default use ...
0
votes
1answer
46 views

How to read the temperature of DS1620 thermometer using PIC16F877A?

Good afternoon. I am trying to figure out how to make a PIC16F877A to read the temperature from the DS1620 sensor. Accordingly to the datasheet of the DS1620, I need to send two nibbles A (AAh) to the ...
2
votes
1answer
62 views

Unusually long programming times with ATmega328p

I'm programming an ATmega328p using avrdude, and with a program size of 3074B, I am experiencing approximately 13 seconds of programming time. This is painfully slow when developing with the ...
0
votes
0answers
37 views

Artix-7 FPGA flash configuration without using CS pin

I have manufactured PCB using Artix-7 FPGA (XC7A200T-2FPG676) and configuration flash (S25FL256S). During layout MOSI and MISO were routed correctly but CS (Chip Select) pin was not routed to the ...
0
votes
1answer
67 views

How to recharge a bootstrap capacitor on an H-bridge with each transistor controlled with a pwm GPIO?

I have built an H-bridge using bootstrap. Each MOSFET is controlled by a PWM output of my µc. Let's say my motor turns clockwise. I set H1 and L2 to a duty cycle α = 0.9, then to recharge H1's cap I ...
1
vote
1answer
67 views

Can I programming a CPLD in low-level?

Maybe it's a silly question, but I want to use a microcontroller with a CPLD. My idea is for the microcontroller to reprogram the CPLD as many times as the user wants. The problem is that I don't want ...
1
vote
1answer
30 views

ESP32's GPIO pins won't respond

I connected three LEDs to 3 GPIO pins in the ESP32. They used to blink as expect previously. But now, they don't. The code is as follows. ...
1
vote
1answer
31 views

Can PICPgm program a new part?

Specifically, using the GPIO pins of a Raspberry Pi, which PICPgm does explicitly support, but I think that's irrelevant unless it's an XY problem. PICPgm's home page lists a bunch of devices that it'...
2
votes
1answer
33 views

Can I use the STLink on a Nucleo to program a 5V board

I want to use the STLinkV2 on the nucleo board I have to program an external STM32f4, and I have the SWD pins connected according to section 6.2.4 in the documentation.An earlier unsuccessful attempt ...
1
vote
1answer
79 views

Programming CH552G

Stack Overflow isn't letting me have all the links I need here, so I put them all in this google doc. Sorry about that! This is my first solo embedded development project, and I can't seem to figure ...
0
votes
0answers
66 views

Newbie Question : How to program/burn the chips on a self-made PCB [duplicate]

I am in the middle of building my own PCB Board with different kind of MCUs (ESP32/8266, ARM Cortex, W5500) - Because each of these in a Dev Board are to big I want to just get the chips onto the ...
1
vote
1answer
91 views

Programming a AT28C64B EEPROM using an STM32F429

EDIT: For those who tried to help or have found this question via google, I managed to solve this issue just by adding a 1uF ceramic bypass capacitor to the breadboard. Thanks for the answers. I'm ...
0
votes
0answers
42 views

Anyone here working with the Cypress PSoC6? Having trouble running the blinky program

I have a PSoC 6.3 Pioneer Kit (HW REV 11) and am having trouble running any of my own (or example) programs on the PSoC. I have the latest PSoC Creator (V4.4) installed with PDL V3.1.4 and the latest ...
0
votes
0answers
41 views

Programming a bare ATSAMD21E18A, no external oscillator

EDIT: I got this working, seems that the uC is sensitive to bypass caps. I had caps on my solderless breadboard and decided to solder on some surface caps right at the pins on the breakout board. That ...
0
votes
2answers
74 views

Testing serial communication programming

I have made a user interface program (with buttons, trackbars, etc.) for Windows (using .NET C#) where one talks to an embedded device (an ARM uC) through its RS232 port and I use a RS232-USB ...
0
votes
2answers
35 views

Programming I2C devices with NV EEPROM

Some I²C devices like the MCP4728 DAC have a small EEPROM allow programming the I²C address (and other configuration bits). I know that in high volume can be programmed by the vendor, but for low ...
6
votes
2answers
620 views

How to program MCUs and test PCBs in mass production?

I am working on a PCB which includes an microcontroller (STM32), some sensors and a BLE module. Right now it is still a prototype, only 3 units have been produced. To program the microcontroller, I ...
2
votes
0answers
118 views

Why would I need costly software libraries for a layer 2/3 ethernet switch?

I am a novice electronics engineer and it is my first time implementing Ethernet links in my designs. We recently bought a Connect Tech XDG007 GbE Switch, which will serve as a simple L2 Ethernet ...
0
votes
0answers
15 views

pyupdi 1s timeout in readline

I just installed pyupdi and it works, but is very slow. I googled this and AVRfreaks says something about delay settings which seems irrelevant in my case (while ...
0
votes
0answers
15 views

pymcuprog AvrCommandError: AVR response DAP command failed

I am trying to use pymcuprog with Atmel-ICE and a trivial ATtiny406 board. The Atmel-ICE and ATtiny406 board are working fine together in Atmel Studio. For Linux, I ...
0
votes
1answer
77 views

How do I invoke pymcuprog?

I have successfully created an ATtiny406 binary using avr-gcc in Linux, and I can program it to the device via Atmel-ICE under Atmel Studio in Windows, and it ...
3
votes
2answers
181 views

Moving Data, Bss and heap memory to external SRAM Atmega2560

This is my first question here, sorry if I miss something. I’m using an Atmega2560 as main processor for my project but I’m running out of ram so I have connected an external 64 KB (64 x 8) SRAM to it....
-1
votes
1answer
88 views

Solenoid circuit not firing [closed]

I will try to explain as quickly as possible. I am trying to get the solenoid to fire, it is not. The relay however is clicking on command. I am recreating the circuit shown here https://www....
0
votes
0answers
33 views

Product ID tracking in a sorter machine

I'm writing a PLC program (Q Series Mitsubishi PLC, GXWORKS 2 Software) for a package sorting machine. The logic of the machine is the following: Packages are induced in the conveyor. A barcode ...
0
votes
1answer
31 views

What algorithm for feedback control to maintain heart rate on a turbo trainer

I am writing an application that will maintain heart rate within a specified range by adjusting the amount of work required on a turbo trainer. I could cobble together something that would gradually ...
0
votes
0answers
25 views

How to get rssi using Xbee s2c

I am new to Xbee so I need your help. Well I am trying to create an indoor localization system. What I am trying to achieve is explained below. The tags (Xbee S2C) sends out ping every 3 second to the ...
0
votes
0answers
65 views

How to programming chip with TL866 even if not in the supported list of TL866 device?

I work at a textile company. We have a sensor header which is named USTER. The Uster device checks the yarn quality. If it detects any problem it cuts the yarn. In our company, we have 8x60=480 Uster ...
0
votes
7answers
256 views

Is it possible to remove a line of code from microcontroller program memory?

int main(void) { while (1) { delay(50); if (ButtonPress1) { ResetOutSwitch(); } } Suppose that button press is detected and output switch is ...
1
vote
3answers
93 views

stm32h743 signed DFU updates

I want to implement signed software updates to my MCU, It is connected via USB and I am using the USB DFU to upload a firmware to it. I want that only signed firmware will be allowed to be uploaded to ...
0
votes
0answers
38 views

How to write SPWM program for 5 level inverter in arduino

I am making an 5 level inverter using arduino so for that i have written simple arduino program for switching the mosfet but problem i am facing in this is it has low switching frequency so i want to ...
0
votes
2answers
75 views

Can't flash big binaries using dfu-util/pydfu to STM32H743VIT6

I have a board that uses STM32H743VIT6 (same as OpenMV4) that I can't flash binaries bigger than (500-600KB) to it although it has 2MB of flash. Smaller binaries seems to be flashed OK, I am using the ...
0
votes
1answer
45 views

Variable is not changing when one button is pressed. (String)

I couldn't decide whether this belongs in C++ or Arduino. But I guess it belongs here since it's Arduino programming. Anyways, I'm having a hard time solving this issue. I have 4 buttons, 2 for up/...
2
votes
2answers
88 views

Modifying an irregular length bit field in a register in C/C++

Suppose I wanted to modify the field ADD[7:0] in the following register: I wrote this to make things more convenient. ...
0
votes
1answer
33 views

Need help with timing in Verilog functions

I'm doing a filtering project and I'm writing a module that feeds a lot of data to some compute units. There's a lot of really repetitive code and I was wondering if there was any way to condense it, ...
1
vote
1answer
159 views

USB Qualcomm Quick Charge 3.0 on PC (Linux Ubuntu)

As nowadays PC motherboards supports USB voltage manipulation I will ask on given example hardware/software. I am using Ubuntu 20.04 installed on machine with Motherboard Gigabyte AORUS Z390 Master. ...
0
votes
1answer
123 views

Binary to gray code on arduino

I was trying to make a circuit using 7 segment and arduino logic state and I am successful in showing binary number on 7 segemnt as take input from logic state but now when I am trying to code for ...
0
votes
0answers
28 views

Trying to figure out an RC Plane Solar Charger

So for a project I am looking at making a solar charge controller for a 3S Li-Ion battery system used in an RC Plane. The issue I am running into now is that I am unsure how to go about designing the ...
0
votes
3answers
165 views

Development board or Individual Microcontrollers? [closed]

I am an electrical engineering student and my planned career path is embedded systems. To get slightly ahead of my peers, but also for my own interests, I am learning embedded programming as well as ...
1
vote
0answers
67 views

SIM7020G nb-iot module interface with esp32

My code at the moment is to connect esp32 to MQTT server via wifi and its working completely fine. The next step is to use sim7020G NB-IOT module to achieve the same connection but as I have never ...
0
votes
3answers
94 views

How to write own ISR handler

I am learning about avr programming and i know we have to use avr/interrupt.h library to use interrupt but my main reason to learn avr programming is to program without any library so i want to know, ...

1
2 3 4 5
14