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
72 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 ...
6
votes
1answer
4k views

Why does my ATtiny13 report wrong device ID?

I am using an Arduino (with ATmega168) as an ISP programmer to program ATtiny13. When I try to do this, avrdude reports: ...
0
votes
2answers
6k views

A program to add 6 bytes of data and store sum and carry in 8085 instruction set

I have a question on 8085 instruction set. A program to add 6 bytes of data stored in memory starting from 4500h. must use b register to save any carries and finally store the sum and carry at two ...
0
votes
2answers
49 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 (...
0
votes
0answers
16 views

Serially Programming STM32 Using ESP32 [on hold]

I have a PCB on which sits an ESP32 and STM32. I want to use ESP32 to perform OTA on STM32 and for that I would like to serially program the STM32 using ESP32. I have a serial connection between PA9 ...
1
vote
1answer
55 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
171 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
votes
1answer
1k views

Is programming Arduino a subject of CSE(computer science) at university?

If get admitted in "computer science and Engineering" department of any university, would there be any subject for programming Arduino? This Arduino also looks like a subject of "Mechanical ...
1
vote
1answer
136 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 ...
1
vote
3answers
90 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 ...
1
vote
2answers
1k views

ISP circuit for AVR microcontrollers

So I was doing a bit of research on the AVR controllers and came across this schematic for programming the chips. After doing research on the 74 LS 254, I realized that either this design is ...
0
votes
2answers
110 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 ...
-1
votes
2answers
10k views

Using a computer, to turn on a light bulb on and off many times [closed]

I build my own pcs, like coding (a little bit) and into engineering. What I want to do is basically take my computer, hook it up to a circuit with a light bulb and then run a program that will switch ...
0
votes
2answers
634 views

How to program 89C52

I am new to this site. I am now working on microcontrollers. I successfully burnt hex file to 89S52 using arduino as a programmer. But I want to program 89C52 as this is the cheapest atmel ...
0
votes
0answers
28 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 ...
3
votes
3answers
744 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
29 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
3answers
512 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
29 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. ...
0
votes
4answers
4k views

How to write an EPROM program

We've got some products that use 27C256 EPROMS. The guy who wrote the original programs (many years ago) is gone and we'd like to make changes and write some new programs for some new products and ...
8
votes
2answers
915 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
59 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,...
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
45 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
135 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
102 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
92 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
118 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 ...
17
votes
3answers
33k views

Which programming languages are supported to program Arduino?

I would like to start to play with Arduino. I've read that C and C++ are the official languages but I've also found other way to communicate using Python or Java for example. Which programming ...
-3
votes
3answers
365 views

Differene between DS3231sn and DS3231mz

Which one is better? DS3231SN have accuracy ±2ppm and the other one have ±5ppm.What is actually meant by the accuracy and what are the other differences.? What type of internal oscillators are used by ...
0
votes
1answer
170 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
50 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
52 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 ...
2
votes
3answers
403 views

Programming PIC18 with PICKit 3 and IPE

I am trying to to program a PIC18F4550 with IPE and PICKit 3. The steps I am following are as follows: First, write the code and compile it to obtain an .hex ...
1
vote
2answers
2k views

Why does MPLAB IDE has so many compilers?

I have learnt that the MPLAB IDE has different compilers like C18, XC8 and HI-Tech. I want to know the following things: Why are there different compilers when one can do the job? Are certain ...
0
votes
0answers
930 views

TrueStudio flashing board gives “Unknown MCU found on target error”

I am attempting to flash a custom PCB using Atollic TrueStudio and a Nucleo board. I have the PCB connected to the SWD header on the Nucleo. In TrueStudio I have set the target device and am using ST-...
0
votes
2answers
172 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
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, ...
10
votes
8answers
2k views

Does each microcontroller line have its own programming language/syntax?

I've programmed the Arduino and have started programming the Teensy. They are similar to C but there are slight nuances in the programming language. For instance, in Arduino's C you call a function ...
5
votes
2answers
725 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
270 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 ...
4
votes
1answer
160 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
2answers
112 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
65 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.
12
votes
8answers
6k views

Functional Programming with MCU(s)

Functional languages like Haskell, LISP, or Scheme allow a programmer to work quickly using the functional programming paradigm. They do have their inefficiencies, but my application places greater ...
0
votes
2answers
70 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 ...