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

Looking for some help with getting Clock output on MCO1 (PA8) from LSE

Looking for some help with getting Clock output on MCO1 (PA8) from LSE here's a snippet of what I am doing. My logic analyzer gets no pulse from the LSE. My board is a STM32f407 ```c /* * Configure PA8 for MCO1 so we can use it for timer output */...
Solution:
found thus is due to a missing xtal

configure an LVDS screen with 800x480 resolution (WVGA) on embedded Linux 3.14.52.

@Middleware & OS Hey guys, I'm trying to configure an LVDS screen with 800x480 resolution (WVGA) on embedded Linux 3.14.52. The device tree doesn't seem to have a pre-defined timing structure for WVGA, unlike other resolutions like XGA or WXGA. Do I need to create a custom timing structure for WVGA in the device tree, and if so, should the values be specific to my LCD panel?

any other techniques you recommend to achieve a balance in my library design for I2C, SPI, and GPIO

Hi Everyone @Middleware & OS I'm developing a device library for various I2C, SPI, and GPIO sensors and actuators. My goal is to achieve hardware independence, allowing the library to work seamlessly across different MCUs like the Arduino family or STM32 with minimal code changes. I'm considering two approaches: 1. A Callback System: Close to the u8x8 library, users define functions to handle specific hardware interactions like reading sensor data. Offers flexibility but might be complex. 2. With i2C Sharing: Allows sharing the I2C communication bus with other libraries, potentially simplifying integration. I don't know if it might limit functionality for some specialized sensors or actuators. Considering the trade-offs between ease of use and versatility, are there any other techniques you recommend to achieve a balance in my library design for I2C, SPI, and GPIO communication? ...

What is wrong with my code ?

Hi everyone @Middleware & OS , please what is wrong with my code ? ```void SensorActions(void *parameters) { PushMessageToSerial("Setup", "Sensor's Monitor task is initialized..", LOG_INFO); while (1)...

function to swap each 4 bytes of the ram

team, i have this function to swap each 4 bytes of the ram, void swapBytes(uint8_t *array, size_t length) { if (length % 4 != 0) { // Ensure the length is a multiple of 4...

When compiling my FreeRTOS, my functions in string.c conflict with the built-in function 'tolower'

Hey guys When compiling my FreeRTOS, my functions in string.c conflict with the built-in function 'tolower'. Can I use a CFLAGS to resolve this error, and how can i do it? Here's my code ``` makefile...

Is there any difference between the { e.MapControllers(); } and the e.MapControllers() ?

@Middleware & OS Hi everyone in C#, when using lambda expressions with the UseEndpoints method, what's the difference between including curly braces and omitting them? From my code example : ``` public void Configure(IApplicationBuilder app)...

programming an ARM M0+ based Freescale microprocessor

@Middleware & OS Hi everyone, I'm starting a new project using the CML-5282 development board (M5282LITE) with RTXC Quadros RTOS. I'm programming an ARM M0+ based Freescale microprocessor for this project. Is there any general advice or resources you'd recommend for getting started with this development environment? Specific areas I'm interested in include setting up the development environment and working with peripherals...

Is there a correct way to generate a self-signed certificate for an embedded Linux device

Hey guys Is there a correct way to generate a self-signed certificate for an embedded Linux device that will be compatible with Google Chrome? I have followed the steps provided, but I am encountering errors such as This is probably not the site you are looking for and The site's security certificate is not trusted openssl req -new > cert.csr openssl rsa -in privkey.pem -out key.pem openssl x509 -in cert.csr -out cert.pem -req -signkey key.pem -days 1001...

I'm looking to attach some USB devices to my embedded Linux board.

@Middleware & OS hello guys, I'm looking to attach some USB devices to my embedded Linux board. It is an TI-ARM processor running embedded Linux, if I purchase an USB device which has Linux support/driver, can this driver (generally) be re-compiled to work with the ARM architecture?...

How to Correct Inverted Colors When Converting Framebuffer Data to PNG with ImageMagick on OMAP35x?

