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
1
vote
2answers
55 views

How would I implement an onboard ISP for multiple ARM Cortex M0+ MCUs?

I've written a lot of firmwares for embedded dev boards like Arduinos and Teensys, but am still new to PCB design. Right now I'm attempting to bring a multi-MCU design into limited production, and I'...
0
votes
0answers
25 views

Where can I develop on ARM NPU?

Arm boasts NPU's that have been designed for vision inference: https://developer.arm.com/ip-products/processors/machine-learning/arm-ethos-n However I cannot find where to purchase/develop NPUs (i.e. ...
0
votes
0answers
22 views

Help with LDM instructions on ARM Cortex-M3 processors

Consider the instruction LDM R4!, {R0-R3}. Does the instruction LDM R4!, {R0-R3} load the MEMORY ADDRESS pointed to by R4 to R0 ...
0
votes
0answers
17 views

Why are there bits changing in reserved section of SPI Read Data register on SAM4LS8AA?

I am trying to establish SPI communication between a ATSAM4LS8AA chip (master) and Hope RFM95W LoRa module (slave). I am using Advanced Software Framework (ASF) in microchip studio (MS), and using the ...
0
votes
1answer
55 views

LDR, LDRD and STR instructions with immediate offset in ARM Cortex-M3

The Cortex™-M3 Devices Generic User Guide explains the instruction LDRD R8, R9, [R3, #0x20] as "Load R8 from a word 8 bytes above the address in R3, and load ...
0
votes
0answers
26 views

pyocd programming is slower than expected

I am using pyocd to program a MAX32660 using a MAX32660-EVSYS via SWD. pyocd is reporting a bit rate that is less than 1/5 of ...
0
votes
0answers
53 views

How to debug Cortex M3 with STLink V2 over SWD?

I have a SAM 32bit cortex 3 board(arduino Due clone) and an STLink V2 mini clone. Supposedly all cortex M3 should be able to be debugged via SWD which the STLink V2 mini clone uses. What's not at all ...
0
votes
1answer
34 views

What is the difference between PTC and PORTC?

I am working on s32k144 controller in which I learnt how to configure pins as INPUT, while referring data sheet I got to know the base address GPIOC base address: 400F_F080h which is matching with ...
4
votes
0answers
37 views

ARM Cortex-M4 VFMA (fused multiply-add) performance? 3, 2 or 1 clock? Forwarding?

I am working on some performance-critical DSP code destined to run on an ARM Cortex-M4. One particular section of the code (a sinc interpolation function) is dense with multiply-accumulate operations ...
4
votes
6answers
2k views

Order of operations and rounding for microcontrollers

I was working on a project where I read a value from a 16-bit ADC and scaled it to obtain the reading of a sensor. For example: ...
1
vote
1answer
68 views

STM32F407 Clock Configuration Order

I have been taking a Udemy course on the STM32F407 and using the Discovery board to go along. However, clock configuration is not covered in the course. After some Googling and nose in the reference ...
0
votes
2answers
62 views

STM32H757I - EVAL BOARD to learn Embedded Systems [closed]

I wanna dive into the matter and learn Embedded Systems. I am waiting for this board. I've read some blogs, earlier posts on this topic, watched some videos and I have a couple of questions: Does one ...
5
votes
3answers
651 views

Memory To Memory DMA on STM32

According to STM32F407 reference manual page 313, memory to memory mode in DMA is a mode that doesn't need any triggering request from a peripheral and it will happen just after the stream enable bit ...
9
votes
6answers
2k views

Why do some microcontrollers have numerous oscillators (and what are their functions)?

Currently I am reading through the Arm based ATSAM4L series datasheet, and in the sections BSCIF and SCIF I have encountered at least 8 different oscillators/clocks (see image below). I understand ...
0
votes
1answer
44 views

ATSAME70Q21 at 1.8V — cannot program flash memory

A recent revision of a board based on the ATSAME70Q21 (a Cortex-M7) is exhibiting problems. The previous revision of the board had been working for quite a while. [EDIT] The exact part number as it ...
0
votes
1answer
84 views

ARM CMSIS Matrix conversion to a uint16_t array

I'm working on the STM32L476RG and I'm looking to perform some matrix operations on the controller, using C and CMSIS-DSP for ARM. I have 2 uint16_t arrays which I will be converting to matrices and ...
-1
votes
1answer
27 views

STM32F407VG Discovery + CMSIS HSE Clock Configuration

I am trying to program an STM32F4 discovery board using Vscode, Platformio and CMSIS. However, I cannot set the right clock frequency. I have programmed it to blink an LED every second, except it ...
0
votes
1answer
39 views

Where do I place linker sections in my FLASH memory?

I'm trying to write my own bootloader and an entire program to be flashed to my microcontroller from scratch (STM32F303RE based on the ARM Cortex-m4 architecture) I've been watching a tutorial series ...
0
votes
1answer
55 views

How to control a servo motor using STM32F103C8T6 timers?

I am trying to control the position of a servo motor using an STM32F103C8T6 MCU (blue pill). The problem I am facing is that the servo does not move to different positions when given different values (...
1
vote
1answer
149 views

Bare metal timer interrupts on stm32f103 “bluepill”

I am trying to implement a simple interrupt routine, blinky led using a timer on the stm32f103 "blue pill" board. I have been reading the datasheet, reference manual, timer cookbooks and all ...
0
votes
0answers
15 views

Using TIVA's onboard JTAG to connect to a 3rd party arm controller

I have a mikrochip's CEC1702 based board and a TIVA tm4c123 launchpad with onboard debugger. I wish go program the CEC board but datasheet suggests it can only be programmed via JTAG. Can I use the ...
2
votes
0answers
23 views

How to safely set/clear only some bits of SCB->SHCSR on ARM Cortex-M processors?

On p. 265 of the third edition of Joseph Yiu's The Definitive Guide to Arm Cortex-M3 and Cortex-M4 Processors, there is some discussion about the "system handler control and state register" (...
1
vote
2answers
86 views

Is a JTAG programmer capable of any microcontroller which supports JTAG?

Sorry if my question is very basic, but I couldn't find the answer by searching the internet. I want to buy a JTAG programmer, but in the datasheet of this programmer there is a list of "...
0
votes
1answer
55 views

Ethernet Auto Negotiation Timeout

I am currently trying to get a basic Ethernet communication between a laptop and and FPGA Development board working correctly, however, I seem to be facing an issue where the auto-negotiation is ...
0
votes
0answers
26 views

Current consumption is even worse in STOP2 than in Run Mode Range 2

I am using the STM32L431CC microcontroller and I am learning on saving power with the STOP2 mode. I found an example code that demonstrates how to use the STOP 2 mode on a different microcontroller of ...
0
votes
1answer
41 views

Ethernet Data Transfer (ARM M3-Cortex to PC)

I am having some trouble trying to understand how I can use Ethernet to transmit some data to a computer. To be clear this would be a direct connection (an Ethernet cable will run from my development ...
0
votes
1answer
41 views

imm8 in ARM data-processing instruction

In ARM, Data-processing instructions have an unusual immediate representation involving an 8-bit unsigned immediate, imm8, and a 4-bit rotation, rot. imm8 is rotated right by 2 × rot to create a 32-...
2
votes
1answer
78 views

Bit banding in Arm cortex M4

I am confused about the concept of using a pin offset in bit banding. EG, given that PORTA has a base address of 0x40004000 and the 5th bit has an offset of 0x0080, the address of the pin should be ...
0
votes
1answer
28 views

Kinetis KE16 not coming out of reset without debugger 3V3 and GND connected

I have a project based on the MKE16F256VLH16 MCU. The processor won't run unless the 3V3 and GND are connected to the debugger (a LPC Link2 board), even if the LPC Link2 is unplugged from USB and left ...
1
vote
1answer
54 views

Trying to understand the FLASH region of an STM32L433

I am trying to learn more about the STM32's FLASH memory (on the Nucleo-64 STM32L433RCT6P) so that I can use a page of the FLASH memory to store some user configuration (so that the data is retained ...
1
vote
1answer
111 views

Configuring LPTIM Parameters with the STM32L4

I bought an STM32L433 Nucleo-64 board (STM32L433RCTxP) and I am trying to learn more about the LPTIM peripheral. I am experimenting with setting up the LPTIM1 peripheral so that it generates an ...
1
vote
0answers
59 views

Relative FPGA Footprint of ARM Cortex M3 vs. MicroBlaze

I may have missed it, but does anyone have experience with the relative resource consumption of a MicroBlaze versus the core for an ARM Cortex M3 IP? It seems like there should be a ballpark ...
2
votes
1answer
59 views

Smartfusion2 Programmer Error

I have recently start using the M2S150 Development kit from Microsemi and have run into an issue when attempting to program the board (via Libero 12.1). When running the "Run PROGRAM Action" ...
0
votes
2answers
46 views

STM32 enabling clock for port C sets IDR bit 1

Why does enabling the clock for port C set the IDR bit 1? It's the configuration for a Nucleo-F767ZI.
0
votes
0answers
49 views

Samd51 fatfs driver with sd card backend stuck in an infinite loop

I am trying to use the FatFs module in the Atmel start for my project with the samd51j19a chip. The clock is @ 120mhz and the sd card is wired according to the diagram on the PINMUX. The program ...
1
vote
1answer
58 views

Why does carry flag change from 1 to 0 after ADDS?

While doing my homework on ARM controllers and assembly programming, I stumbled upon a confusing question. So here's the line of code which I don't understand (there are other codes before and after ...
0
votes
1answer
169 views

STM32 PWM Setup - Bare Metal in CubeIDE

I have an STM32L476 Discovery Board. I'm trying to generate a PWM signal on the GPIO pin PE14 using TIM1_CH4 using bare-metal in CubeIDE. I have created a new project in Cube and have kept the default ...
0
votes
1answer
104 views

Smart-Grid project [closed]

I'm in my final year of Electrical and Electronics Engineering. I'm taking up a major project(smart-grid),in a team of 4, through which I plan on learning about embedded systems. My experience: ...
2
votes
1answer
90 views

IEEE-754 Floating Point Converter

I have in hexadecimal representation a IEEE-754 Floating Point: uint32_t _u_IEEE_754 = 0x41100000; //9.0 The decimal representation is: 9.0 I am working in C under ...
5
votes
2answers
3k views

What is DMIPS/MHz?

As I was reading the datasheet of STM32F103C8T6, I saw that it had 1.25 DMIPS/MHz (Dhrystone). What is DMIPS/MHz? I am adding the link to the datasheet here
0
votes
0answers
54 views

Emulation of a custom system based around an SAMD51

I am designing a system based around the samd51 chip. It will have an SPI screen and the buttons will be read through a shift register. Also, there will be an SD card for IO. I need a way to emulate ...
0
votes
0answers
38 views

Problem using UART0 in TM4C123 Tiva C Launch Pad

I'm trying to interface UART0 with the my laptop using the ICDI the code I used is from Mazidi's book : ...
0
votes
1answer
84 views

Configure SPI Slave to handle data coming at the wrong time

I am experimenting with the SPI protocol (fast speeds where 5 bytes of data is transferred in slightly less than 500us) on the STM32F410 configured as a SPI full duplex slave. A master device sends a ...
0
votes
0answers
169 views

inline assembly ARM GNU GCC

I am playing with SVCall function in ARMv6 using GNU gcc compiler see below code with 2 defined SVCall functions ment to be compiled the same way: ...
0
votes
0answers
17 views

Simulating TM4C123 Tiva C Launch Pad

I have the board and I have done some interfaces with it so far. Now I'm trying timers and interrupts, and I don't have an oscilloscope to examine square waves. Is there any simulation software for it?...
1
vote
4answers
150 views

Do microprocessor have any special hardware to do division and multiplicaiton?

My old school understanding is that multiplication is nothing but successive addition and division is nothing but successive subtraction. So, my question is there any changes being done like do we ...
0
votes
1answer
99 views

Understanding addressing and size in memory map

TM4C123 has 256 kiBytes of flash ROM as shown in the memory map. The range of memory addresses for the ROM is 0x0000.0000 to 0x0003.FFFF (a 32bit address), totaled to 3x16x16x16x16 = 196,608 number of ...
4
votes
1answer
184 views

Why operations on float variable are performed on a double? STM32F401RE, MDK-ARM v5

I am debugging a simple line of code: float temp_f; ... ... temp_f= temperature[0] +(temperature[1] >> 5)*0.125; that is assembled into ...
2
votes
1answer
100 views

Two different ways to open a project in IDE's for MCUs

I am using following 3 different IDE's for ARM based MCU's. TI's CCS ST's CubeIDE IAR's Workbench I have to move the entire projects which are build on each of these IDE's on different PC's from ...
0
votes
0answers
237 views

SPI Slave sometimes sends incorrect data

I apologize in advance if I should have not created a new thread as I ran through new issues after making updates to my project posted on this previous thread: SPI data arrives at every 2nd send and ...

1
2 3 4 5
20