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
34 views

ESP32-C3 Custom board flashing using USB issue - Invalid head of packet 0x47

I built a custom board using the ESP32 C3 with inbuilt flash. Because I need to use the least space possible, I decided to use the function of this chip to be flashed via USB. When I connnect the ...
Sebastian M's user avatar
3 votes
1 answer
83 views

What would be a good way to program an MCU in a mid sized (few hundred) batch?

I'm looking to have a few hundred boards made and they all have an MCU on them, that will need programming. With large scale production, it seems the way to go is usually programming the IC/MCU before ...
Gorbit99's user avatar
1 vote
0 answers
44 views

STM32U5 SCL line stays low and hangs

I have two STM32L0 (slaves) and STM32U585 (master) MCUs. I have no issue when Slave transmits data to Master, but if Master transmits signal to Slave, it sends all the 9 clock pulses with address bits,...
amir_sh's user avatar
  • 21
1 vote
1 answer
42 views

SC14430 Microprocessor programming help

I have a SC14430 Microprocessor, and I want to know what software I should use to read and write to it. It has the standard SRX STX GND pins. I have attached a couple of images for reference. Thank ...
Khalid Siddiqi's user avatar
0 votes
1 answer
43 views

Is there a way to make the Verilog port declaration based on a macro value?

Basically, what I am trying to achieve is that, There is a macro REG_COUNT. Based on the value inside the macro, the N number registers get initialized. But I also want to create dedicated output ...
Vasant Joseph's user avatar
0 votes
0 answers
47 views

Graphical LCD With Atmega64

