11,222 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
0
answers
71
views
Correct I2C sequence on STM32F1 for reading 2 bytes?
I'm trying to interface between and stm32f103 and a light sensor using I2C using the Lower-Layer libraries. I have to read 2 bytes of data from the sensor and I'm using the sequence of register writes ...
-1
votes
0
answers
66
views
--specs=nano.specs breaks formatting of 64-bit printf arguments [closed]
When I do printf("%llx", 1LL << 32) on embedded ARM I expect the result of 0x0000000100000000. It works on Max32 microcontrollers.
However, when I try this on an STM32, the ...
0
votes
0
answers
59
views
Renesas e² studio / SSP install fails on macOS and Windows ARM VM (GetLastError 317)
I’m trying to develop and flash firmware for a Renesas Synergy DK-S7G2 board, but I’m completely blocked by tooling issues across macOS and Windows on ARM (VM). For context, I am using an M4 MacBook ...
3
votes
3
answers
205
views
Why does a global statically initialized variable have a different value when debugging? / Why is my debugger loading different code to my device?
I am doing some embedded development practice in C, and I ran into an issue that puzzles me which suddenly popped up.
I have a variable that is initialised in main.c:
// Led colour setting
BSP_LED_HSL ...
1
vote
0
answers
23
views
QML StackView navigation issue with dropdown menu (wrong back stack + slow transition)
I’m using StackView in QML for screen navigation. Normal navigation works fine when moving sequentially (Dashboard → Screen 1 → Screen 2, etc.).
However, I also have a dropdown menu on the Dashboard ...
0
votes
1
answer
39
views
HarfBuzz + FreeType on bare-metal: GSUB shaping causes hard fault
I’m trying to use HarfBuzz 8.3.0 with FreeType 2.13.2 and lvgl on NXP i.MX RT1064 with bare-metal and I'm encountering hard faults during Indic (GSUB) shaping [which you can see in the image]. I ...
Advice
1
vote
0
replies
54
views
Why does the STM32H5xx Ethernet HAL provide a callback for appending an rx data buffer (that it found populated) to a list that it is managing?
The STM32H573 Ethernet HAL (header implementation) defines a callback, HAL_ETH_RxLinkCallback(), that it appears to call after it discovers that the hardware has populated a data buffer with received ...
Best practices
1
vote
4
replies
70
views
How to define variations of (static) libraries
I need to build the same library in variations but in the same build. (no different configuration runs!)
The library contain the same source files, but need different defines and compiler settings, to ...
5
votes
1
answer
149
views
SAMD11 I2C (SERCOM0) never leaves IDLE state
I am trying to get I2C to work on the SAMD11C14A (ATSAMD11D14A-SSUT).
Just for context the MCU is soldered on a custom PCB with nothing but 4.7kΩ pull up resistors soldered to the paths and no other ...
1
vote
1
answer
144
views
comparison logic with signed integers and noise giving unexpected outputs
I’m working on an Arduino Morse code decoder that interprets durations (positive/negative for tone on/off) into dots, dashes, and spaces. I add random noise to simulate real-world signal variance, but ...
0
votes
0
answers
47
views
Wrap bullseye coverage tool with IAR compiler
I would like to wrap Bullseye coverage tool (BullseyeCoverage-9.22.1-Linux-x64) with IAR compiler. After installing the coverage tool I have added the following lines to call globally the Bullseye but ...
2
votes
0
answers
134
views
Packet corruption in Lockless ring buffer (multiple producer, single consumer)
I Am implementing Lockless ring buffer for multiple producer and single consumer (keeping in plan to extend it to multiple produce and consumer)
using design reference of dpdk buffer : https://doc....
1
vote
0
answers
52
views
Regarding the wear leveling parameter `block_cycles` in LittleFS
// Number of erase cycles before littlefs evicts metadata logs and moves
// the metadata to another block. Suggested values are in the
// range 100-1000, with large values having better performance at ...
0
votes
1
answer
119
views
Deferred cancellation in C [duplicate]
I am learning on how threads can be cancelled. Asynchronous cancellation can cancel the thread at any given point in time, but what I have learned about deferred cancellation is that it can only be ...
Tooling
0
votes
0
replies
32
views
How to tell gdb the default opsize, so it can debug multi cpu mode code (without a weird disassembly output)
Note: This is a repost of a question I asked on RetroComputing, where I was told to move it here.
I've made my own kernel. It has 32-bit pm, 16-bit pm, and 16-bit real mode code. I use Qemu to ...