Questions tagged [arm]

32-bit microcontroller IP. The ARM company which designs the ARM cores doesn't make controllers itself, but licences the IP to other manufacturers. ARM is the leading 32-bit controller and is available from tens of suppliers.

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

How to properly trigger a soft reset on ARM Cortex R52?

I am porting a running project from Cortex M(Armv7) to Cortex R52(Armv8). On the former I just wrote VECTKEY(0x05FA) to AIRCR register which issued a soft reset immediately, without resetting all the ...
stenvar's user avatar
  • 741
1 vote
1 answer
66 views

STM32F407 PLL config not producing 1ms SysTick

I've a bare metal PLL setup for my STM32F407 which should generate a 168MHz system clock. However for some reason the 1ms SysTick interrupt is orders of magnitude off the grid. The math works out on ...
Michael's user avatar
  • 13
0 votes
0 answers
13 views

How do I tune ARM Socrates NIC QoS Address Latency Target Registers to get balanced bandwidth between two AXI Initiators?

I'm learning about the ARM Socrates NIC QoS features to provide balances arbitration between two AXI Initiators created two different sized transactions. AXI0: 64B (awsize = 8B, awlen = 8 beats) AXI1:...
wandering_leo's user avatar
1 vote
0 answers
53 views

How to handle flash write/read operations on STM32L552 with ICACHE enabled without disabling it?

I am currently working with an STM32L552 microcontroller and encountering some peculiar behavior when writing and reading double words to and from the flash memory. After writing data to a specific ...
tronhawk's user avatar
0 votes
0 answers
25 views

Can I read an SoC ROM Table through AXI-AP with CoreSight 400?

I'm newbie and trying to read ROM Table information by JTAG through the AXI-AP using CoreSight SoC-400. As I understand CoreSight is associated with some APs to support JTAG such as AXI-AP, AHB-AP, ...
Carter's user avatar
  • 581
0 votes
1 answer
44 views

STM32H755ZIT6 RCC Issue

I'm trying to set maximum frequency for M7 - 480 MHz and 240 MHz for M4. when I'm setting them I always have RCC Power Regulator Voltage Scale 0 in RED and I can't change it. what am I missing?
Alatriste's user avatar
  • 140
0 votes
1 answer
31 views

Can I use 2 modes of I2C operation together in 1 code? For STM32F407 interfaced with MPU6050 sensor

I have my STM32F407 discovery board (master) interfaced with an MPU6050 sensor (slave) via an I2C interface, and it reads and writes data to it. My questions is, what mode of operation is the stm32 ...
Mahesh Namboodiri's user avatar
0 votes
1 answer
40 views

Differences/advantages between manufacturer specific vs core specific programmers/emulators/debuggers?

I bought an Atmel ICE a while ago as a way to step away from the Arduino environment and begin using more custom hardware. Now that I am quite comfortable with this I've begun contemplating using or ...
Alex Jegers's user avatar
0 votes
0 answers
46 views

Is it possible on STM32 to detect if an event triggered?

According to Stm32 Event and interrupts , STM32 events are mainly for controlling other peripherals. Is there a way on the MCU itself to detect if an event fired? That is, I don't need to interrupt ...
SRobertJames's user avatar
13 votes
9 answers
4k views

What's a good way to assert in embedded microcontroller code?

It's good practice to use assert to test that things are that we expect them to be. Likewise, it's good to check that calls worked as expected and didn't error. In ...
SRobertJames's user avatar
-1 votes
2 answers
127 views

What's a good way to learn microcontrollers without magic? [closed]

I know software (C, C++, POSIX, assembly) and would like to learn microcontrollers at a low level, down to digital circuits. I don't want to use any tools that obscure the internals, such as Arduino, ...
SRobertJames's user avatar
0 votes
0 answers
38 views

MAX32660 SWD: Meaning of CSYSPWRUPREQ not asserted?

