Questions tagged [programming]
Questions about programming parts (FPGAs, Flash, etc.) Many software programming questions should be asked instead on Stack Overflow.
839 questions
0
votes
0
answers
74
views
Getting switch cases to work as intended in STM32 -BluePill
I am using a bluepill, and the final case statement is looping constantly from GO_TO_TOP -> COME_TO BOTTOM -> ROTATE_ACTION, the 'top' variable is being latched to '1' at the GO_TO_TOP case ...
0
votes
1
answer
104
views
Only blocks appear on the 16x2 LCD connected to the STM32 Blue Pill (STM32F103C8T6) via I2C
As demonstrated by the image above, blocks are displayed on the LCD1, even though I've configured and programmed the Blue Pill STM32F103C8T6 board and connected it ...
3
votes
1
answer
406
views
What are the methods of transferring code from one MCU to another?
I have two identical PCBs that include the same MCU MC68705R3CP. Unfortunately, one of them has an output pin PB4 configured as Darlington drive output that has a high output regardless of the normal ...
0
votes
1
answer
123
views
Does D78F9177 MCU support reading the device?
NEC D78F9177 (8-Bit Single-Chip Microcontroller)
Can someone specify, does this MCU support reading the device? It's not clear, does this particular MCU have built-in functions to disable flash memory ...
3
votes
2
answers
344
views
STM32 F411RE not responding on custom board layout
I was designing my fist STM32 board using the F411RE chip. To program it, I wanted to use SWD and the Nucleo STlinkV2.1 that comes with every Stm32 Nucleo board (in this case also a Nucleo F411re). ...
0
votes
0
answers
67
views
AMD PALCE16V8H-25 PC/4 programming
How can I program this IC? There is almost nothing on the internet and everything is about PAL and GAL. Of course, it is said that all of these are similar, but the above IC is programmed differently ...
1
vote
1
answer
62
views
Parallel Connection of Two Voltage Sources During Programming
I have a device that works with two voltage levels (5V and 3V3). The first one (5V) is used for addressable LEDs (and other peripherals), and the second one (3V3) for an MCU (STM32F3). The device ...
1
vote
0
answers
80
views
Interfacing ADS1115 ADC with Microchip PolarFire SoC Discovery Kit
I have been trying to connect the ADS1115 ADC with my Microchip PolarFire SoC discovery kit FPGA board, I have written the FSM for I2C master by collecting the code from various sources because I am ...
0
votes
1
answer
39
views
Serial Vector Format: Is there any requirement for the value of TDI during a runtest operation?
I'm programming an Altera CPLD from an FPGA over JTAG using an SVF file (generated by Quartus) to specify the JTAG commands. Much of this process appears to work: checking the silicon ID, performing a ...
1
vote
0
answers
39
views
Auto Reset Ckt To download Program in Esp32
For the production purpose my task is to program 8 esp32 Simultaneously.
So for auto reset of esp32.
I am using CP2102 USB to TTL
In that instead of Transistor based ckt solution I have directly ...
0
votes
1
answer
127
views
Inconsistent boot behaviour with STM32L412
I have a very minimal setup for a STM32L412KBT6
It's hooked up on a prototyping board:
The circuit is done according to the official reference guide and effectively looks like this:
(Sorry for the ...
1
vote
0
answers
64
views
Can't get SPI1 on an STM32G030 with libopencm3 working correctly
I'm trying to interface an SD card using SPI1 on an STM32G030 with libopencm3. The pins I configured are: SCK on PA1 (AF0), MISO ...
1
vote
1
answer
66
views
Would any programming changes be required replacing M29W800DB70N6E FLASH memory (from Micron Technology Inc.) with MX29LV800CBTI-70G (from Macronix)? [closed]
One of our instruments currently uses M29W800DB70N6E (from Micron Technology Inc.) which is now Obsolete. We are planning to use MX29LV800CBTI-70G (from Macronix) [ datasheet ] as an alternate. ...
1
vote
3
answers
238
views
Meaning of 'dead code' in MISRA C standards [closed]
Going through MISRA C 2012 rules, I Noticed one rule about dead code and was a little unclear about the definition of "dead code"
Rule 2.2 States that "There shall be no dead code"
...
0
votes
2
answers
204
views
STM32L031G6U6 schematic review and questions on programming it
I have mostly spent time with Atmega and Atsam boards and would like to test and learn STM microcontrollers. I have never worked with SMT32 boards as such and some of my questions maybe to obvious. I ...
1
vote
1
answer
163
views
Communication and firmware via UART
I have ESP32 and STM32L010F4, I want to communicate via UART, according to the datasheet I can use USART2_RX (PA0) and USART2_TX (PA2).
But I have doubts whether there will be any problems during the ...
0
votes
3
answers
4k
views
JieLi Tech AC6955F4 BlueTooth IC Programming
I am experimenting with the AC6955F4 BlueTooth receiver IC from Jieli Tech (datasheet here: https://www.lcsc.com/datasheet/lcsc_datasheet_2406031523_JieLi-Tech-AC6955F4_C22440783.pdf).
There is a ...
1
vote
1
answer
649
views
How to auto boot and auto reset ESP32 Native USB (CDC)?
I'm trying to design a custom board with ESP32-C6 and don't want to use BOOT or RESET buttons.
Can someone point me to a reference schematic that shows how to enable auto boot / auto reset without ...
2
votes
1
answer
229
views
AVR microcontroller dead after trying to enter debugging session
this is already the second time I encounter this strange problem:
I am using an AVR microcontroller with microchip studio.
I wanted to enter a debugging session with "Start debugging and break&...
0
votes
0
answers
135
views
HC-SR04 Ultrasonic Sensor not reading
I have two HC-SR04 from Sparkfun and looking to follow this tutorial(link below) while using 2x sensors. 1 is reading continuously and operating fine while the other appears to be reading zero, ...
1
vote
1
answer
287
views
How does the LM358 works in this IR proximity sensor?
I’m having trouble understanding how the LM358 works as a voltage comparator. From what I know, the logic is that if the voltage on the non-inverting input (V+) is higher than the voltage on the ...
8
votes
2
answers
1k
views
Is a double underscore illegal in VHDL?
I'm learning VHDL and see some people use double underscores, i.e., __, as the component identifier, or assigned signal of a port in case of identical port names. ...
0
votes
0
answers
45
views
piklab-prog "Failed to set port mode to U"
I've had a hard-drive crash in an old production system, and I'm trying to move stuff to "new" WinXP machine. One of the things that's not working is piklab-prog (0.15.8), used in scripts ...
1
vote
2
answers
160
views
How can I filter "unwanted" pulses coming from the AM demodulation on a microcontroller. The data is encoded in differential Manchester
EDIT AS ASKED: EM4095 Datasheet I use the read only configuration on a custom board. I am not using CLK/RDY as the bit rate is known, and reduces complexity (it doesn't offer much other than to ...
0
votes
0
answers
52
views
Low power IoT device: How use "deep sleep" mode without impacting user phone app experience
I’m working on a low-power (battery operated) IoT device using ESP32, and it will have a corresponding phone app. The device will be idle most of the time, so I’d like to put it in “deep sleep” mode ...
0
votes
1
answer
139
views
0
votes
1
answer
192
views
Is it possible to simulate a CRT tv? [closed]
With technology quickly moving on, and old tech being left in the past. It's hard to find CRT TV's large enough to play Light gun games without breaking your back. My question: Is it possible to ...
0
votes
1
answer
120
views
Do I need USB to program the stm32 via SWD?
I designed a PCB that has a STM32F405RGT6 as its MCU. I took out the USB in the design because I thought that I only need it for the power. Now I am wondering if I can program it via SWD with only the ...
1
vote
1
answer
164
views
How can one convert a 'bin' to 'e2p' EEPROM file format?
I have been saving for example M95160 2Kbyte EEPROM in bin format up to now and I believe it is quite easy to understand. There is an address and corresponding data - the programmer takes care of ...
3
votes
2
answers
134
views
Chip Erase verification on AtTiny3217
I'm trying to write software to program an AtTiny3217 via UDPI, but I'm stuck when it comes to performing the Chip Erase step.
In the datasheet, it says
Enter the Chip Erase key by using the KEY ...
1
vote
0
answers
567
views
Debugger/Programmer Invalid Target Device
I use a PicKit5 to program a PIC24EP128MC202 using MPLAB x IDE v6.20 with XC16 Compiler, I recently fixed some memory model issues and I ran into this problem where "Invalid Target Device"
...
0
votes
0
answers
423
views
Unable to program the MCU through STM32 ST-LINK Utility
I encountered an error while programming my STM32 microcontroller using ST-Link Utility. The exact error message is "The ELF loader sector erase function fails." Can you help me troubleshoot ...
0
votes
1
answer
196
views
IAR how to get the value of environment args [closed]
I would like to know what is the easiest way to get the value from the IAR's environment args such as $TOOLKIT_DIR$ or $PROJ_DIR$.
I know what method uses Windows for it's environment variables, but I ...
1
vote
1
answer
209
views
MQ2 Gas sensor ppm output incorrect
I wanted to create a custom PCB involving an MQ2 gas sensor and ppm concentration, and based my code on this website: https://www.exploreembedded.com/wiki/Interfacing_Gas_Sensor_(MQ2)_With_AVR
I'm ...
0
votes
0
answers
130
views
Help Needed: ADNS-9500 Optical Sensor Movement Detection with ESP32 Wroom
I'm currently working on a project with an ADNS-9500 optical mouse sensor and an ESP32 controller board. The aim of the project is to move the optical sensor and have the ESP32 recognise the movement. ...
0
votes
1
answer
177
views
Altera FLEX 8000: Extracting "bitstream" from .sof file?
I've acquired an Altera FLEX 8282A FPGA and I'd like to have a bit of a play with it.
Yes, I know these are prehistoric parts, but I like playing around with old stuff. :-)
I've installed MAX+Plus II ...
0
votes
1
answer
100
views
MAX1415 ADC not reading voltages correctly. Incorrect setup procedure?
My device uses two of the MAX1415 dual-channel sigma-delta ADCs. I've labeled them "MADC" and "CADC" for "Measurement ADC" and "Calibration ADC". They are ...
0
votes
1
answer
118
views
Is it OK to power the circuit while the programmer is connected?
I have an Atmega328 connected to an Olimex AVR programmer, and programming it works fine. Because the programmer does not supply a constant power, I also power the entire circuit from an Arduino (just ...
0
votes
1
answer
162
views
Damaging of SWDIO and SWDCLK pins when they are used as output/uartRX
We are developing board with LPC54616. All pins are already used, so we have to use also programming pins, SWDIO as output pin and SWDCLK as uart RX (both signals are connected to additional modul of ...
0
votes
1
answer
134
views
Attempting to get a program for my PIC16F84A to work
I've been struggling for the past few days trying to get this to work right and need a professional to take a look at this and see where I am going wrong:
Code:
...
0
votes
0
answers
151
views
STM32 Bootloading issues on custom PCB
I designed a gas sensor board around the STM32F030F4P6, and have been having issues boot loading. I am using the ST-Link V2 bought from Digikey, and 6 pin tag connect, and it seems that regardless of ...
0
votes
0
answers
93
views
Programming ELM327 PIC18
I have (second hand) a modified ELM327 with 18F25K80 and a FT232, seems has been modified to be programable via USB has a jumper wire from pin 3 (reset) from FT to pin 1 (mclr) 18F, swap quartz and a ...
1
vote
1
answer
126
views
Why is this 8051 ASM code not working?
I’m trying to implement an automated parking lot using an 8051. I’m using stepper motors to function as gates at the entrance and the exit of the parking lot that open whenever the IR sensors placed ...
0
votes
0
answers
85
views
Communication Issue with TCA9539 on MSP430FR4132
I am trying to communicate with the TCA9539 using my MSP430FR4132, but I'm encountering issues setting the registers using I2C. I've connected pull-up resistors (10kΩ) to both the SCL and SDA lines. ...
1
vote
2
answers
141
views
Number of iterations in nested loop (8051)
Let's say we have this program:
MOV R5, #4
H2: MOV R6, #10
H1: DJNZ R6, H1
DJNZ R5, H2
After moving the data to the registers, microcontroller executes ...
2
votes
4
answers
389
views
An aspiring electriconic engineering hobbyist -- How should I go about this? [closed]
I'm a full-time maintenance technician with no University education (though I did get college credit in highschool for physics and statistics 9 years ago), and I have plenty of interests I want to ...
1
vote
2
answers
159
views
How to separate 4th order transfer function (Butterworth Approximation) into 2nd order using Python Control Library?
Previously I had the following coefficients in the program. In this program I want to create a transfer function of butterworth approximation (Digital Filter Design - Digital Signal Processing).
...
0
votes
0
answers
120
views
STM32 Programming Using Infrared
I'm trying to program STM32 using IR Emitter and PT.
While trying this, there is interaction between the programmer and the PCB, but since the signals rise late, I get an error before I can send the ...
0
votes
0
answers
96
views
MCP4151 unresponsive to commands on ESP with CircuitPython
I am trying to control an MCP4151-103E digital potentiometer from an ESP32-Devkit-v1 running CircuitPython 8.2.7.
For this task, I have the following code. This has been adapted from this Github ...
1
vote
2
answers
394
views
16 MHz crystal not oscillating
I recently designed a custom board in KiCAD using an ATMEGA32U4, I had JLCPCB solder on the USB-C connector and MCU, however I can't get it to boot load. I referenced another design that works (I made ...