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
2
votes
2answers
103 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
67 views

Solenoid circuit not firing

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
29 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 ...
-6
votes
0answers
37 views

Programming c language , with change the input state, output is active [closed]

Programming c language , with change the input state, output was activated for 1 second then was deactivated
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
10 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
44 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
241 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
55 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
26 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
33 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
44 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/...
1
vote
2answers
66 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
32 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, ...
0
votes
1answer
50 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
58 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
21 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
142 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
34 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
59 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, ...
0
votes
3answers
239 views

Is bare-metal programming still a thing? [closed]

I am in the learning phase of embedded systems programming. I am curious about the industry practices. Nowadays the microcontrollers are getting powerful and comes with a lot of memory, networking ...
0
votes
2answers
126 views

Writing code for new microcontroller/module without examples [closed]

I started learning embedded systems programming(after a long time when I stopped) and I see that most microcontroller boards/modules come with some set of example codes which can be used a base to ...
1
vote
0answers
44 views

How to set SPI clock speed for MT7623N

first I must say, I am new to the HW programming, but I really enjoy it. My first project is writing a library for MT7623N (BananaPi R2) that handles GPIO pins. I got the GPIO part done and I can set ...
0
votes
1answer
32 views

Attiny861 programming current

What current does it consume during serial programming? According to datasheet it’s about 6000uA at 3.3V. I have to power it from a 10mA ldo, but now I’m not sure that it will be enough. To keep ...
0
votes
1answer
60 views

SPI Flash - Unable to write to first 32 bytes in GD25Q128C

I am new to SPI flash memory reading and/or writing. As I was fiddling with it, I see that I cannot write to the first 32 bytes of the device GD25Q128C. It always reads back something that I have not ...
1
vote
1answer
43 views

Can I Use Arduino Libraries in STM-IDE?

I am fairly new to programming microcontrollers and I want to know if I can import libraries, that are written for Arduino, in other IDEs such as STM32CubeIDE. For example can I use the library HX711, ...
0
votes
2answers
153 views

What does JB instruction mean in Assembly

I am looking at an ST7066U controller for a 2x16 LCD, and in their datasheet, they have these Assembly instructions that I would like to change to C code. ...
0
votes
0answers
68 views

Unable to flash stm32f103c8t6 after erasure, device shows 0 bytes flash size (custom bootloader)

I have flashed a dfu bootloader from https://github.com/davidgfnet/stm32-dfu-bootloader onto a fresh stm32f103c8t6 and it was working fine. After I uploaded my binary with dfu-util the device would no ...
0
votes
0answers
15 views

Using TIVA's onboard JTAG to connect to a 3rd party arm controller

I have a mikrochip's CEC1702 based board and a TIVA tm4c123 launchpad with onboard debugger. I wish go program the CEC board but datasheet suggests it can only be programmed via JTAG. Can I use the ...
0
votes
1answer
68 views

Programming stepper motors to smoothly show value that is refreshed at certain intervals

I am making analog speedo and rpm gauge for both a bike and a car using x27.168 stepper motors and AX1201728SG motor driver. I have encountered quite a problem with showing data that is not constantly ...
1
vote
2answers
86 views

Is a JTAG programmer capable of any microcontroller which supports JTAG?

Sorry if my question is very basic, but I couldn't find the answer by searching the internet. I want to buy a JTAG programmer, but in the datasheet of this programmer there is a list of "...
0
votes
1answer
37 views

Programmer/debugger options for microchip's eval board

I recently received a CEC1x01 eval board as a part of free hardware to develop solutions for a competition. My issue is regarding programming the board. They only shipped the eval kit and no hardware ...
0
votes
0answers
38 views

how to detect error and restart microcontroller for embedded system with Esp 12 or Esp 32 [duplicate]

one thing that make me confused is how the microcontroller notice the errors and restart by itself let me give an example we have cooler system with Esp 32 and temperature sensor,when temperature be ...
0
votes
1answer
87 views

What's the road map to become a good programmer of microcontroller? [closed]

I'm kind of new to microcontroller science and programming, but do some small project with ESP 8266 . I want to create a anti theft reliable system with some sensors like microwave sensors. Could ...
1
vote
1answer
119 views

