Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [programming]

Questions about programming parts (FPGAs, Flash, etc.) Many software programming questions should be asked instead on Stack Overflow.

1
vote
1answer
51 views

Device that uses a USB port for application downloads in an application/executive model — what class should it be?

So, I'm building a device (it's a programmable, USB-powered RGB LED lamp, so it's rather silly :) but this problem comes up in more serious contexts as well, such as when a PLC provides a USB ...
5
votes
1answer
403 views

An overhead of running program on Linux vs embedded bare-metal

Let's say I have some multi-core ARM Cortex-A. Now I have there a Linux, with RT_PREEMPT patch (so called real-time Linux). I run a processes with affinity set to one core and high priority (above 50)...
3
votes
2answers
482 views

How do you independently program a GSM/GPRS IC [duplicate]

I see these GSM/GPRS modules that you can use with a microcontroller but all of them use the microcontroller to control the module using AT commands. After a bit of googling i saw this GSM/GPRS IC '...
1
vote
0answers
334 views

Can UPDI Enabled AVRs be Programmed at 1.8V?

Microchip's new line of Tiny AVRs use the new UPDI programming interface. After looking at the datasheets for the ATtiny817/1617, the Atmel ICE interface document, and the internet, it's still ...
1
vote
2answers
2k views

Is SWD with an FTDI chip a universal programmer solution?

I have searched high and low (in fact I have spent the recent months on and off trying to find an answer). Maybe I'm not asking the right questions, or am staring the answer in the face, I'm not sure. ...
16
votes
7answers
6k views

Is it possible to draw circuits through code?

Is there a better way not by writing netlist files. something like: ...
1
vote
1answer
63 views

What is the name of the syntax standard Keithley is using for remote control over serial?

Keithey (and other manufacturers) have a standard syntax for communicating over serial. Typically, commands look like (source): ...
5
votes
3answers
1k views

Can I use C language to program a CPLD/FPGA?

I wanted to know if I can program CPLDs /FPGAs using C language? If so, is it commonly practiced? What are the steps and the required & tools for the same?
0
votes
3answers
701 views

Can I use VHDL/Verilog to program a micro-controller?

I wanted to know if I can program any micro controller (not CPLDs /FPGAs) using VHDL/ Verilog? If so, what are the steps and the required tools for the same?
1
vote
1answer
648 views

STM32F04 UART Transmit with Interrupts

I have been prototyping my project with the STM32F103 "Bluepill" and for the final product I want to move to the STM32F042F6 which has a smaller TSSOP-20 footprint. I need to use UART in my ...
2
votes
1answer
89 views

On IAR's EWARM package, what is the difference between the built-in MISRA C checker and CSTAT's MISRA C checker?

A bit of background: Our team will be programming firmwares for ARM microprocessors. Programming codes should comply with the MISRA C standard. We have decided to check IAR's EWARM package: https://...
0
votes
1answer
71 views

Are switched jacks ever used for in-system-programming connections? (If not, why not?)

It seems like a switched jack would be a straightforward way to make pins do "double duty" in a uC-based application. That is, the "normally closed" connections of the jack could connect the ...
2
votes
1answer
112 views

Forgot ICSP / in-circuit interfacing of pins on Atmega328P in TQFP-32 package

