microcontroller Questions
8
Solved
I am trying to generate CRC with STM32L4 hardware modul. I would like to validate fatfs files so basically I have byte arrays. I am using this CRC generator.
Unfortunately I cannot figure out how ...
Sholem asked 22/9, 2016 at 18:32
4
Solved
I'm developing a ttyACM device with ST microcontroller, and with the same code, my host could sometimes enumerate it successfully (below) but sometimes it just dump the below message. What does err...
Hatching asked 12/3, 2014 at 2:20
4
I'm trying to get multicore working on my pico,
#include <stdio.h>
#include "pico/stdlib.h"
#include "pico/multicore.h"
void core1_main()
{
stdio_init_all();
while (1...
Molnar asked 7/5, 2022 at 20:31
4
Solved
I'm working on a trace module which has to monitor FreeRTOS tasks' heap in order to detect stack overflows. I am wondering whether it is possible to get a task stack size after its creation. Can I ...
Stinky asked 20/2, 2020 at 11:0
2
I have a 32-bit core timer on a PIC32MZ microcontroller (datasheet) counting at 100 MHz.
The system is running FreeRTOS with multiple tasks (threads) and this code should be able to get called from...
Bisulfate asked 18/1, 2024 at 23:32
5
I tried to use the hardware NSS signal with the HAL library, but I can't find any function to make the NSS pin have a low or high level. I also tried to find the answer in the HAL documentation, bu...
Cleromancy asked 3/3, 2016 at 18:39
3
Solved
I'm doing a project to detect (classify) human activities using a ARM cortex-m0 microcontroller (Freedom - KL25Z) with an accelerometer. I intend to predict the activity of the user using machine l...
Ocko asked 9/5, 2016 at 1:54
9
Solved
I'm looking for implementation of log() and exp() functions provided in C library <math.h>. I'm working with 8 bit microcontrollers (OKI 411 and 431). I need to calculate Mean Kinetic Tempera...
Intrench asked 21/3, 2012 at 5:25
7
Solved
I am going though some C code written for the Microchip C30 compiler and I often see structs defined as follows:
typedef struct __attribute__((__packed__))
{
IP_ADDR MyIPAddr; // IP address
IP_...
Isomorph asked 29/3, 2011 at 13:21
8
Solved
I have a little USB-powered light. I'd like to be able to turn it on and off with software. I'll be attaching it to a Linux computer. I have an Atmel ATtiny2313 from a previous project, but I'd rat...
Abib asked 26/8, 2010 at 20:41
5
I am brushing up on microcontrollers, using the STM32 series. (Specifically using the STM32F072BDISCOVERY board).
I am having some trouble understanding the use of timers and their various modes. ...
Arras asked 2/9, 2014 at 19:45
3
Solved
I used the STM32Cube initialization code generator to generate an initialized Timer function. To generate a fixed duty cycle PWM signal I added HAL_TIM_Base_Start(&htim1); //Starts the TIM Base...
Andeee asked 18/4, 2017 at 23:20
4
Solved
I'm a software engineer who will/may be hired as a firmware test engineer. I just want to get an idea of some software tools available in the market used in testing firmware. Can you state them and...
Barbiturism asked 19/3, 2011 at 1:25
4
Solved
I'm trying to add CRC16 error detection to a Motorola HCS08 microcontroller application. My checksums don't match, though. One online CRC calculator provides both the result I see in my PC program ...
Kathrynekathy asked 15/12, 2010 at 21:45
3
Solved
How to convert an unsigned char value into a float or double in coding in AVR studio 4.?
Please help I am a beginner, my question may sound stupid too :/
Like I have got a char keyPressed
and I ...
Haemo asked 28/8, 2013 at 17:14
4
Solved
STM32 microcontrollers are capable to boot from different sources such as:
User-Flash
System-memory
Embedded-SRAM.
On the firmware side, does "boot from user Flash" means executing a cu...
Carleecarleen asked 26/5, 2015 at 5:8
5
Solved
I've heard about people using light sensors, geiger counters, and other physical sensors to generate random numbers, but I'm skeptical. Is there really a way to generate random numbers from taking ...
Anhydrite asked 2/6, 2012 at 17:58
7
Solved
I have several micro controller projects for home automation. Each of my nodes have a version number which is manually set in the code. This version number is reported during the startup of the nod...
Disney asked 7/7, 2019 at 16:9
5
Solved
I'm working on a project with STM32F103E arm cortex-m3 MCU in keil microvision IDE.
I need to generate random numbers for some purposes, but I don't want to use pseudo-random numbers which standard...
Circumjacent asked 10/2, 2013 at 9:39
5
While creating FreeRTOS application project with STM32CubeMx, there are two ways you can use to introduce delay, namely osDelay and HAL_Delay.
What's the difference among them and which one shoul...
Foresail asked 16/2, 2017 at 14:10
5
Solved
Hello guys
Any one here faced this problem before ?
After I run my code into my stm32f446re I couldn't upload any code after my last code and give me this error " No STM32 Target Found "
I tri...
Urnfield asked 7/4, 2020 at 19:39
4
Solved
How to configure Visual Studio Code to build and debug STM32 projects using STM32CubeMX - Windows 10
I am new to the realm of STM32 programming and have been trying to find a suitable IDE for quite a while now. I know of all the other IDEs, like Keil and IAR, but the cost of buying them just to le...
Tire asked 18/7, 2018 at 0:37
2
Solved
How do I test that my program is robust to unexpected shut-downs?
My python code will run on a microcontroller that shuts off unexpectedly. I would like to test each part of the code rebooting unex...
Villosity asked 26/10, 2021 at 9:18
3
I am having problem with RTC alarm interrupt of STM32L151. I want my program to go to RTC alarm interrupt every second but it does not work.
My main funtion:
int main(void)
{
HAL_Init();
SystemC...
Sarcocarp asked 6/9, 2016 at 9:33
14
I am really having hard time understanding the difference. Some say they are same, while others say there is a slight difference. What's the difference, exactly? I would like it if you explained wi...
Weathercock asked 12/12, 2013 at 3:19
1 Next >
© 2022 - 2025 — McMap. All rights reserved.