I have ATMEGA64 and LCM240128, The wiring is as below: And my code is ( I'm using codevision): ...
Mojtaba Miraki's user avatar
0 votes
0 answers
36 views

Identifier whose declaration cannot be found. TRISbits

Currently trying to program a PIC32MZ2048EFM144. I'm new to PIC programming, and I'm currently attempting to set pins J7, 3, and K7 as outputs and set them to a high state. However, I'm encountering ...
Sean 's user avatar
  • 11
1 vote
0 answers
28 views

Flashing Atmega328p bootloader with connected SPI device in parallel

I'm designing a PCB with an ATmega328P (SMD) and two ADS1118 ADCs (also SMD) that will be connected to the ICSP pins of the ATmega328P. Will these two ADCs, in parallel with the MCU, pose a problem ...
electronics's user avatar
0 votes
0 answers
58 views

ESP32 Dual Core

Does anyone have experience with using the second ESP32 core? I searched the internet but I only came across two loops that run independently of each other. I would need to be able to call a function ...
Kabl62's user avatar
  • 1
0 votes
0 answers
50 views

problem with switching from arduino mega to ESP32

I bought an ESP32 to try instead of an Arduino Mega. But I ran into a problem with my program. The program has the function of controlling the stepper motor through the LCD display and it runs without ...
Kabl62's user avatar
  • 1
1 vote
0 answers
132 views

avrdude OS error: file not readable invalid argument

I decided to get into the world of "naked" microcontrollers (started with Arduino), found an ATtiny 85 among my parts and an USBasp and decided to first make a blink sketch. Did everything ...
Post Fah's user avatar
0 votes
1 answer
32 views

STM32F030 I2C: Avoiding NACK

I am trying to port my I2C code from STM32F103 to STM32F030. Everything works fine with writes (writes to an eeprom), but when I try to read from an EEPROM (first write transmission with memory ...
sx107's user avatar
  • 1,077
0 votes
0 answers
33 views

PLD programming language panorama

what are the current options to program the PLD? I'm looking for a modern, supported, open source if possible, solution to program such devices.
ozw1z5rd's user avatar
  • 215
0 votes
0 answers
46 views

Is it possible on STM32 to detect if an event triggered?

According to Stm32 Event and interrupts , STM32 events are mainly for controlling other peripherals. Is there a way on the MCU itself to detect if an event fired? That is, I don't need to interrupt ...
SRobertJames's user avatar
13 votes
9 answers
4k views

What's a good way to assert in embedded microcontroller code?

It's good practice to use assert to test that things are that we expect them to be. Likewise, it's good to check that calls worked as expected and didn't error. In ...
SRobertJames's user avatar
-1 votes
2 answers
127 views

What's a good way to learn microcontrollers without magic? [closed]

I know software (C, C++, POSIX, assembly) and would like to learn microcontrollers at a low level, down to digital circuits. I don't want to use any tools that obscure the internals, such as Arduino, ...
SRobertJames's user avatar
0 votes
1 answer
49 views

How to program and download a file to STM32F746-disco board?

I'm trying to program my touchGFX project and download a music file to this board without much luck. The touchGFX project works fine but I'm testing the sound part now. I managed to extract the ...
Rodo's user avatar
  • 976
0 votes
0 answers
33 views

What is the Arduino code for 433MHz RF TxRx pair connected to one Arduino UNO board to transmit "Hello" text from the transmitter to receive?

I wrote 2 codes but no one shows anything on the Serial Monitor. Please correct my code. 1ST CODE ...
Ship's Tech Talk's user avatar
0 votes
1 answer
104 views

Can I program Arduino Uno R4 On STM32 IDE?

The microcontroller of Arduino Uno R4 is Renesas RA4M1 (Arm® Cortex®-M4). -So can I program Arduino Uno R4 On STM32 IDE? -Can I use STM32 library for Arduino Uno R4? Thanks!!!
Đức Chung Nguyễn's user avatar
0 votes
0 answers
51 views

Why is this ST-link V2 not pairing with the STM8s MCU?

I had connected this circuit like in this schematic using the ST-LINK V2, however I made some changes, I connected the 2 and 3 pins (OSCIN, OSCOUT) to 12pf capacitors (I have no 20pf or higher) and ...
Hazardous Voltage's user avatar
0 votes
1 answer
69 views

Error while uploading hex file in DSPIC33CK32MC102

I am using DSPIC33CK32MC102 SSOP package, I have code and its hex file ready. I made the connections for the controller those are as follows: Pullup resistor of 5.5 kΩ for MCLR pin and 100 Ω between ...
user346235's user avatar
0 votes
1 answer
75 views

Which is better for programming STM32F103C8T6? Using Arduino IDE or STM32CubeProgramming? [closed]

STM32 is can programming using Arduino IDE, but I am confusing about which is better for programming this device, and what is the deficiency about this two software for programming STM32. (I am ...
HumbleBee's user avatar
2 votes
1 answer
802 views

How to program a CH32V003 MCU without using WCH link

I recently came across the CH32V003 MCU and wanted to embed it in my projects. To program, I was advised to use the WCH link but my standard port I use to program the MCUs is an USB port. So if I need ...
Nsj09's user avatar
  • 21
0 votes
0 answers
158 views

PID control with PIC microcontroller

I'm relatively new in C program ( I'm using MPLAB X IDE XC8 ), and first time trying to make a PID control, using a PIC16F15223 This is what I want to make: The pic has an analog input that reads a ...
samuel mattio's user avatar
0 votes
0 answers
24 views

Floating point on Cam Tables?

What's the general way to handle floating point error on a cam table? Constraints are using: PLC Open function blocks Scale on application units for servo setup is an ...
Jamie Marshall's user avatar
3 votes
1 answer
87 views

What is the purpose of this circuit that is part of a Renesas RX231 programming interface?

I traced a IO-Link USB master PCB to understand how it works. The ciruit I found makes sense to me except for a part of the programming interface. It's marked red in the following schematic. (TXDA is ...
nanash1's user avatar
  • 3,260
1 vote
0 answers
26 views

Scroll Text Image right or left from memory on LED Matrix

In my new project based CPP on microcontroller, I have Text as image row and column stored in W25Q32 memory. the width of image can vary but height is fixed. So if Image width is 32 bits wide first 4 ...
joshin joy's user avatar
0 votes
1 answer
107 views

Programming an ATMega328 while on a custom PCB

I designed and had made a custom PCB for a project I am working on. The PCB uses an ATMega328 chip that sits in a socket that is soldered on the board. Currently, to program the chip, I am removing ...
Thomas's user avatar
  • 111
0 votes
2 answers
57 views

burning the code to atmega328p

I am a bit confused regarding the code uploading process to the atmega328p. I have read a site where usb-ttl was used to upload the code. There is not bootloader uploaded on the atmega328p and the ...
kam1212's user avatar
0 votes
3 answers
44 views

Making a custom Arduino

I am working on making a custom Arduino board but I have some confusions regarding that. I have seen all the documentations but am confused regarding the ICSP pins and the communication through the ...
kam1212's user avatar
0 votes
0 answers
35 views

Does it matter when I step down the voltage in a two part conversion?

I’m designing a 3.3V board using 328P that I want to program via usb, meaning I need a usb to serial conversion. My question is, does it matter if I regulate the voltage (MIC5129 LDO) between the USB ...
1W0n_29's user avatar
  • 21
0 votes
1 answer
122 views

ATtiny10 sleep mode

I have a very basic ongoing project that involves 8 LEDs, push-button tack switch with 10 kΩ pull up resistor, and an ATtiny10 microcontroller. The entire system is powered by a coin cell battery with ...
Warranty_void's user avatar
1 vote
0 answers
98 views

AT89C51RD2 Empty or don't start up erratically

I have a strange problem and I don't know how to find a solution. I have a board with an AT89C51RD2 inside. I programmed it (thanks to Atmel flip), and it works fine. After some use (week or months), ...
F4F56's user avatar
  • 11
0 votes
0 answers
89 views

Programming Nuvoton N76E003 with UART USB to TLL Module

I have found a Nuvoton N76E003 microcontroller in spare board and now I'm planning personal project with that microcontroller. I don't have proper Nuvoton programmer dedicated for Nuvoton N76E003 but ...
Akash Patil's user avatar
0 votes
2 answers
88 views

Lack of I2C peripheral in a module

I want to use 3 I2C peripherals connected to this WFI32E01PC. This part has 2 options. Either MCU or the 54-pin package WFI32 module. I plan to use the 54-pin module. But on page 3 of the datasheet, ...
Freshman's user avatar
0 votes
0 answers
231 views

ST-LINK v2 can't connect

I am having trouble with my ST-LINK V2 clone (USB stick look alike.) Error is : Can not connect to target! If you're trying to connect to an STM32W1xx device, please select Normal or HotPlug mode ...
macak's user avatar
  • 1
0 votes
0 answers
24 views

STM32 USB Dongle ST-utility connection problem

I'm using a CANADUINO ST-Link V2 USB Dongle (SWD). I'm trying to connect to the chip but I keep getting this error: I do have the reset pin attached to the USB. Any help is appreciated.
Chris Walker's user avatar
0 votes
1 answer
43 views

Implementation of microsecond timer on NRF52832 using sandeepmistry nrf52 library

Can anyone please describe how to use sandeepmistry nrf52 library to create an accurate microsecond timer, without using any standard delay functions. I'm using the timer on a generic nrf52832 design ...
Pete_xavier's user avatar
1 vote
2 answers
65 views

Analyzing the complexity of a number in the Arduino IDE

I'm working on a project where I'm linking a calculator (TI-84) to an Arduino (Nano) and I want some way of classifying or quantifying how complex a single number is (small whole numbers being very ...
Lil Mami Chula's user avatar
1 vote
1 answer
251 views

SWD isolator solutions

I'm looking to implement an isolated (reinforced, >500V) isolation circuit on the PCBA side that would allow for SWD programming of MCU such as STM32 using JLINK / STLINK etc. The interface is ...
NoobPointerException's user avatar
1 vote
1 answer
93 views

Microcontroller not blinking LED

I want to check if my microcontroller is working. It's the first time I'm working with microcontrollers. I followed this tutorial to blink a LED at the P1.0 pin, but nothing is happening. My ...
ludicrous's user avatar
  • 999
0 votes
1 answer
35 views

Get a motor to move my camera based on a point in an image [closed]

Let's say that I have this image: Obviously, the camera is pointing to the center of the image, but I need it to point to the center of the bbox. I need to calculate how to get my motor to move so ...
David's user avatar
  • 1
3 votes
0 answers
124 views

Regenerative braking on BLDC motor

I am trying to design regen Braking for BLDC motor controller I used three switch topologies for regenerative braking. In three switch method, high-side MOSFET S1, S3, and S5 are kept OFF and low-...
Surendran 's user avatar
0 votes
1 answer
168 views

Programming a Nucleo 32 board using ST-LINK

I'm using this Nucleo board but unfortunately after I programmed it I have attached it to a base PCB in such a way that I can't access its USB port anymore. If I want to make an update and access its ...
GNZ's user avatar
  • 1,638
0 votes
0 answers
34 views

interface SD Card using SPI communication in stm32f103c8 [duplicate]

I need to interface SD Card using SPI communication in stm32f103c8. First i to store the temprature value in every one seconds in sd card. It work well after that i try to store temperature value in ...
Mr Smile's user avatar
0 votes
1 answer
60 views

PIC18F452: pressing button doesn't light up the LED

I am trying to program a PIC18F452 microcontroller to light up an LED when I press a button. Here are the connections of the keypad: The connections for the LEDs: The physical connections of the ...
appliedSciences's user avatar
0 votes
1 answer
97 views

Programming a PIC18F452 with LCD gone wrong

I want to learn about microchip programming and have downloaded PicsimLab.I am trying to program a PIC18F452 to display the character '0' in the output of a LCD.Here is the picture with the binary ...
appliedSciences's user avatar
0 votes
2 answers
99 views

FPGA patching existing program

This may be a beginner's question as I'm not that well versed in FPGA design. What I basically have is a preprogrammed Lattice LFE5U-25F with an external memory and I don't have the source code of ...
lonelytransistor's user avatar
0 votes
0 answers
71 views

How to measure and control AC current in BLDC motor

I tried to measure the AC current for the BLDC motor in a single phase (Phase B). I use Timer 1 to generate PWM and Timer 4 for changes that occur in the commutation state (ie step change occurs ...
Surendran 's user avatar
0 votes
2 answers
110 views

Programming an 8051 MCU (Topro TP2808)

I have this 8051: I have acquired an it from an old device and I want to program it. I have experience with AVR, ESP, and STM microcontrollers, but not with 8051's. Googling info about this DIP IC, I'...
Kira's user avatar
  • 1

1
2 3 4 5
16