In a working SWD sequence generated by pyocd, the MAX32660 target's DP4 (CTRL) register has the CSYSPWRUPREQ bit set, as follows (as reported by the probe's console): ...
personal_cloud's user avatar
0 votes
1 answer
91 views

How should I debug this ARM Cortex M STM32 UART write?

I have a STM32F446RE on a Nucleo F446RE, and I'm trying to learn how to program the UART to write over the Virtual COM Port (connected to USART2). I'm able to download someone else's code, modify it ...
SRobertJames's user avatar
1 vote
1 answer
99 views

How do I use CMSIS without a GUI or IDE?

I have a bare metal STM32 C project working on a NUCLEO-F446RE. To learn about MCUs, I did not use any code generators or IDEs, but created a simple Makefile, linker script, start up C code, and <...
SRobertJames's user avatar
1 vote
1 answer
60 views

Disable peripheral interface via STM32 Memory Boot Mode remotely

Here's the current scenario: There's a remote STM32 MCU F746ZG that is prohibitively expensive to retrieve or access, and only has an I2C1 connection. The USART peripheral interface is causing issues (...
UberChio's user avatar
0 votes
1 answer
25 views

MAX32660 SWD SELECT does not affect the next AP read

I am trying to write my own PyOCD SWD probe module (because DAPLink is broken and nobody knows how to compile it, while the remaining 2 probes that PyOCD 0.26.1 supports, which we shall not name here, ...
personal_cloud's user avatar
10 votes
3 answers
2k views

Why do STM32 MCUs divide RAM into SRAM1 and SRAM2?

Why do STM32 MCUs divide RAM into SRAM1 and SRAM2? They seem contiguous, so that I could simply configure my linker to treat both as just one chunk of RAM. Should I do that? If not, how do I tell the ...
SRobertJames's user avatar
3 votes
3 answers
175 views

MAX32660-EVSYS SWD not working with longer cable

My MAX32660-EVSYS frequently fails to start pyocd and/or program the target when the ARM SWD (Single Wire Debug) cable (connecting it to the target MAX32660) is 12 inches or longer. It appears that ...
personal_cloud's user avatar
0 votes
1 answer
104 views

Can I program Arduino Uno R4 On STM32 IDE?

The microcontroller of Arduino Uno R4 is Renesas RA4M1 (Arm® Cortex®-M4). -So can I program Arduino Uno R4 On STM32 IDE? -Can I use STM32 library for Arduino Uno R4? Thanks!!!
Đức Chung Nguyễn's user avatar
2 votes
1 answer
365 views

Booting modes of STM32 microcontrollers

I am creating a custom board and using STM32F303 chip. I have looked into the datasheet and there are 3 boot modes and according to the datasheet the bootloader resides in the ROM memory. I got ...
Ahsan's user avatar
  • 71
0 votes
1 answer
56 views

RN8213 software pack for Keil µVision 5

I am having a problem developing a firmware for RN8213 Cortex-M0 microcontroller from Renergy company. I installed the Keil µVision 5 development tool but I can't find the software package for RN8213 ...
Addisu Alemayehu's user avatar
0 votes
1 answer
125 views

Incorrect results when cycle counting on STM32 using DWT->CYCCNT

I'm trying to determine the number of clock cycles it takes to run some code I've written for an STM32, because I'm curious to see just how much slower it is if I use floating point numbers. This is ...
tinfever's user avatar
0 votes
1 answer
56 views

PIC32CX BZ2 register names don't match documentation

Preamble: I use MPLABx 6.1, the compiler (XC32) is installed and functions correctly, the correct device (WBZ451 with PIC32CX) is selected and xc.h is included. I have about 15 years experience with a ...
Gambanishu Habbeba's user avatar
0 votes
2 answers
74 views

"32 bit memory" meaning

While looking at a datasheet about an NXP ARM CPU, I saw that the DRAM controller could support this Memory types: LPDDR4 • Two channels of 32-bit memory: • LPDDR4 up to 1.6 GHz When it says two ...
Nathan Jiang's user avatar
1 vote
1 answer
65 views

How to convert 12~24Vdc range input to steady 12V, 5V and 3,3V for beginners

This is my first try in the power management world - I always used ready to run power supplies to my devices, so here is my current chalenge: I have a prototype for an industrial device that is ...
Mendes's user avatar
  • 111
2 votes
1 answer
135 views

Use cases for "low pin-count" FPGAs

I recently came across the ICE40UL1K-SWG16ITR1K (Please see DigiKey, DE) 16-Pin FPGA. This Device "packs an amazing punch" for its size: 57kBits of RAM 1248 Logic-Cells 156 LABs/CLBs and is ...
ElectronicsStudent's user avatar
0 votes
0 answers
88 views

Why is my UART2 not sending output on teraterm using embedded C on stm32f722ze?

Here is the code i have tried. ...
Sashish Acharya's user avatar
0 votes
0 answers
40 views

How to calculate the DeadBand time for H-bridge in Cycles

I am using L298n H-bridge driver and using Texas Instruments tiva c tm4c123gh6pm microcontroller. According to the datasheet (I am using source rise and fall delay because according to my ...
Ahsan's user avatar
  • 71
-1 votes
2 answers
105 views

Replacement of RaspberryPi [closed]

I'm working with a learning project where I use an IMU sensor unit connected with Raspberry Pi 4B via UART. I receive data on Raspi's serial port and later I use that data to display it on a self made ...
Ashish1313's user avatar
7 votes
2 answers
844 views

Is PCIe IO address space meaningless for ARM-based system?

According to here, the PCI Express TLP (Transaction Layer Packet) can target 4 different address spaces. My question is about the IO and memory address spaces. As we know, the PCI specification was ...
smwikipedia's user avatar
  • 1,170
1 vote
0 answers
77 views

STM32 output initial state problem

I am using the STM32 IDE and an STM32F4 board. When I power the board the output pins go high and then go low. How do I prevent this from happening? I want these pins to start low.
akguen's user avatar
  • 11
0 votes
1 answer
53 views

Imprecise pulse width capture using Atmel SAMD51

We are using an ATSAMD51P19A and the Timer/Counter for Control Applications (TCC) to detect the pulse width from the assertion of a pin to the detection of a signal on another pin, and are having ...
amasmiller's user avatar
0 votes
0 answers
33 views

ARM M4F Debug-Output

Currently I am working on a space/pin-constraint project. The software is run on a ARM M4F (MAX32660 MCU) Datasheet. I have connected the MCU to my Dev-Machine via a Segger J-Link J-Link Debug probe ...
ElectronicsStudent's user avatar
0 votes
0 answers
209 views

How can I improve real-time response on an ARM processor?

Why do my attempts to run a 1ms timer with low jitter fail? How can I improve it? I am working on an STM32MP1, but it should be similar on a more common Raspberry Pi board. The goal is to have some ...
Adrian Maire's user avatar
0 votes
1 answer
53 views

Question about the problem of interfacing BLDC motor with L9110 , STM32 and DHT11 for temperature based speed control

Hello everyone currently I am having a problem when working with STM32f103c8t6. Though the circuit can work well with the temperature and moisture measurement, there exists problems in the work of ...
kaito kumon's user avatar
0 votes
1 answer
157 views

Allwinner V3s boot conditions

We've made our own SBC as part of a student project based on the Allwinner V3s, but it's not booting (no output on UART0, and it doesn't enter USB device mode (FEL) either). What are all of the ...
Nejcraft's user avatar
1 vote
4 answers
1k views

UART not sending correct data in STM32

I have to send data by UART1 from my STM32F429. The problem is that the data is not sent correctly. I debugged and I got this. For testing I want to send ...
niloofar's user avatar
0 votes
1 answer
156 views

LCD 3.3V Black Boxes Row with STM32F030C8T6TR

I'm learning mcu programming using ARM Microcontrollers: Programming and Circuit Building Volume 1 book by Patrick Hood-Daniel and I stuck on Chapter 17 "Add the LCD to the Circuit". I've ...
Diana's user avatar
  • 111
0 votes
0 answers
113 views

Health check for Lichee Pi Nano with UART

I have a Lichee Pi Nano SBC, TTL Adapter (UART) and 8 GB SD-Card. Following pins connected together: ...
alirezaarzehgar's user avatar
0 votes
2 answers
125 views

How to get an ARM M0+ controller to retain it's last executed instruction after reboot?

I want to give my application a capability under which, in case of power off, the system retains last executed instruction and once the power is turned on again it RESUMES the program sequence. Is ...
Pritesh gupta's user avatar
0 votes
1 answer
287 views

Error: L6406E: No space in execution regions using STM32F429 [closed]

I want to store my logo image (which is 274 × 184 pixel) and six 120 × 120 icons in my background layer. Whenever my LCD turns on, it immediately shows my logo, which is in the center, and six icons (...
niloofar's user avatar
2 votes
2 answers
287 views

Keil uVision Disassembly Window with ARM Microcontroller

I have a couple of probably simple questions for you all regarding disassembly from C code to assembly code. I am using Keil uVision as a programmer and debugger with a TIVA TM4C123GXL microcontroller ...
David777's user avatar
  • 1,558
1 vote
1 answer
240 views

ARM Cortex-A: Permission fault due to code region mapped as read/write

When I try to execute code from a region mapped as read/write (AP[2] == 0), the CPU issues a permission fault (exception class == 0b100001, instruction fault status code == 0b001111). When I change ...
Jorge's user avatar
  • 13
1 vote
1 answer
136 views

Single-cycle ARM processor (flags)

This is an ARM processor from my book: The picture can be enlarged by clicking on it. I'm wondering about the control unit below, specifically the last picture, the conditional logic. Is the ...
user394334's user avatar
1 vote
2 answers
1k views

STM32 SWDIO SWDCLK pins alternative use after programming?

We have STM32G0 in one of our projects. We have limited pins on the PCB connector. We need to use 2 connector pins as I2C and SWD same time, to do that we think of connecting the one connector pin to ...
devscg's user avatar
  • 153
2 votes
1 answer
364 views

Program counter updating in a single-cycle ARM processor

This picture is from the book Digital Design and Computer Architecture: ARM Edition. It implements the LDR instruction. I have one question: R15 is supposed to be PC+8. In the picture, is R15 ...
user394334's user avatar
1 vote
1 answer
139 views

Using a Bluetooth module without MCU

I am making an EEG using an ADS1299. To read the data I want to use a Bluetooth module and send data to a PC (I think this one should be OK) and power both with 2 coin cell batteries. Can I do this ...
elder00's user avatar
  • 11
0 votes
1 answer
250 views

Why are ARM Cortex-R parts so rare? [closed]

Most every ARM licensee under the sun sells dozens of Cortex-A and Cortex-M parts, but as far as I can tell, only TI, Renesas, and Cypress (oops, Infineon) sell Cortex-R parts. Of those three, TI is ...
smammy's user avatar
  • 103
4 votes
2 answers
2k views

STM32 applications hardfault after jumping from the bootloader

I am attempting to write a custom bootloader for a STM32F103C8Tx (64k Flash, 20k RAM variant) on a bluepill board. When the jump from the bootloader occurs the application immediately hardfaults on ...
Binder's user avatar
  • 120
0 votes
0 answers
109 views

How to read and conver temperature sensor of MAX6633 with STM32

I have a MAX6633 on a board connected to a STM32 over I2C bus. This is a 12bit temp sensor and the datasheet says it stores the temperature in a 16 bit format (I think 2x8bit). This is how I try to ...
DEKKER's user avatar
  • 755

1
2 3 4 5
22