Skip to main content

Questions tagged [cortex-m]

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

cortex-m
1 vote
1 answer
81 views

How to correctly implement delay after enabling RCC peripheral clock?

I'm new to STM32 microcontrollers. I would like to know how to correctly implement 2-clock-cycle delay after enabling RCC peripheral clock. Section 5.2.16 (page# 134) of https://www.st.com/resource/en/...
user2953113's user avatar
2 votes
0 answers
78 views

Embedded C++ - Header-only library optimization level

I mainly develop firmware for ARM Cortex M using gcc and I am migrating from C to C++ and even though I am overall happy with the transition, there are some things that I just can't get right. ...
sblanco's user avatar
  • 31
0 votes
0 answers
23 views

Build valgrind to target LPC55S69(which is based on Armv8-m architecture)

I'm trying to build valgrind to target baremetal arm cortex-m (based on armv8-m architecture). The host is a x86 wsl environment. How do I specify this while trying to configure valgrind. For ex: To ...
randomranger409's user avatar
0 votes
1 answer
34 views

ARM Cortex-M Trustzone (ab)use to isolate third party application

I am new to trustzone on the Cortex-M and am wondering if I can use it to isolate a third party application from a bunch of legacy code. The idea would be to move the legacy code with freertos into ...
ted's user avatar
  • 4,949
0 votes
0 answers
16 views

VSCode Arduino environment, SAMD51J19A, persistent DummyHandlers

I've been developing an embedded application for months for an Adafruit Feather M4 Express board. I'm using the VSCode Arduino environment, and it's been going well, up until: After putting down the ...
Robert Jay Weber's user avatar
0 votes
0 answers
11 views

How to determine if interrupts are enabled Arm Cortex M4F (STM32G44)

I have a function that is called when the interrupts are enable and other times when disabled and it must behave different depending on the interrupt enabled state. I reviewed the reference manual but ...
dnaviaux's user avatar
0 votes
2 answers
43 views

Can I service the SysTick interrupt while already in HSEM interrupt (STM32H745, M4 core)?

I have a situation where my software enters a HSEM interrupt (with the M4 core) and while it is servicing that interrupt it is ignoring the SysTick interrupt. Exiting the HSEM interrupt is dependent ...
Alex Jegers's user avatar
0 votes
0 answers
33 views

Ho to use CMSIS-Core (Cortex-M) for TM4C123GH6PM and TM4C129ENCPDT in Code Composer Studio

I'm trying to write drivers for TM4C129ENCPDT and TM4C123GH6PM in Code Composer Studio(Linux). I prefer to use CMSIS and not Tivaware. I'm unable to get the CMSIS-Core Device Files (provided by ...
Arunava's user avatar
0 votes
0 answers
14 views

Can't find the 'No Access' permission in Cortex M55 MPU

I'm trying to configure the MPU region, but I can't find the 'No Access' permission. There are only Read/Write permission. How can I configure a memory region to 'No Access' in Cortex M55? I read a ...
강호성's user avatar
0 votes
1 answer
39 views

Analyzing Relocations in ARM for cortex-m4

I'm trying to understand how to correctly read the relocation entries generated by my ARM compiler (I'm using (GNU Arm Embedded Toolchain 9-2020-q2-update) 9.3.1 20200408 (release)). To my ...
I.Y.A.L's user avatar
1 vote
0 answers
17 views

Position-Indipendent FW for Cortex M

Due to a educational requirement, I need to write a FW that can be run in RAM at non-predetermined locations. First of all I don't know which gcc parameters are needed, although I think it's either -...
mastupristi's user avatar
  • 1,408
0 votes
0 answers
32 views

How TBB and DCB work in branching the flow?

I am new to ARM Cortex and facing difficulty to understand how TBB branches. Code snippet attached: TBB [PC,R1] BrTable1 DCB ((P0 - BrTable1)/2) DCB ((P1 - BrTable1)/2) Now, my understanding is as ...
Lalit Arora's user avatar
0 votes
1 answer
61 views

ARM GCC fails to create a working binary for STM32F4, lot of discarded code

I've been migrating all my STM32 projects to Codeblocks IDE and GCC compiler (arm-none-eabi). The process is using STM's CubeMX to generate the base code, then merge everything to a proper folder with ...
ggadde29's user avatar
0 votes
0 answers
48 views

Creating C labels to be used by inline assembly for CORTEX-M

I need to write some inline assembly code embedded in C, the code containts some looping. I do not want to create a separate .s file for the assembly code as that would mean I modify some compile ...
AlaBek's user avatar
  • 36
0 votes
1 answer
31 views

MPU protected region not protected against EEFC_FCR ES erasure (cortex m4)

I set up an MPU region on a Cortex-M4 with AP encoding 000 (no access), MPU->RBAR = address | (1 << 4) | (1 << 0); MPU->RASR = (1 << 17) | (1 << 3) | (1 << 0); MPU-&...
zeb92's user avatar
  • 73

15 30 50 per page
1
2 3 4 5
95