The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
1
vote
1answer
65 views

Raw programming of an Altera FPGA

I have an Altera Cyclone IV FPGA (for ie) and my question is: is it possible a raw programming of the FPGA? Is it possible to set "manually" the gates for making experiments? Thank you
0
votes
0answers
14 views

Programming a dsPIC to a TFT display [closed]

****I would like to know if their is a book or some sort of development board that can assist me in learning how to program a dspic onto a tft display without using so many libraries that programming ...
1
vote
2answers
140 views

Is a CPU declarative?

I know that this might seem like a stupid question, because declarative is not really an electrical term. I'm having a discussion (argument) with someone who is a functional programming fanatic, and ...
2
votes
3answers
2k views

How to make a PCB based on ATtiny easily updatable by end users?

I've made a prototype PCB containing an ATTINY 4313: Each time I want to change the program, I upload it with an Arduino used with the "Arduino as ISP" sketch. If one day I sell such a module to ...
0
votes
2answers
67 views

Reading data from Pressure Sensor

I am having trouble reading data from a pressure sensor using MATLAB. The pressure sensor is connected to an NI 9219 Analog Input Device. Firstly, i tested the device to make sure it is working using ...
3
votes
2answers
122 views

Back branches in code

While reading this file on software hazards this slide says: "No Back Branch in the Code" I wonder what does it mean? Normally when we write code in C-language then we don't actually do branching ...
0
votes
2answers
58 views

Where does the SWD header in this schematic connect to the microcontroller?

