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
0 answers
10 views

Getting A #DEVICE required before this line error in CCS

I am new to PIC microcontroller programming. I am working on this project. It took me a lot of time to get practiced with MikroC and MPLab software. I was working with sensored BLDC motor for over a ...
user avatar
  • 101
-1 votes
0 answers
18 views

How do i view the flash memory contents of fm4-176l-s6e2cc-eth using keil uvision 5

main intention of this test is to know at which location in flash my code is getting dumped. The board i am using is fm4-176l-s6e2cc-eth (arm cortex m4). Anyone here knows how to proceed to know that.
user avatar
2 votes
0 answers
30 views

Best approach to program a PLC using dbc file? (CAN communication)

I'm pretty new using CAN Communication but I need to program a Phoenix Contact PLC in Structured Text. The PLC should communicate with a motor that uses CANOpen protocol. The only resource I have is ...
user avatar
1 vote
0 answers
46 views

Unable to flash ESP32 WROVER

I designed a PCB with a ESP32-WROVER-E(16MB). I am unable to flash it. The PCB and schematics are given in the following link. https://oshwlab.com/gadisureshkumar/2021-12-28-iot-now-motor_copy I had ...
user avatar
  • 769
0 votes
1 answer
52 views

ST-Link doesn't show any data on the serial port

I am working on Nucleo board programming circuits. This board programs like an Arduino, you can compile, run and show data on the serial port. Actually, you can do debugging, too. You just need a USB ...
user avatar
  • 89
1 vote
1 answer
65 views

TI Microcontroller Programming Circuit

I am working on designing a pcb that will contain a TI TM4C1231D5PZ microcontroller. I have only ever used a launchpad before for coding, so I do not know how to get my program code onto a ...
user avatar
  • 13
0 votes
0 answers
34 views

Error after flashing the example on my esp32-c3 board

I am currently trying to develop software for a board I created a short time ago with the esp32c3 as microprocessor. I followed all the steps of the espressif 'get started'. I firstly set the ...
user avatar
  • 125
0 votes
1 answer
85 views

How to get program file from PIC?

I want to get the program file in the pic 18F46K22 from an electronic PCB. There is no code protection or password on the PIC18F46K22. It is a simple card. Is it possible to connect to the card with ...
user avatar
  • 1
0 votes
0 answers
34 views

Adaptive Particle Filter: unknown process Equation

In my design and implementation of a SIR particle Filter, I don't have the state process equation of the actual system, which would have given a very good estimation of the real signal. I was ...
user avatar
  • 21
1 vote
0 answers
39 views

How to reprogram ADY501?

I have wireless controlled room light with remote, it has two buttons: ON and OFF. Everything was working fine until recently. I was sitting on my bed with a laptop and decided to go to the kitchen ...
user avatar
  • 341
1 vote
1 answer
44 views

How to program attiny85 on-board without separate leads?

Another newbie question. I’m planning on ordering my first ever printed PCB that would be a simple 3 mm LED driver controlled by a ATtiny85. Now… I could program the chip using a SOIC-8 to DIP-8 ...
user avatar
2 votes
2 answers
683 views

Use of VCC and GND pins on programming headers

In a recent project of mine using an ESP32 and a CC1352, I noticed that on both programming headers there are 3V3 and GND pins, which are, I suppose, to power the device if you want to program it when ...
user avatar
  • 172
0 votes
3 answers
123 views

Is it possible to represent electrical components as classes in OOP design?

I was just studying my Electronics course, the topic of E-MOSFETs. And suddenly, it just got a question in my mind. Since that OOP teaches us to program things like they are in real life objects, is ...
user avatar
1 vote
2 answers
107 views

STM32 and ESP8266EX Flash Programming

I'm a complete beginner to electronics, I have done few projects using different modules, it's so easy to do with modules. Now I want to learn and do some advanced hobby projects. So I decided to ...
user avatar
1 vote
0 answers
28 views

I'm looking for the Windows-10 driver for the Atmel bootloader used in the Atmel UC3-A3 Xplained evaluation kit

I have a couple of Atmel boards called Atmel UC3-A3 Xplained evaluation kit, and am trying to use them in a project. I want to use the bootloader, which is apparently pre-installed on the AVR32 chip, ...
user avatar
  • 11
1 vote
0 answers
71 views

Program MCU from another MCU

Can I use an ESP32 to program/flash an nRF51822 directly without a PC connected to the nRF? I am designing a VERY small device with two microcontrollers on the same PCB, and would like to save space ...
user avatar
  • 21
0 votes
1 answer
55 views

Parameters of One_Wire protocol function

How can we explaine the following line of statement in mikroC PRO for PIC Ow_Reset(&PORTE, 2); // Onewire reset signal I understand that ...
user avatar
0 votes
1 answer
69 views

Confusion about IJVM

I was reading the chapter 4 of the book 'Computer Architecture' by Tanenbaum (since my copy is not in English maybe the title of the English version is not exactly that one), however it is the chapter ...
user avatar
  • 111
0 votes
1 answer
96 views

Is it possible (and worth it) to store non-const program data in FLASH rather than in RAM?

I'm the situation that my program stack variables take 24kB, and global variables take 27kB. My MCU's SRAM is only 40kB. Would it be possible to store part of the data anywhere else? For example, in ...
user avatar
  • 175
0 votes
1 answer
293 views

Auto upload to ESP32 without USB to CP2102 chip

I see a lot of info on how to auto-upload (meaning without holding/pressing down any button). The ESP32 dev does this using the below circuit: However, in my case, I do not have a USB to TTL IC. I ...
user avatar
  • 1,271
-5 votes
1 answer
102 views

