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

Questions tagged [cortex-m]

For all ARM Cortex-M series cores, including M0, M0+, M1, M3, M4, M7, M23 and M33.

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
1 answer
77 views

Unable to read value from gpio set as input

I am working on a custom board with two IMX7ULP. The thing I'm trying to do seems quite simple, the A7 from one IMX7ULP send a signal to the M4 of the other IMX7ULP, just an electrical signal, one of ...
Nathan's user avatar
  • 1
0 votes
0 answers
85 views

Microcontroller hangs with LWIP UDP

I am using LWIP TCP/IP Stack on SAME70 without RTOS. Microcontroller hangs and stops responding after few seconds. it stops sending data over serial I echo UDP data back to the client for testing, ...
Sidk's user avatar
  • 1
0 votes
1 answer
88 views

Can't connect ST-Link with APM32F003 through OpenOCD

I'm using CLion and try to debug my APM32F003 base project with ST-Link. I cannot determine what the problem is with ST-Link. I'm using Geehy's OpenOCD build with APM32F003 config files. My project ...
ReasonX's user avatar
  • 31
1 vote
2 answers
94 views

VTOR not found in STM32F030

when attempting to jump to the bootloader App code address on an STM32F030 microcontroller . I cannot find the vector table offset register. Can anyone provide guidance on how to successfully perform ...
Kishor Giri's user avatar
-1 votes
1 answer
111 views

Unit tests on registers with bare metal programming

I'm trying to do a unit test by using the library "check.h" on a register containing a hexadecimal number to check if the return value is correct. The registers are for programming an ...
Norronas's user avatar
0 votes
0 answers
35 views

Force .bss section to be in last program header

I'm wondering if it's possible to force the .bss section (or any section for that matter) to be put in the last program header in my linker script, or using some other tool after linking? My issue is ...
MulattoKid's user avatar
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
-1 votes
1 answer
56 views

Cortex-M external interrupt occurs when executing fault handler with higher priority

What happens when a lower priority interrupt from a peripheral occurs while the cortex-m is executing a higher priority fault handler? Will it be ignored or will it trigger a hardfault?
rand0m_scr1pt_k1dd1e's user avatar
-1 votes
1 answer
71 views

Why gcc is not using S16-S31 registers of Cortex M7?

Cortex M7 with the FPv5 extension has 32 single precision floating point registers (or 16 double precision registers). GCC version 10.3.1 20210824 (release) (GNU Arm Embedded Toolchain 10.3-2021.10) ...
Wojciech Jakóbczyk's user avatar
6 votes
2 answers
226 views

Issue with measuring ARM MCU interrupt latency

Introduction I am a student who wants to roughly measure the interrupt latency of ARM Cortex-M series chips without using an oscilloscope. However, I have encountered a very peculiar issue that has ...
MasterLu's user avatar
1 vote
1 answer
62 views

What is the most efficient way to write two (for example) bits of a register using cortex-m0 instruction set?

Simple example. We want to write '01' bits in the most right bits of register. Should we reset '0' bit and set '1' bit separately? Is there a way to do it in a single instruction? For instance, if the ...
user9893356's user avatar
0 votes
3 answers
127 views

How to do unaligned int store on ARM Cortex M4? [duplicate]

How can C code take advantage of the Cortex M4's unaligned 4-byte store instruction? *(int*)p = x mostly works, but occasionally I end up with something like this: void Store(uint8_t* p, uint32_t a, ...
personal_cloud's user avatar
0 votes
0 answers
55 views

FreeRTOS Faults on Optimization

Environment The dev environment is Microchip (ex-Atmel) Studio. The target processor is a ATSAMC21G18A on a custom PCB. FreeRTOS version 8.0.1 is being used, being provided directly by ASF. How ...
Smith's user avatar
  • 103
0 votes
0 answers
142 views

I cant get my thread context switching code to work (ARM procesor)

Im developing a "operating system" on ARM. My context switching code for swapping between tasks is not working. I have a function demo() which I am calling in main. In this I am creating a &...
ajsdiubfaoishd's user avatar

15 30 50 per page
1 2
3
4 5
95