115 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
60
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
144
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 ...
4
votes
1
answer
136
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,...
3
votes
2
answers
169
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
127
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
0
answers
37
views
Isn't PWR activation required when setting the STM32 LL driver clock?
void SystemClock_Config(void)
{
LL_FLASH_SetLatency(LL_FLASH_LATENCY_4);
while(LL_FLASH_GetLatency() != LL_FLASH_LATENCY_4);
#if 1
LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_PWR);
#...
0
votes
1
answer
359
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
149
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
78
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
101
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
65
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
140
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
83
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
220
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 ...
1
vote
2
answers
214
views
how to compile MinGW32 for C-SKY processors?
for C-SKY processors there is an IDE CDS for Windows, it uses MinGW, but it has a very old version of GCC 6.3, I would like to update to 13.2, how to do this correctly?
I tried to google and didn't ...