Polling a button and delaying/switching based on the input. Millis? Delay and loop counter? [closed]

So this is the setup: I previously asked a question about this assignment. THIS IS A NEW QUESTION. THIS IS NEW CODE. ONLY THE IMAGES ARE THE SAME. I originally approached this using an interrupt on ...
user avatar
14 votes
6 answers
5k views

Why do microcontrollers need a programmer device?

I mean, if binary code is already generated by PC, wouldn't it be possible to just take this binary code, transfer it to a specific place in flash memory via specific bus, for example Serial Wire, ...
user avatar
  • 175
0 votes
4 answers
86 views

Programming ARM in mass production

I am new to embedded development and I am still working my way up from learning Arduino to raw AVR and next to STM32 which uses ARM. I have a question in my mind which involves the commercial mass ...
user avatar
  • 103
1 vote
1 answer
85 views

Programming the STM32F446RE with a CH340G module

I would like to know if it is possible to program an STM32F446RE MCU with a CH340G converter. And if it is possible, then how?
user avatar
  • 89
1 vote
1 answer
76 views

Exporting LTSpice waveform data from Monte Carlo simulation and manipulate it in MATLAB

So I am doing a Monte Carlo Simulation on LTSpice. Then I want to export my data and manipulate it in MATLAB. Here is a working example file, just with 2 decades each one with 11 points and 6 ...
user avatar
0 votes
3 answers
170 views

How does one program for first time and reprogram microcontrollers that are mounted to a PCB?

Arduino Unos and Microchip Curiosity Nanos are for prototyping and easy and ready to program, but now I am struggling to find the resource material that would detail taking the chip off the breakout ...
user avatar
  • 187
2 votes
1 answer
71 views

Error in programming ESP32-S2-WROVER

I have two circuits. One with ESP32-WROVER-IB and another with ESP32-S2-WROVER. I connected both similar fashions. However, I see I can flash the ESP32-WROVER-IB, but I am unable to flash the ESP32-S2-...
user avatar
  • 769
1 vote
1 answer
79 views

Verilog code shows unknown results (X) for some reason

I wrote this code, and it doesn't give a value for the sum. Why is that? design: ...
user avatar
  • 23
-2 votes
1 answer
58 views

What is the difference between making a resistor based keypad and not using a resistor on arduino? [closed]

I've seen videos on youtube about how to emulate a keypad on arduino. Some of them includes a resistor while others do not. What are the difference between them and are there advantages in doing one ...
user avatar
0 votes
1 answer
72 views

Programming an old school microcontroller (MSM80C49 from OKI semiconductor)

I've read the whole datasheet, there's no typical guidance on programming procedure/setup/circuitry. It just mentions a few steps on how to order pre-programmed chips. (I guess) on page 18. On a ...
user avatar
0 votes
0 answers
26 views

Programming - battery energy logging; creating negative and positive data output from a single sensor

I'm using a single bidirectional Hall effect sensor to read the current coming to and out of a battery, but an application requires 2 separate sensors; one for incoming and 2nd one for outgoing energy....
user avatar
4 votes
2 answers
124 views

4x4 matrix keypad interface with microcontroller

I am extremely new to microcontrollers and PIC programming. I need help in understanding how a 4x4 matrix keypad works. I know the 8 pins are used to determine which of the keys are pressed by the ...
user avatar
1 vote
0 answers
67 views

Why is this LSM303d register address being used with an OR and an address operator?

I'm trying to get the data of a LSM303d accelerometer using anSTM32 via the I2C bus. I've found online that to get the data from the OUT_X_L_A register (low byte of x component of the accelerometer) ...
user avatar
  • 11
3 votes
1 answer
530 views

STM32: How do you program it via USB?

Until now I was always using Arduino Nano Boards, which had the proper bootloader installed so that programming via the ArduinoIDE was easy and fast. Just plug it in via USB, wait for Windows to ...
user avatar
  • 365
1 vote
2 answers
68 views

SAM3x8e can't program over serial

UPDATE: Jan 2022. I put together a new pcb. This one has the JTAG header and I have an ATMEL-ICE. Otherwise the processor and support layout is mostly the same. I stripped the program down to simply ...
user avatar
0 votes
2 answers
78 views

The HAL drivers are feature-oriented instead of IP-oriented. What does this mean?

I had bought a STM32F3 Nucleo board sometime back and today I started going through the HAL documentation for that board. It said that the HAL drivers are "Feature-Oriented" and not "IP-...
user avatar
0 votes
1 answer
22 views

What is difference between MPQ8645PGVT-3010-Z and MPQ8645PGVT-3011-Z?

The both MFG no mentioned above has same datasheet? In datasheet they have mentioned like there is a programming for the configuration. Link: https://www.monolithicpower.com/en/documentview/...
user avatar
  • 405
0 votes
2 answers
54 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 ...
user avatar
  • 464
1 vote
4 answers
104 views

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

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 ...
user avatar
  • 39
0 votes
1 answer
84 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 ...
user avatar
  • 31
-3 votes
2 answers
107 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 ...
user avatar
  • 61
4 votes
4 answers
3k 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, ...
user avatar
  • 517
0 votes
1 answer
137 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 ...
user avatar
0 votes
2 answers
149 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)...
user avatar
  • 101
1 vote
1 answer
120 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-...
user avatar
  • 51
1 vote
1 answer
959 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 ...
user avatar
  • 13
0 votes
2 answers
80 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 ...
user avatar
0 votes
1 answer
228 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 ...
user avatar
0 votes
1 answer
92 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 ...
user avatar
  • 355
2 votes
1 answer
64 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 ...
user avatar
  • 235

1
2 3 4 5
15