116 questions
Advice
0
votes
1
replies
26
views
Change pin settings for the nodic mcu
I'm going to test it using the Nordic mcu board, and I look at the board and I can use 4 spots with spim, but the circuit diagram only shows spi connecting to qspi and flash memory, and the guide ...
Best practices
0
votes
2
replies
53
views
Optimization strategies for deploying multi-modal emotion recognition models on Nuvoton M55M1 (Cortex-M55) with Ethos-U55 NPU
I am currently working on an edge computing project.enter image description here The system analyzes both facial micro-expressions (via CMOS camera) and Electrodermal Activity (EDA) signals.
Hardware ...
0
votes
0
answers
72
views
Error when using Tflite Micro vs CMSIS-NN
I am designing a TfLite Micro project using CMSIS NN on PlatformIO.
Configuration in platformio.ini:
[env:portenta_h7_m7]
platform = ststm32
board = portenta_h7_m7
framework = arduino
...
5
votes
1
answer
192
views
SAMD11 I2C (SERCOM0) never leaves IDLE state
I am trying to get I²C 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 ...
4
votes
1
answer
145
views
Simple C, TypeScript code is supposed to allow safe UART transmission between host and target, but it doesn’t - Logpoints in embedded programming
I’m following an excellent bare metal tutorial on the Arm Cortex-M4, and I ran into unexpected, somewhat intriguing trouble when trying to properly handle UART interrupts.
Setup:
Host PC: Linux x86_64,...
2
votes
2
answers
213
views
MCU startup code and C++ - static initialisation fiasco
i'm C++ developer for embedded systems, meaning microcontrollers, not embedded Linux.
For example, currently i'm working with an STM32F7 and an STM32F4.
On several occasions I stumbled over ...
2
votes
1
answer
134
views
Why do MCU libraries use logic operations instead of bitfield structs?
In different hardware libraries for MCU I've seen (STM32 HAL, GD32 SPL, MDR32 SPL, LibOpenCM3), for operating with registers bits, logic operations (shifts, ands, ors, nots, etc) are used. But why not ...
0
votes
1
answer
480
views
Does executing the function HAL_FLASH_OB_Launch cause a system reset on STM32H563 MCU?
As for STM32H563 MCU, will it result in a system reset after executing the function HAL_FLASH_OB_Launch?
From my experiment, before executing HAL_FLASH_OB_Launch, I can read data from MCU via I2C ...
0
votes
1
answer
212
views
Looking for a working function jump table example
I'm struggling to implement a function jump table and hoping someone can help out.
device is PIC16F1503
MPLAB X IDE v6.20 and XC8 v2.46
called functions Function1 and Function2 are in a separately ...
0
votes
0
answers
100
views
DAC and DMA Not Outputting on PA4 on STM32L432KC
(my code is below)
I am trying to output an analog wave out of PA4 on the STM32L4 MCU, using DMA and a DAC. Ultimately, I will pass in audio data into the MCU through I2S and use DMA and the DAC to ...
2
votes
0
answers
123
views
STM32 editing linker script
In the STM32F767ZI reference manual, the memory organization is divided into:
FLASH, SRAM1, SRAM2, ITCM and DTCM, but in the linker script, the project is either stored into FLASH or RAM. I want to ...
0
votes
0
answers
85
views
Led blinking with STM32F103RET6
I have a Micro STM32F103RET6 And although I manage to turn on an LED by the PB13, I can not get it to blink, when I remove the call to the function SystemClock_Config(), turn on the LED, it also does ...
1
vote
0
answers
156
views
CAN bus Bootloader in STM32L433 Nucleo-64
I'm wanting to use the built in CAN bus bootloader in STM32L433 Nucleo Board. To enter the bootloader, I configure the Flash option byte as below:
void configure_bootloader_option_bytes(void) {
// ...
1
vote
3
answers
109
views
Questions about non-byte aligned access of STM32F4 series MCU
Recently I encountered a bug in non-aligned byte access, so I did an experiment and encountered some doubts, as follows:
Why does the system not crash when my code below accesses non-aligned bytes?
...
0
votes
1
answer
261
views
USB CDC freezes (Host to Device transfers)
My setup
I try to use USB FS Host on GD32F405 (=STM32) microcontroller. I use CMSIS and operate directly on registers.
I have Android device, that is working as VCP (Virtual COM port) by default and ...