DevHeads IoT Integration Server

DII

DevHeads IoT Integration Server

The DevHeads IoT Integration Server accelerates technology engineering by helping pro devs learn, share and collaborate.

Join

seeking-collabs

firmware-and-baremetal

middleware-and-os

edge-networking

pcb-and-analog

jobs

iot-cloud

code-review

devheads-feed

general-dev-chat

Error in Calculating Section Size with .set Directive in x86_64 Assembly

I am learning to write a bootloader. In the process of converting hexadecimal values to strings in x86 64 assembly on a linux system with an Intel Core i7 processor , when I try to assemble this code using as, I encounter the following error: ``` $ as -o print_bios.o print_bios.S print_bios.S: Assembler messages:...
Solution:
Thanks , been able to fix this :salute:
attachment 0

How to Create a Data Logger with a Sensor Sampling Rate of 100ms Using a DS3231 RTC Module?

Hello, I would like to make a datalogger that records data from a sensor every 100ms, but RTC modules such as DS3231 can only be configured every 1 second. Could someone help? I'm a layman in HW.

Can I Use GPIO16 as REF_CLK for LAN8720 with ESP32 DevKit V1 if GPIO0 is Unavailable?

Hello everyone, I am currently working on a setup with a LAN8720 and an ESP32 DevKit V1 module. ESP32:...
attachment 0

Choosing Low-Power MCU for Smart Band with Multiple Sensors: STM32L4, nRF52, or ESP32?

hello guys, I have a question. I will built a smart band that consists of several sensors ( Tempeture, motions, heart rates, electrodermal activity) to collect data from patients and store it locally or send it via BLE. so i am confused about which MCU to pick in term of low power and effeciency. I came up with stm32L4 series, nrf52 or if there is a specefic esp32 MCU for this project.

Need Help with NVIC Pending Register Not Reflecting Button Press on STM32L476RG

@Umesh Lokhande @Edison_ngunjiri @ZacckOsiemo just saw this question in another forum and thought you might be able to troubleshoot for the dev: Subject: Need Help with NVIC Pending Register Not Reflecting Button Press on STM32L476RG Message:...

Flash Memory Read/Write Operations Failing on AVR32UC with Zephyr - What Could Be Missing?

hey guys, lately I was trying to perform read and write operations on the flash memory of my AVR32UC microcontroller, but I'm encountering a different issue during my trial. This’s the code I’m using: ``` #include <zephyr.h> #include <device.h>...

How to Store Float Calculation Results in FLASH Memory on PIC16F877A Using MPLAB X IDE?

Hello everyone, I’m currently trying to work on a project with a PIC16F877A microcontroller using MPLAB X IDE, and I’ve run into a bit of a challenge. I need to store the results of floating-point calculations in the program memory (FLASH). I thought the __flash qualifier might be the solution, but it turns out it doesn't directly support float data types. To get around this, I tried converting the float results into strings using sprintf and ftoa, hoping to store them in FLASH that way. Unfortunately, it hasn’t worked as expected. This’s my code: ```...
Solution:
Storing floats directly in FLASH on the PIC16F877A is tricky , consider scaling your float to an integer and store it in FLASH. This saves memory and avoids the complexities of storing non-supported data types directly.

Best Tool to Troubleshoot ESP32 GPIO Pin Trigger Issue in FreeRTOS Project?

Hi guys I'm currently working on an ESP32-based home automation project where I'm integrating several sensors and using the FreeRTOS framework. The project involves controlling various GPIO pins for different sensors and modules. However, I'm encountering an issue where the enable pin on my ESP32 board is not triggering as expected. Specifically, I receive the error message "GPIO_HIGH error: Pin not set" in my serial monitor when trying to set the pin high. I've tried manually setting the pin state through the GPIO registers, but no success so far. Which tool should I use to troubleshoot this issue: ESP32 GPIO Analyzer, Logic Analyzer, or Multimeter?...
Solution:
One way to solve this is to put a pull up resistor at the enable pin, it helps hold the MCU at a high state. Use this article as a reference also https://randomnerdtutorials.com/esp32-pinout-reference-gpios/...

Issues Writing to CANBus with STM32 Nucleo F429ZI Using Mbed OS 6.6.0

