Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
0 answers
178 views

STM32G030 refuses write to flash

The microcontroller throws an error when I'm trying to modify its flash. The memory looks to be unlocked, here is screenshot of option bytes The microcontroller is soldered into a custom board, with ...
larts's user avatar
  • 67
0 votes
0 answers
98 views

J-Link script to flash program in S32K144 (allow security)

I want to secure S32K144 using J-Link script but not able to program the security bits and hence verification failed. So how to specify device S32K144 (allow security) in J-Link script? I have ...
user23506599's user avatar
5 votes
1 answer
517 views

STM32: Code execution seems to depend on its location in flash memory

I'm noticing a behavior that I cannot explain: the execution time of a function seems to depend on its location in the flash ROM. I am using a STM32F746NGH microcontroller (ARM-cortex M7 based) with ...
TRElec's user avatar
  • 51
0 votes
0 answers
164 views

Why VTOR in stm32 is set `SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET` instead `SCB->VTOR = FLASH_BASE + VECT_TAB_OFFSET`

Why do we use OR instead ADD in this code? #ifdef VECT_TAB_SRAM SCB->VTOR = SRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */ #else SCB->VTOR = FLASH_BASE | ...
Neyaz Ahmad's user avatar
0 votes
0 answers
64 views

M487KM can't clear GPIO Interrupt Flag

I want to turn ON LEDs with the help of buttons on my Nuvoton M487KM board. I have given a print function to see which button is clicked and then turn ON the respective LED. The LED does turn on but ...
Harshal Chavan's user avatar
0 votes
0 answers
171 views

Question on when to use ISB/DMB in Cortex processors?

I am a bit confused on when/where to apply ISB/DMB instructions. On one hand it's portrayed that operations within the processor will always stay consistent on the otherhand it indicates things can be ...
FourierFlux's user avatar
0 votes
1 answer
592 views

Bootloader Jump Function. How to Jump to the right Address?

I am trying to create a bootloader that jumps to my application code on a MKE02Z32VFM4 (KEO2 Series from Freescale). I am working with the Keil IDE 5 and the Armv6 Compiler v6.16. After Issuing the ...
Archy's user avatar
  • 31
1 vote
1 answer
568 views

Why doesn't my conditional Branch and Link Statement work?

I am relatively new to the world of ARM so I apologize if I am missing something obvious. For some context, this code is being executed on a microcontroller based on the ARM Cortex-M4F. When running ...
bushwacker1000's user avatar
1 vote
3 answers
98 views

is it possible to make a structure pointer points to another structure pointer with different types

the following structure is a structure of registers with type timer_t typedef struct { /*!< TIMER0 Structure *...
ayman magdy's user avatar
7 votes
4 answers
6k views

How to run code on the second core on Raspberry Pico

I'm trying to get multicore working on my pico, #include <stdio.h> #include "pico/stdlib.h" #include "pico/multicore.h" void core1_main() { stdio_init_all(); while ...
raider0ne's user avatar
  • 113
0 votes
2 answers
551 views

Cortex M3, STM32, thumb2: My inc and dec operations are not atomic, but should be. What's wrong here?

I need a thread save idx++ and idx-- operation. Disabling interrupts, i.e. use critical sections, is one thing, but I want to understand why my operations are not atomic, as I expect ? Here is the C-...
Oliver Richter's user avatar
2 votes
2 answers
354 views

STM32 linkerscript initialization sections, are they needed when using C?

As far as I know, sections like .init, .preinit_array, .init_array, .finit, .fini_array... found in STM32CubeIDE linkerscripts are used in C++ for calling the static objects' constructors that need to ...
jap jap's user avatar
  • 340
1 vote
0 answers
4k views

why am I getting a precise bus fault exception (PRECISERR) on what looks like a perfectly fine aligned access (cortex-m7)

I'm getting a HardFault that results from a forced/escalated Precise Bus Fault Exception, as indicated by the PRECISERR bit in the BFSR register, and I can't seem to figure out why it is occurring. ...
asmvolatile's user avatar
3 votes
1 answer
3k views

Loopback SPI in STM32F411RE

I am trying loopback in SPI in STM32F411RE, using the STM32 HAL Library. The output in the serial terminal is distorted (Just boxes) I have connected the MOSI, MISO pins of the micro-controller. Could ...
Paulson Raja L's user avatar

15 30 50 per page
1
2 3 4 5
7