I'm trying to convert raw framebuffer data /dev/fb0 on my OMAP35x board to a PNG image using ImageMagick's convert command. However, the resulting image screen.png appears incorrect. The The colors in the image are completely reversed, with negative values displayed. Here is the command I used:
convert -depth 8 -size 240x320 rgb:./screen.raw -swap 0,2 -separate -combine screen.png
convert -depth 8 -size 240x320 rgb:./screen.raw -swap 0,2 -separate -combine screen.png
I've verified that the framebuffer resolution is indeed 240x320 pixels....

Improving Usability and Code Completion in Keil MDK for STM32F4 Development

I've been using Keil MDK for STM32F4 development, but I find the UI lacking in usability. Specifically, navigating menus to find frequently used settings can be cumbersome. Additionally, the code completion suggestions feel basic compared to other IDEs. They'd be more helpful if they provided context-aware completions for complex function calls or peripheral configuration structures. Please Devs, I need your Candid Suggestion(s) 🙏

How to Efficiently Sort 10,000 16-bit Integers on an Embedded Device with 512 KB RAM?

I am working on a project that involves a small, embedded device with only 512 KB of RAM. This device needs to accept a list of 10,000 random numbers prolly 16-bit integers over a serial connection and then send them back sorted in ascending order. The catch is that the device has no additional storage beyond the RAM. I can't discard any data during the sorting process. Also the code itself will be stored in ROM. My question is that , is it possible to sort this list of numbers efficiently within the limited RAM of the device? If so, what are some creative ways we can approach this problem, considering the constraints?...

developing embedded software for a dual-core mcu that is ARM Cortex-M where each core runs separate

I am developing embedded software for a dual-core microcontroller that is ARM Cortex-M where each core runs a separate thread. ~Thread 1 (Comms): Handles communication and triggers an event system that calls a callback function. ~Thread 2 (Compute): Focuses on heavy computations and actively uses a specific data object. But the callback function modifies the same data object that Thread 2 is using, causing the callback to hang indefinitely and stall the Comms thread. So Why might the callback function invoked by Thread 1 never return if it tries to modify data currently being used by Thread 2's computations?...

Why does Linux allocate so much virtual memory for Java compared to the heap size?

@Middleware & OS Hey guys, Why does Linux allocate so much virtual memory for Java compared to the heap size? Is there a way to fix this? Windows seems to behave differently I tried setting a smaller heap (128 MB) but virtual memory stays high (210 MB). -Default heap size: 64 MB -Virtual memory used: 240 MB (causing problems!) ...

need to calculate the elapsed time in milliseconds between two points in my code(using STM32F103C8T)

@Middleware & OS hello guys, I am using an STM32F103C8T6 with FreeRTOS, and I need to calculate the elapsed time in milliseconds between two points in my code. my code snippet below captures the tick count but does not convert it to milliseconds. ...

what other multitasking RTOS options are available that are compatible with AVR?

@Middleware & OS Hey guys, Is it possible to install a QNX kernel on an AVR microchip in order to implement a multitasking RTOS for my AT90USB162 AVR chip? If it's not, what other multitasking RTOS options are available that are compatible with AVR?...

is there any efficient and robust C++ wrapper for Threadx RTOS which can be used out of the box ?

Hey guy is there any authentic,efficient and robust C++ wrapper for Threadx RTOS which can be used out of the box ? My embedded software application is written in C++ but now I want to create a RTOS wrapper to use ThreadX RTOS. Any idea would be much appreciated. @Middleware & OS...

Can anyone share techniques or best practices for memory management in uC/OS-III

I'm working on a uC/OS-III application for a Microchip SAMD21 microcontroller that allocates memory for fixed-size buffers used for sensor data. The SAMD21 only has 32KB SRAM, so I'm facing memory fragmentation, which is causing issues with allocating new buffers later in the program. Can anyone share techniques or best practices for memory management in uC/OS-III, specifically to avoid fragmentation when dealing with fixed-size buffer allocation on a resource-constrained MCU? @Middleware & OS...

Yocto in Windows Subsystem for Linux on Microchip Discovery

Hi! Have anyone tried yocto build in Windows Subsystem for Linux(WSLv2)? The yocto documentation says it's compatible but not verified. I was able to create a build for MPFS_DISCO_KIT but don't see it booting up... Is it that if the image is created, it means it worked on WSL or can it end up creating an incomplete linux image? @MCU, MPU & Firmware...