What is this MPU?

I have a board model SWL-B70F, it's a wifi module used in Samsung AC. This board ship an "unknown" MPU, 256 Mbit DRAM (...
0
votes
1answer
44 views

How to Use Addresses with Single Port RAM on FPGA

I am trying to understand this example of single port memory where an 8 by 64 bit RAM is created. If I am understanding correctly, the section of code that says "reg [7:0] ram [63:0]" means ...
1
vote
2answers
491 views

How to interface MIPI DSI with a microcontroller

I'd like to learn about interfacing a TFT LCD with a microcontroller via the MIPI DSI protocol and writing a program for it. Both have suitable number of pins, some microcontrollers support MIPI DSI ...
0
votes
0answers
48 views

Samd51 fatfs driver with sd card backend stuck in an infinite loop

I am trying to use the FatFs module in the Atmel start for my project with the samd51j19a chip. The clock is @ 120mhz and the sd card is wired according to the diagram on the PINMUX. The program ...
0
votes
4answers
173 views

Programming many Atmega328p at once for mass production

How can I program multiple ATmega328p at once? Like, for example, the Arduino Uno. How do they program it for mass manufacturing production?
1
vote
0answers
40 views

SPI Programming

I am trying to program the processor, eventually i connected NOR and Processor in the same line without any isolation. Now i need to program the Flash without interfacing the processor. Anyone please ...
1
vote
3answers
82 views

Samd51 Handler HardFault

I am trying to upload a simple program that does nothing to my samd51. Here is the code: void main(){} I have compiled it to the exact samd51 model I have using ...
0
votes
0answers
22 views

How can I prove there exits a Hamilton path from a vertaix to the other

I know a Hamilton path on the 4 × 4 (n * n)grid that can starts at the top-left corner and ends at the top-right corner, but how can i prove it in word or math ?not program
1
vote
1answer
77 views

which values of n do a non-cyclic Gray code exists

A non-cyclic Gray code has the same definition as a cyclic Gray code, except that property P3 is not safisfied (the first bit string and the last bit string in the sequence differ in at least 2 bits). ...
1
vote
1answer
50 views

how to implement while loop with time condition in matlab?

I knew how to set a a while loop in Mikrocontroller, but when I tried to Implement it in matlab /simulink, my computer gets stuck and never get out of the while loop and does not do anything. here is ...
1
vote
2answers
69 views

Changing delay duration in _delay_us() changes code size

I was programming an ATtiny13A when I accidentally noticed that when I change the delay time in _delay_us() my code size changes. Here's the sample code: ...
1
vote
1answer
97 views

Programming Arduino AVR MCU with Atmel ICE

I have a question about programming Arduino with Atmel ICE. I am aware that the Arduino UNO has a ISP connection for ISP programming. If i'm not mistaken I should be able to plug in the ICE and ...
1
vote
0answers
21 views

Creating atime based heat exchanger simulation in OpenAi gym and MATLAB for the purposes of temperature control regulated flow rate in

Apparatus: Crossflow Tube and fin HX. (liquid-to-air Intercooler), Hot Side: Tube side, gas flowing internally Cold Side: fin side, water flowing in crossflow Goal: Generate an environment in "...
-1
votes
1answer
26 views

Which debugger should I use to flash: RTL8710AF wifi SDK by Keil or IAR IDE

I just bought a Realtek wifi module RTL8710AF and also found its TCP/IP stack Using IAR Workbench but I am confused in choosing the right debugger and its connection to flash my application program.
0
votes
1answer
54 views

Microcontroller default state problem

I have a Microcontroller - S32K116 - 48 Pin IC. - Datasheet - Reference Manual I have a Voltage divider (for input voltage monitoring purpose) connected to the Pin 16 (PTC3) of the Microcontroller. ...
0
votes
0answers
11 views

Issues with ISP Mode LPC 17XX

I have custom board utilising an LPC 1778 and I'm having issues entering ISP mode, or at least I think I am. I am using the ISP pin and the reset in to enter ISP mode. By holding the ISP pin low and ...

1
2 3 4 5
14