Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey
0 votes
1 answer
38 views

Null in a dereferenced Stack Pointer in Rust on Cortex-M4 (nRF52833)

When developing a Rust no_std bootloader for my micro:bit v2.21 (Cortex-M4, nRF52833), I have encountered a weird error. The bootloader jumps to the main application using cortex_m::asm::bootstrap(sp, ...
Pavel Lobodinský's user avatar
1 vote
1 answer
140 views

using SIMD on ARM cortex M4

ARM cortex M4 has SIMD instruction that allow summation of two 16bit wide numbers in parallel. On the ACLE, I can see there is a build C function to access the functionality in C called __sadd16 which ...
Yair M's user avatar
  • 482
-4 votes
1 answer
61 views

S32 Design Studio: Configuring Chip (S32K144)

I am starting a S32K144 based project with S32 Design Studio. I previously worked with STM32/STM32 Cube IDE and expecting somewhat similar experience here (maybe with less features). One of the things ...
Alexandr Savochkin's user avatar
0 votes
1 answer
78 views

How does BX LR work on an exception return in cortex-M processor?

On an exception entry, a ARMv7-M processor will do below things as the last step of stack pushing. if CurrentMode==Mode_Handler then LR = Ones(28):'0001'; <=== This is not a valid ...
smwikipedia's user avatar
  • 64.9k
0 votes
1 answer
75 views

Does QEMU virt board really support cortex-m4 processor?

I am trying some bare metal program on cortex-M4 processor. So I try to find a QEMU virtual platform that can work with cortex-M4. My QEMU: QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.30) ...
smwikipedia's user avatar
  • 64.9k
0 votes
0 answers
64 views

Error in initializing ST-Link Device while using VS Code with Nucleo F756ZG board

I recently purchased a Nucleo F756ZG board to experiment with. The board itself works just fine, but I've been having trouble getting it to work with the VSCode STM32/cortex-debug plugin. For ...
batteryTH1928's user avatar
0 votes
1 answer
190 views

Does Pico 2, utilizes SIMD-instructions or just loop-unrolling during arm_dot_prod_f32?

The title says almost everything. Does (Cortex-M33) RP2350 rasberry-pi-pico 2 utilizes any SIMD-instructions (at all) via DSP during arm_dot_prod_f32 or does it simply loop-unrolls? I know for certain ...
Giorgos Xou's user avatar
  • 2,314
2 votes
0 answers
40 views

Do I need to rebuild newlib-nano with -fPIE to reliably build a position-independent executable on ARM Cortex-M?

I'm developing a monolithic, standalone position-independent executable (PIE) for an ARM Cortex-M microcontroller. The executable doesn't call any external functions, nor is it called by any external ...
mastupristi's user avatar
  • 1,590
0 votes
0 answers
74 views

My scheduler works fine when tasks are in assembly and in startup.S but when I use separate c files for the tasks, execution loops in task1 coz. of LR

My GitHub Repository I have coded a basic scheduler to switch between three tasks based on systick exception. It worked well enough when it was a single file startup.S (in assembly only). I wrote the ...
Shambhu Kumar's user avatar
0 votes
0 answers
31 views

Soft system restart with use of EWI - early wakeup interrupt

I have an STM32F303 application which I would like to protect from unexpected firmware response by watchdog, but I can't pass through reset because setting peripherals to defaults would cause a ...
patislav's user avatar
1 vote
0 answers
33 views

Programmatically pass device and svdFile to cortex-debug

We have a monorepo with about a dozen controller projects and are starting to move over to vscode and generally like cortex-debug a lot. The only issue is that the number of projects x number of ...
Bruno's user avatar
  • 719
1 vote
1 answer
94 views

Trying to Return Array of Pointers Creates Processor Hard Fault

I have some inherited code I am porting to a new device (Cortex M0+ core Infineon part). The code has a shared API between a bootloader and an application. I'm trying to debug a hard fault that this ...
nobby's user avatar
  • 465
0 votes
1 answer
53 views

Appending to an ELF file - Cortex M / GCC

I an generating an ELF file for a Cortex M MCU using GCC. I want to know if there is a way of accomplishing the following. I wish to incorporate a new function into the ELF file at a later point in ...
ACBlue's user avatar
  • 151
1 vote
2 answers
53 views

SAMR21 skipping parts of code while debugging

My code should read the ADC 3 times, then take the average, if it is less than half of the fullscale value, the the onboard LED should turn off, if it is higher than half of the fullscale value it ...
Martin's user avatar
  • 13
1 vote
1 answer
56 views

arm-none-eabi-gdb continues instead of stepping over in no-sdk baremetal assembly

In main function after nexti instruction on bl, gdb debugger continues instead of stopping. The issue does not occur in functions called by main (e.g. I can step over functions called in ...
derASMCoder's user avatar

15 30 50 per page
1
2 3 4 5
97