Edit: better quality schematic I'm designing a PCB that includes the STM32f103C8T6 and I want to program it via SWD (with the ST-Link v2 USB connector). I'm using the Blue Pill dev board schematic (...
1
vote
1answer
58 views

Periodic timer not working as expected on TM4C123 MCU

I am starting to learn how to use timers/interrupts on the TM4C123 evaluation board (TM4C123GH6PM MCU). In this example I am configuring a timer to create 1 second delays to toggle an on-board LED on ...
0
votes
2answers
172 views

Basic C Programming Question On Microcontroller

I think this question is ok in the electronics stack and not the programming stack (I hope). I have a simple code written in C, on a TM4C123 evaluation board. It uses the two on board switches to ...
1
vote
3answers
100 views

Help with I2C Communication

I'm trying to learn how to program a battery charging IC (BQ24193) via the I2C communication protocol. My goal is to write the correct values to it in order to gain the proper charging input and ...
0
votes
2answers
115 views

Can I program an MCU directly from USB if it supports USB? [closed]

If a microcontroller has USB functionality, can I program it directly from a USB port? Can I design the PCB without a USB to serial converter? What are the precautions I should take? The example that ...
0
votes
0answers
39 views

Generate XCF file for Lattice Diamond from command line

I am writing a Makefile for Lattice Diamond and have come as far as to cover all steps from synthesis to bitfile. To program the FPGA (a MachXO3L in my case) I looked for a command line tool, and ...
0
votes
2answers
82 views

Mecrisp-Stellaris Forth on TI Tiva C LaunchPad

I'm currently trying to load mecrisp forth on a spare tiva c series launchpad (TM4C123) board I have at home and am not having much success. I'm an electrical engineering student and while I've ...
3
votes
3answers
749 views

Programming of ICs in general (MCU / FPGA / Serdes IC) [closed]

I have a general basic question. Most of the Integrated circuits (apart from power IC) that are used in applications (Data transmission/communication IC) require some sort of programming or ...
0
votes
0answers
31 views

atmega328p is not detecting on USBasp programmer after verify 0 error?

I was trying to burn my atmega328p board which is designed for some wireless application. The ICs atmega328p, esp8266 12f, and ADM7171 are using the same Vcc. Here the Power supply is connected to ...
0
votes
0answers
58 views

Can't program STM32F4

I am really confused and helpless. I made a custom PCB with the STM32F446VE (LQFP100) chip and got it programmed (SWD). After that I made a second PCB where I wanted to solve some Problems regarding ...
4
votes
4answers
574 views

Interrupt control in STM32

I am trying to learn about STM32 programming. I started to read some references before start the programming. I am currently reading this ST presentation. It says: When an interrupt request ...
0
votes
1answer
31 views

Flashing firmware onto NXP QN9020 via SEGGER J-Link

Here I am attempting to flash the firmware using SEGGER J-Flash Lite. Below is the ouput when attempting to connect via the SEGGER J-Link Commander. ...
8
votes
2answers
942 views

PIC12F675 GP4 doesn't work

I'm using a PIC12F675 for a project, and everything works fine except one thing. GP4 does not work as digital IO. I've looked at the configs and the code a lot, but couldn't find anything. Config: <...
0
votes
0answers
62 views

How to get analog input using PIC12F675

everyone. I'm new to embedded systems and I want to program a PIC12F675 for a project. I have most of the code figured, and there is only one thing left. It's the analog input. I tried some tutorials,...
1
vote
1answer
142 views

Programming of ADC in PIC12F675: Not Working Properly

I'm new to embedded systems and I want to program a PIC12F675 for a project. So, the idea is that there is a switch. If the switch is off, the microcontroller normally outputs a clock signal, which ...
28
votes
8answers
5k views

Why do we need a bootloader separate from our application program in microcontrollers?

Why do we need a separate program in the same flash program memory of a microcontroller, specifically STM32F103, which is called a bootloader? What is special about it to keep it separate from the ...
0
votes
1answer
46 views

PIC16F Byte Shift - Assembly Code

Need to shift 3bytes each in RAM buffer to the next 3 RAM locations in a circular manner. The below code is ok, but is there any compact method to do it? ...
-1
votes
2answers
138 views

STM32F4 series: what does the '->' operator? [closed]

Reading some C files related to programming an STM32F4 series Arm controller, I found the following instruction: ...
2
votes
1answer
115 views

How to program STM32f411RE chip?

I've developed a prototype using the STM NUCLEO (NUCLEO-F411RE) board and now that I am happy with design I am now in the process of testing everything together on my own PCB. All the other components ...
0
votes
0answers
13 views

Where to find StdPerieph Library for SPL programming with Nucleo-F746ZG?

I want to start SPL programming with Keil software. I did not find the StdPeriph Library for Nucleo-F746ZG board. Where to find the library on the ST website?
0
votes
1answer
93 views

Embedded Software Reliability Metric is short-term or long-term in time

If I test an embedded software (and the product based on this software) today and it fulfills all the customer requirements successfully at this point in time then I can safely say that this software ...
3
votes
4answers
1k views

Programming bare microcontroller chips

I'm an electronics hobbyist and I have done a lot of electronics projects using launchpads like MSP430G2553, Arduino and Tiva C Series, so I never faced any problems to upload code to these ...
1
vote
3answers
119 views

int functions with no return statement

In a course I am taking on embedded systems, I program LPC1768s which are based on ARM using C. The main functions are always of int return type. However, there ...
0
votes
1answer
211 views

STM32 USB programming using the OTG interface [closed]

I'm new to ARM based STM32 controller. The Controller which I'm using STM32F427VIT6. It has USB OTG FS interface where I need to program it using the USB interface. Is it possible to program or I have ...
2
votes
1answer
58 views

Wireless SWD interface

Is it possible to have a wireless SWD interface with a simple Data and clock line like the cheap STM32 ST-Link clones. My initial, and flawed, idea was that I would have an ST-link plugged into the ...
0
votes
1answer
53 views

ATTiny167 USB Programming

On Aliexpress I am finding many cheap development boards with ATtiny167 and a USB connector. From what I can gather these boards permit USB programming through USB emulation. Can anybody point me to ...
0
votes
1answer
23 views

Using port 0 in AT89C52 without pull up resistors

So at my university professor gave us following scheme to program this double 7 segment display on the right. At start I tried to simply adress it using P0=(someData) although it didn't work. Then I ...
9
votes
4answers
2k views

FPGA - DIY Programming

I've been programming microcontrollers for a few years now, and I've just discovered FPGA's after taking a digital design class. After doing some research into different FPGA's, development boards, ...
5
votes
2answers
758 views

Bulding a physical calculator from scratch [duplicate]

As you can probably tell I am relatively new to the electronics scene and I'm rather stuck on a project I'm doing for school. I am on my second year of an Electrical engineering degree, tasked to do ...
0
votes
0answers
280 views

STM32 Input capture PWM frequency measurement problem using HAL

I'm trying to measure time passed between two external interrupts generated by rising edges of a PWM signal (generated using a IC 555 timer). Point is to determine the frequency of the signal. I'm ...
0
votes
2answers
183 views

Lattice LCMXO2-256HC-4SG32C CHECK_SECURITY_PROTECT_KEY error

Trying to progamm LCMXO2-256HC-4SG32C with this ebay progammer. The programmer works fine with LCMX02-1200HC-4TG144C, but with LCMXO2-256HC-4SG32C it gives me the following output: ...
0
votes
2answers
137 views

8051 microcontroller problem to find execution time of part1 for a given code

For the below mentioned 8051 assembly code: Time elapse: MOV R0,#100 Part 1 \$ \quad \, \, \,\,\$ : MOV R1,#50 Part 2 \$ \quad \, \, \,\,\$ : MOV R2,#248 Part 3 \$ \quad \, \, \,\,...
-5
votes
2answers
66 views

What is the purpose of this statement in Verilog?

I see syntax quit similar to this very frequently: 4'd0 Sometimes it is associated with an assign statement: assign S0 = 2'b00; I tried searching online however I could not find any sources.
0
votes
2answers
71 views

PIC12F675 micro controller programming

I want to use PIC12F675 to control a relay such that when a switch is pressed, it should generate an output signal which should be ON for 2 seconds and then OFF for 15 seconds. This should continue ...
0
votes
2answers
90 views

Programming of Microcontrollers and other peripherals [closed]

This is a question based on the theory which I am reading and related to one design which I am trying to understand section by section We are having microcontrollers and some peripherals are ...
0
votes
0answers
57 views

AVR ATmega328 low fuse wrtiten and issue

I am using an Arduino Uno as the hardware programmer together with avrdude as the software programmer for flashing an Atmega328. I have noticed PB0 was set to ...
0
votes
0answers
56 views

Programming AT89LP52 microcontroller like an AT89S52

I'm trying to run my code on the new AT89LP52 chip which Microchip (A.k.a. Atmel) believes can be a direct replacement for the AT89S52. I am able to program the AT89S52 with my programmer and ...
0
votes
1answer
131 views

SPI programming flash chip(s) - connecting HOLD and WP pins

I am trying to learn with SPI programming and have started with this guide using a Beaglebone Black. I have one DIP8 package connected via breadboard for testing, and another SOIC8 package on-board ...
-1
votes
1answer
71 views

How does G-code determine what pins I used to set CNC motors at? [closed]

I want to develop a simple C# application to control a self-made CNC machine using Arduino Uno. I want to use G-code to accomplish that. Now what I don't understand is how G-code is interpreted in ...
4
votes
1answer
163 views

JTAG trace length affecting programming ability

I've recently had a design made that requires a programming port to be located quite far from the device I'm trying to program. This has meant that my cJTAG traces are around 13cm long. I think as a ...
0
votes
1answer
162 views

How to write more than one page at once in Winbond W25Q32JV

I am using Eclipse IDE for firmware development. I am using Quectel MC60 module with Winbond W25Q32JV (4 MB memory). The thing is that I am able to read/write single page. I am facing issue with ...
0
votes
3answers
100 views

Burning hex files into multiple micro-controllers at a time. [closed]

I am using attiny88 and the usbasp programmer. Right now I am burning 1 micro at a time. But it is a time-consuming process during the production. Is there any way to burn multiple microcontrollers ...
0
votes
2answers
44 views

Automated equivalents of Potentiometers

I am currently working on a project to create an amplifier which can use both physical and digital inputs to change the resistance of a potentiometer. Is this possible without using sliders? I know ...
0
votes
1answer
45 views

How To Program Atmega256rfr2 using ISP?

I have a new custom built PCB circuit incorporating an atmega256rfr2 chip. I really can't program the chip using AVRISP MK11 based programmer (Olimex brand). But it can program the Atmega328p DIP chip ...