I am having an issue due to my own stupidity: I designed a PCB with the good old Atmega328P in TQFP-32 package. I broke out the pins for UART in order to be able to Arduino-flash it (beginners/...
1
vote
2answers
1k views

Using an AVR Programmer to program the TQFP version of ATMEGA328P [closed]

I am attempting to upload the Arduino bootloader and a program to an ATMEGA328P-AU with an AVR programmer. I have done this before using the Arduino UNO board and and the 28 pin DIP version of the ...
1
vote
1answer
7k views

STM32F1xx HAL UART Recieve

I am trying to send and receive data to and from an STM32F1xx. I have got the STM32 to successfully send data back to the computer. I did that using the code below. ...
0
votes
1answer
734 views

What is the difference between programing with JTAG and USART interfaces?

I understand there are 2 interfaces to programming NanoMind A712 computer: JTAG and USART. But what is the difference in programming the computer in JTAG or USART interfaces? Datasheet: See page 10: "...
10
votes
1answer
402 views

Can you program a surface mount IC with flash memory and then reflow solder them?

I know that many chips, such as the ATMEGA328P-AU list flash storage lifetimes at certain temperatures, but they usually cap out at 100° C. I know that, ideally, one should include leads on their ...
0
votes
1answer
1k views

Program not running on STM32F4 after disconnect it from PC

I developed a program on STM32F4 using keil uV on windows 10, it works perfectly when the target is powered by the computer even after i stop the debugging. Normally after downloading the program in ...
0
votes
2answers
73 views

Unable to access structure members through pointer in function called form another funciton?

While trying to interface BMP180 to my STM32L4 Controller using libraries I found that the , BMP180_RETURN_FUNCTION_TYPE bmp180_get_calib_param(void) funciton ...
0
votes
3answers
394 views

Can I read EEprom in circuit when connected to a SH7055 MCU?

I am trying to read a microwire 93C66 EEprom which is connected to a Hitachi SH7055 MCU. The device is a complete automotive ECU. I need to be able to do this in circuit. Currently I get an error ...
0
votes
1answer
83 views

Production programming: is there a practical size limit to serialization length? [closed]

This is a follow on question from the answers of these two: Is it practical for firmware to be uniquely identified in production How to verify hardware is legitimate I would like to be able to ...
0
votes
1answer
95 views

Latitude and Longitude DMS conversion in MPLAB XC8

I am using two function for lat and long DMS conversion. when I am using those two function ,either lat or lon is display correctly in my UART.when If i will print latitude first in UART,displaying ...
0
votes
3answers
644 views

What is clock cycle in a microprocessor? [closed]

can any body saying to me what is that the difference between a micro controller with 1 MHZ and 200 MHZ clock in a timer project or in a project that record sound ...
-1
votes
1answer
106 views

Question about Color Sensors

Can a color sensor detect more than one color at once WHILE distinguishing them? For example: Say I wanted a program to activate only if both red and violet are detected at the same time. Is that ...
2
votes
2answers
347 views

PIC Programming commands

I want to program some PIC micro simultaneously using single same port. There is no problem in programming but when process is finished, feedback command that say "done! its programmed" cause conflict ...
0
votes
1answer
220 views

LabView drivers for Keithley 6487. where to find documentation?

I have to set up a program for measuring the IV characteristics of some components using LabView. At the time of writing I'm studying the basics of the G language (LabView programming language) for ...
0
votes
1answer
23 views

Idea behind Reverse Insertion Check

I read through universal device programmer (device that program ICs like AVRs, PICs, EEPROM, etc) like items in links below, I found that these programmers perform these checks: insertion test. ...
-1
votes
1answer
636 views

Interfacing NAND flash to a microcontroller [closed]

I have a MP3 player with Samsung's nand flash chip (2GB), I want to connect that chip to microcontroller and read, write or list files and directories as we do with arduino SD Card Library. Your help ...
-3
votes
3answers
303 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
266 views

How to configure an AVR32 as a USB CDC Device?

I am trying to configure an AVR32(UC3B0512) microcontroller so that it can appear as a Virtual COM Port to the PC. I followed the instructions in this application note, but could not get it working. I ...
-4
votes
3answers
121 views

loading different files into a PIC [closed]

Is there any way to load a file (of extensions .bat or .HTML) into a microcontroller and make the microcontroller run the file when it is connected to a PC using UART EDIT: thanks for information but ...
0
votes
1answer
394 views

How to send data from PC to an AVR32 microcontroller using USB?

I have a board with an AVR32 (AT32UC3B0512) and a USB port. I would like to send data to the USART, using a terminal from my PC, but I don't know how to use the USB to access the RXD and TXD pins. I ...
0
votes
1answer
33 views

Help Led matix isn't lighting up correctly Is it a Hardware or software issue? [duplicate]

I am trying to reverse engineer the project from this video: https://youtu.be/zc1zbwheyE0?t=50s. From the video a visible 10 wires are going from the LEDs to the Arduino mega, i am assuming that they ...
1
vote
2answers
299 views

C programming syntaxes for NXP LPC1768

My question may seem weird, but I am very new in nxp micro-controllers. It seems to me that people use different syntax in C programming. For example, in order to set a pin as an output we have: <...
4
votes
1answer
502 views

Why is this hex file different than the code programmed onto the device?

I have a design using an STM32F105. My application written in C; using Eclipse and gcc. I have been using Eclipse (with OpenOCD and an ST-LINK/V2 programmer) to write the firmware to the devices. Now ...
2
votes
1answer
80 views

Begin programming using audio signals

I recently purchased a Amcrest ProHD IP2M-841W 1080P camera where the initial configuration is done over some kind of audio signal, a companion app for mobile phones which, at the end of the ...
2
votes
6answers
880 views

Will the same C code for an AVR microcontroller work with any other type?

I'm learning about microcontrollers and have very limited knowledge on the subject. I just know that one needs to set bits in the registers and manipulate them basically to make a uC work. The ...
0
votes
1answer
454 views

Dumping TSOP48 flash

I'm trying to understand how to dump a flash device myself without using a universal programmer. I have this chip S29GL032N90TFI040, I also have TSOP48 socket The datasheet specifies the table of the ...
-4
votes
2answers
169 views

FPGA basics and implementation help [closed]

I want to use an FPGA for my project and I want to use an FPGA as I want to implement the functionality of multiplexers within it. Also I want to implement a microcontroller function within an FPGA. ...
2
votes
3answers
381 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 ...
-2
votes
4answers
589 views

Programming The Atmega Chips [closed]

Can someone explain a little bit to me how to program the Atmega MCU for example the Atmega328P without the arduino?? So, what i want is to program the Atmega chip without Arduino IDE but using the ...
0
votes
0answers
62 views

ABEL-HDL - Default/reset values

I have as a school task to make a clocks & calendar in a HDL. As a source I have 10 MHz oscilator, which I managed to "slow down" to 1 Hz, as I want. I have asynchronous counters for seconds, ...
2
votes
1answer
1k views

Send REST PUT Commands from ESP8266

I am interested in using an ESP8266 to power a physical interface for a network connected device. The device itself supports REST commands, but I am not quite sure how to send PUT requests from the ...
0
votes
1answer
1k views

LED strip Windows computer controlled

I've bought a bunch a LED strips A friend has built a system using http://resolume.com/ with http://www.heroicrobotics.com/products/pixelpusher controllers, however from what I've read this is geared ...
0
votes
1answer
767 views

How to program an ARM microcontroller?

Is there a way to program the ARM microcontroller without solder it to a dev board? I mean, if I want to develop a product based in the ARM architecture I suppose that I have to use one ...
1
vote
2answers
817 views

How to calculate the total resistance of this electrical circuit

I'm a programmer and I'm making an Artificial Intelligence for a boardgame called Hex. Since I am not that familiar with electrical engineering, I need your expertise on this subject. I am now ...
0
votes
3answers
148 views

How do I connect a PIC microcontroller to a computer?

I am still a beginner, middle school student, and I recently started taking interest in Arduino, Raspberry Pie, etc. Now I want to play around with the PIC microcontroller, but I can't find a way to ...
1
vote
1answer
727 views

Timers in TM4C123G not working

I wanted to use timers in TM4C123GH6PM (in TIVA C series TM4C123G Launchpad evaluation kit). So I decided to use GPTM TimerA0 in periodic timer mode. I defined the address of the registers of GPTM and ...
4
votes
1answer
6k views

STM32F74x Flash page size and sectors

I am writing data to the internal flash of a STM32F746 and I'm wondering what the difference between pages and sectors is? And what is the purpose of using sectors instead ? Notice that I'm very new ...
0
votes
3answers
308 views

What makes the data to scroll in LED matrix display?

I am not able to understand what is making the data to scroll in LED matrix display. http://www.npeducations.com/2011/11/simple-led-message-scrolling-display.html Is it the shift registers? This ...