Questions tagged [mcu]
89 questions
0
votes
1 answer
STM32 Master/Slave SPI communication using HAL_SPI_TransmitReceive()
I'm trying to test out a SPI master using HAL_SPI_TransmitReceive() as I will be communicating with an SPI slave. The SPI slave device is not yet available. I have two STM32F4 NUCLEOs that I am using. One that will be the master and one pretending…

ConductedForce
- 194
- 2
- 14
0
votes
1 answer
How to debug a QT MCU project into QTcreator and IMXRT1052 evaluation board?
I have a QT commercial license so i'm able to devolop a qt for mcu project.I have also a NXP IMXRT1052 evaluaton board.I developed a simple app with a single qml file and a c++ class.Now i want to set the debugger into qt creator.This is my qt for…

pablodepas87
- 197
- 1
- 16
0
votes
1 answer
ESP32 Retrieve embedded binary files from the firmware .bin file
I'm using the ESP32 aWOT library to setup a webserver and I'd like to embed a bunch of binary files into the firmware .bin image (for OTA update purposes). Using PlatformIO we can use the:
board_build.embed_txtfiles = src/file.ext
command to embed…

strange_bakery
- 1
- 2
0
votes
0 answers
Can't turn on n-mos when use 1M pll-down resistor on gate
please forgive me for my bad English. I am using ATMGA328P MCU to control ignitors which needs about 500ma current to work. To provide such current, I use AO3400A N-MOS to control the ignitors. In early design, I didn't use pll-down resistors. The…

ff1211
- 11
0
votes
1 answer
how to read data from the BNO085 sensor
How to read and write the data in the BNO085 sensor through I2C.
I2C interface is available sensor but no register data are available in datasheet.

Arun
- 1
- 1
0
votes
1 answer
Any reason not to increase .bss or .data section size on MCU?
I'm a little surprised that I couldn't find an answer to this question so I'll just ask it.
I have a farely large Look Up Table which is not initialized and hence will be placed in the .bss section of my TI TMS320F280049 MCU. Not surprisingly the…

Karl Poarf
- 13
- 4
0
votes
1 answer
STM32H7 problem after changing the linker script file in order to store data into DTCM RAM
I am using STM32H755ZI MCU. This MCU has 1MB RAM which 512KB of it Can be directly accessed by M7 Core. I must store 45000 float samples the size of which will be around 180KB.
My first problem is that after storing around 12000 samples my program…

Sina_Torkzadeh
- 13
- 4
0
votes
1 answer
Difference between events and interruptions
I know that this topic was debated a long time ago (link: Difference between interrupt and event ), even though, I don't consider the answer adequate. The reason is the next: when one talks about events versus interruptions, the term events…

pauk
- 350
- 4
- 15
0
votes
0 answers
Can Python do Factory Method design pattern?
I did it in C using an array of function pointers. The pointers are randomly accessed and used to call their pointed-to function, which runs a unique animated light pattern in a WS2812B LED strip [using the ADAFruit NeoPixel library]. But, I want…

ReverseEMF
- 506
- 7
- 10
0
votes
0 answers
Receiving random data bytes during STM32 CAN communication Rx
I'm using STM32F103RBT6 Nucleo board with CAN communication for my project. I use Microchip CAN Bus Analyzer(acts as a node) to transmit CAN data.
Project Setup:
CAN message flow from: CAN Bus Analyzer --> CAN Transceiver --> STM board.
I need to…

Heisenberg7
- 3
- 1
0
votes
1 answer
LPC 1769 Ethernet MAC for internet connection
I am trying to use LPC 1769 for an IOT application. I wanted to incorporate an MQTT client in the MCU code. But understood MQTT client need TCP/IP stack. On reading datasheet I understood LPC 1769 support ethernet MAC only. I have two queries as…

Deepak Kumar
- 11
- 1
- 4
0
votes
2 answers
How to connect to stm32f205 via jtag or swd for read/write?
Good day everyone.
There is a need to connect via jtag / swd to stm32f205.
There is a chip soldered by all pins.
There is a Chinese st-link v2
I guess I need rst, swclk, swdio 3.3vdd
in datasheet it is 7, 49, 46, 48 pins
I'm not sure if I…

Dmitriy Skogorev
- 139
- 2
- 3
- 11
0
votes
1 answer
PIC18F26Q43 SPI Slave does not receive data
I want two PIC18 to communicate by SPI. The slave has the new SPI module with FIFOs and separate RX and TX registers. For some reason I cannot receive data. I guess I misconfigure the module.
I also use the SS interrupt to prepare the transfer. Upon…

user5717448
- 3
- 4
0
votes
2 answers
HTTP 1.1 GET requests are too quick for server to respond causing TCP Retransmission
I am making a webserver with RTOS on a MCU.
The network library uses HTTP 1.0 and closes the TCP socket and re-listens after each request.
The web page I am serving has multiple .js files that it needs to load after the html has fully loaded.
Once…

StackJ
- 3
- 1
0
votes
1 answer
Protecting against overflow in a delay function
I have in a project of mine a small delay function that I have written myself by making use of a timer peripheral of my MCU:
static void delay100Us(void)
{
uint_64 ctr = TIMER_read(0); //10ns resolution
uint_64 ctr2 = ctr + 10000;
while(ctr <=…

Cantaff0rd
- 705
- 1
- 6
- 14