Hi guys, despite using Mbed OS 6.6.0 with an STM32 Nucleo F429ZI board, I'm experiencing difficulty writing to my car's CANBus while being able to read data from it successfully. Confirming this issue across two similar STM32 boards and utilizing SN65HVD230 transceivers on the bus for reading indicates that there is a problem in write functionality specifically rather than any broader issues affecting communication over the system as a whole. I followed the instructions from this guide: CAN - Getting Started with one STM32 board, and also tried the following code: ```cpp...

Why Is My AVR32UC ADC Returning Zero Despite a Correct Input Signal?

Hey everyone, I'm currently working on reading an analog value using the ADC on my AVR32UC microcontroller, but I'm running into a problem where the ADC consistently returns zero, even though the input signal is correct. I've verified that the ADC driver is enabled in the prj.conf file, and also ensured that the ADC channel being used corresponds to the correct pin on the microcontroller. Here's the code I'm using: ``` #include <zephyr.h> #include <device.h>...
Solution:
@Dtynin It seems like your ADC isn't working because the binding for the ADC device isn't found, and your ADC configuration might be incomplete. Check your device binding and sequence configuration

Compilation Error with USB Keyboard Example on STM32 Nucleo F303K8 in Mbed

I've been trying to compile a simple USB Keyboard example for my STM32 Nucleo F303K8, following the guides from Mbed and Hackerspace NTNU. My main.cpp file is as follows: ```cpp...
Solution:
Hey @Sterling The error you're encountering,
Identifier 'PCD_HandleTypeDef' is undefined,
Identifier 'PCD_HandleTypeDef' is undefined,
indicates that your USB Device library is missing necessary definitions for USB handling specific to your STM32 Nucleo F303K8. This kind of error usually occurs when the required USB HAL is not included or configured properly in your project. Inorder to resolve this,ensure that your USB support is correctly set up in your Mbed environment, as the STM32F3 series requires specific configurations.And secondly,if you are using the older version of Mbed, try to update it to the latest version....

Trouble Creating a Thread on AVR32UC with Zephyr – Any Tips?

Hey guys, I'm trying to create a new thread on my AVR32UC using Zephyr OS, but the thread isn't being created as expected. Here's my code: ``` #include <zephyr.h> ...
Solution:
Yes, this is the code for creating the thread. I don't have any complicated initialization code that might be causing a lock. thankz tho

DHT11 Sensor Read Issue with MicroPython on Zephyr (ESP32)

Hello guys based on my project simple temperature monitoring system using MicroPython on a Zephyr RTOS-supported microcontroller, such as the ESP32, and transmit the data over Bluetooth Low Energy (BLE) to a mobile app?. Am currently trying to integrate the DHT11 Sensor with MicroPython on Zephyr reading temperature and humidity data from the DHT11 sensor using MicroPython on Zephyr. But my code fails to read from the DHT11 sensor can anyone help me resolve this ```python...

Failed to Add GPIO Callback on AVR32UC Microcontroller

Hi everyone, I'm working on setting up an interrupt handler on my AVR32UC microcontroller, but I'm encountering an issue where the interrupt configuration fails. my setup: ```c #include <zephyr.h> #include <device.h>...
Solution:
hey @Sterling I had fixed the issue, I made sure to define and initialize the struct gpio_callback my_cb before using it in gpio_init_callback. I also added some error handling for functions like device_get_binding, gpio_pin_interrupt_configure, and gpio_add_callback. These adjustments helped to correctly set up the GPIO interrupt, so now the callback function triggers as expected when the GPIO pin detects an edge. thanks buddy

Issues with GPIO Configuration and Button Functionality on STM32

So guys, In my setup, I’ve configured the GPIO pins as follows: ```c RCC->AHBENR |= RCC_AHBENR_GPIOAEN; // Enable the bus for port IOPA....

what causes the STM32F429ZI to experience a hard error when attempting to cast a value into float?

Hi guys, what causes the STM32F429ZI to experience a hard error (App_Fault_ISR) when attempting to cast a value into float? I have come across a problem while using Atollic TrueSTUDIO on an STM32F429ZI Nucleo board. Below is my code: ```c...
Solution:
The hard fault occurs because the FPU is not enabled. Add SCB->CPACR |= (0xF << 20); in your initialization code to enable the FPU, and ensure your project settings in Atollic TrueSTUDIO are configured for FPU usage (-mfpu=fpv4-sp-d16, -mfloat-abi=hard).

Writing Values Greater Than 0xFF to OCR1A in AVR C Code: How?

Hello, is anyone here ?? 🧐
Solution:
you need to ensure that both the high and low bytes are correctly written to OCR1AH and OCR1AL. Here’s how you can do it: ``` OCR1AH = (0x3344 >> 8); // High byte OCR1AL = (0x3344 & 0xFF); // Low byte...

How can a college student start his embedded system as a career Where to start

How can a college student start his embedded system as a career Where to start...
Solution:
- Find an online project that suits your interest or academic studies - Buy electronics components, kits, and modules - Start building hardware and software for it - Try to modify existing projects to explore n incorporate new ideas...