Questions tagged [cortex-m0]

For questions specific to the ARM Cortex-M0 processor core.

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

How to successfully build for ARM Cortex-M0 using arm-gcc-none-eabi?

I want to debug the following source file to a cortex M0 microcontroller. ...
andre.hre's user avatar
  • 139
0 votes
0 answers
131 views

How does Cortex-M connect to the Multi-Layer AHB bus?

I'm trying to understand ARM Cortex-M series AHB BUS connections and referencing that Cortex-M System Design Kit Technical Reference Manual https://developer.arm.com/documentation/ddi0479/c As of now, ...
Carter's user avatar
  • 581
0 votes
0 answers
135 views

How do I flash a bootloader onto a Cortex-M0 with hobby-priced hardware?

I was working on a schematic based around the ATmega32U4, but those are on backorder until 2023!! I was looking for alternatives and saw that a lot of Adafruit's hobby kits have switched from AVR to ...
D. Patrick's user avatar
0 votes
1 answer
59 views

What temperature metric does the Tiva C LMF120XL measure?

I'm writing a program based on the udemy course I'm following. The program I'm writing will blink a different color based on what temperature the sensor is reading in from ADCO using SS3. At one point,...
Elliott Goldstein's user avatar
1 vote
0 answers
756 views

STM32F103C8T6 Bluepill - core held in reset error

"Core is held in reset" - the error stm32 st-link utility tool throws when I try to erase my STM32F1 blue chip. Is my board damaged or something? In Settings Window - Under STM32 Target ...
user8737703's user avatar
0 votes
0 answers
768 views

Is uCLinux support ARM Cortex M0?

I just do some Google Search about this and it just shows me something like uCLinux on Cortex M3,4. Is it possible to run uCLinux on ARM Cortex M0? (And how? Please give me some reference for that.) ...
raspiduino's user avatar
2 votes
1 answer
203 views

Cortex M0+ MemManage Fault on first PUSH instruction

I have an example program compiled for the ATSAML21E18B, which uses an M0+. The project was generated using the default Atmel START settings for this device. I initially uploaded the .bin to the ...
fisherdog1's user avatar
1 vote
3 answers
239 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'...
K-Space's user avatar
  • 11
0 votes
0 answers
68 views

How to connect J-link OB to an RF transceiver module?

I'm looking to program the RFM380F32 RF transceiver module which includes an ARM Cortex-M0+ processor: http://www.hoperf.cn/modules/soc/RFM380F32.html The documentation suggests programming in Keil ...
StarDust's user avatar
0 votes
1 answer
212 views

Memory Boundaries in SRAM

I am trying to use the GPDMA which is present in LPC43XX parts. The UM10503 data sheet constantly warns about memory boundaries (datasheet section 21): basically it says that you don't want to try a ...
a_bet's user avatar
  • 327
0 votes
1 answer
418 views

Flashing firmware onto NXP QN9020 via SEGGER J-Link

Here I am attempting to flash the firmware using SEGGER J-Flash Lite. Below is the ouput when attempting to connect via the SEGGER J-Link Commander. ...
oxr463's user avatar
  • 111
1 vote
0 answers
46 views

Help required regarding Cypress 4200 coding

I am a newbie when it comes to Cypress chips. I am developing a capsense keypad. I recently started with CY8kit049. I can code into the chip on board. How can I code other PSOC 4200 chips too using ...
Ajinkya Bansod's user avatar
0 votes
1 answer
182 views

ARM Debugging - Cortex M0 debugger gpio changing while halted in SysTick_Handler

I've been trying to figure out this one for hours and I can't see what I'm missing. I currently am debugging my program on hardware and I have set a break-point inside of one of the functions called ...
user1785853's user avatar
1 vote
1 answer
114 views

SAMD09 Debug port connection issue

I have recently built a board using an ATSAMD09D14A-MUT, today it came the time to test it, however problems arose in a strangely annoying manner, when trying to connect to the device i get error 4109 ...
diegogmx's user avatar
  • 915
1 vote
1 answer
908 views

Cortex-M0 vs. Cortex-M0+ for an IoT sensor using LoRA [closed]

Although I am an experienced software engineer, I am still quite a novice in electrical engineering. So please bare with me in explaining my requirements: I have a small garden in my backyard and I ...
Sam Hammamy's user avatar
1 vote
1 answer
578 views

Changing GPIO pin configuration on the fly

I am using STM32F0 based ARM Cortex-M0 micro controller in my project. Because of lack of available pins, I need to use one pin as an ADC-input and as a GPIO-digital-out (not at the same time, but in ...
DDonkey's user avatar
  • 83
-1 votes
1 answer
1k views

STM32L0 GPIO Interrupt problem

I am trying to blink the led(PA5) when PC13 Button is clicked. But it doesnot work. main.c ...
Atrahasis's user avatar
  • 127
2 votes
1 answer
2k views

Is my SAMD21 bricked due to a wrong clock configuration from software?

I use a SAMD21 without an external crystal, by using its internal 32kHz oscillator and transform it with DFLL to 48 MHz. The processor wakes up normally with GCLK0 on 1 MHz, so I first activate GCLK1 ...
vsz's user avatar
  • 2,554
0 votes
0 answers
222 views

nRF51822 bricked after faulty boot loader

I have a custom board (a chinese game pad) which uses a chip named n51802, which according to nordic is a “custom” nrf51822 - completely compatible with it though. I “accidentally” (fiddling around) ...
dzervas's user avatar
  • 243
0 votes
1 answer
118 views

8051 MCU with fast entry to ISR implementation

I'm developing a custom protocol processing device based on MCU. My protocol is somewhat similar to I2C and uses bit-banging instead of hardware implementation. I've done a prototype based on ...
zmechanic's user avatar
  • 304
2 votes
1 answer
697 views

ADC on a SAMD21 always gives zero values, except when using breakpoints in its interrupt

I started experimenting with the ADC on a SAMD21, and strangely, the result I get is always 0. I initialized it like this (using the temperature sensor to get some ...
vsz's user avatar
  • 2,554
2 votes
2 answers
995 views

Why aren't my interrupts nested in an ATSAM controller?

The interrupt controller of an ATSAMD21 (based on a Cortex-M0+) is called NVIC (Nested Vector Interrupt controller), so I was hoping it would be easy to nest interrupts. The documentation doesn't ...
vsz's user avatar
  • 2,554
2 votes
2 answers
1k views

The value of the TCC counter on an ATSAM controller always reads as zero

I use an ATSAMD21 to generate a custom signal with the help of a PWM generator. Basically, I set up TCC0 as a PWM generator, and use its overflow interrupt to set up the CC registers for the next ...
vsz's user avatar
  • 2,554
1 vote
0 answers
802 views

J-Link device selection error in Keil

I try to load a program into STM32L011K4 using J-Link. The mistakes I get and the steps I follow are as follows: PROBLEM-1. J-link could not find STM32L011K4 My Steps: Click options for Target → ...
Purgoufr's user avatar
  • 241
3 votes
3 answers
2k views

Unable to program ATSAML21 PCB via SWD - Problem with connection?

Well, I'm officially stumped (and so are several other engineers)... I have a custom PCB running an Atmel ATSAML21E18B microcontroller, which I'm trying to program through an Atmel ICE debugger / ...
Andy Mills's user avatar
1 vote
3 answers
334 views

How can I debug microcontoller code during run time?

I'm using Nuc240 Microcontoller which has its UART0 configured for 'printf',I use a UART to USB controller to view the output on screen. This works during run time also, so that I could monitor things ...
Arun Joe Cheriyan's user avatar
0 votes
2 answers
365 views

How to make use of 'Power ON Reset' while there is noise in Power?

I'm using Nuc240LE3AE(Cortex M0) to run a code that is developed. I want to run the code on startup for which (POR)Power On Reset facility is used. Normally this is Enabled in the Micro-controller and ...
Arun Joe Cheriyan's user avatar
0 votes
2 answers
1k views

How to store 8 bit character in 32 bit Data Flash memory?

Is it possible to store 8 bit character to 32 bit Internal Data Flash in the Microcontroller by just using only 8 bit of space for each bytes?,by using a combination of 4 bytes which can be also ...
Arun Joe Cheriyan's user avatar
-2 votes
2 answers
1k views

4-Pin programming interface

Could anybody give me a hint on how to wire a proprietary device, that uses a Nordic NRF51822 chip and only provides the following pins: {3.3V, GND, RST, CLK} to a programmer. I am pretty sure it is ...
alexander belov's user avatar
0 votes
1 answer
964 views

How can I save a floating point value to a Microcontroller data Flash

I'm trying to save some floating values to the Data flash of my Nuc220(ARM-M0 32 bit) Microcontroller using ISP procedure. ...
Arun Joe Cheriyan's user avatar
0 votes
2 answers
1k views

Runs with debugger but not standalone, using ATSAMD10D13 and Atmel ICE

I made a custom board with 2 ATSAMD10D13AM parts. The are 8k flash/4k sram Cortex-M0 24QFN parts. When I power the board the IC's start but then freeze (I have LED's blinking that go solid). When I ...
Bill's user avatar
  • 2,496
0 votes
1 answer
779 views

measurement of the number of LUTs-FF pairs and logic cells under most efficient and inefficient condition

Can anyone tell me how to get the number of the LUTs-ff pairs and logic cell used under most efficient and inefficient condition in my ISE Design Summary. I can see there are data of 'Number of Slice ...
Yicheng Yang's user avatar
0 votes
1 answer
442 views

STM32F0 Crashes from literal string declaration

I literally feel like I'm going crazy! I'm trying to write an exceptionally simple program that can request a list of local WiFi networks using an ESP8266 and the AT+CWLAP command. The issue doesn't ...
Pyrohaz's user avatar
  • 316
-1 votes
2 answers
105 views

Calculate voltage [closed]

I am using Bluetooth Low Energy Boards Based on Nordic nRF51822, which has ARM Cortex-M0 microcontroller. I have 7 switches. There is always only one of them ON. I need to know which switch is ON ...
user2963390's user avatar
1 vote
1 answer
803 views

GPIO speed in LPC812 Cortex-M0 MCU from NXP

Based on datasheet page 17: GPIO registers are located on the ARM Cortex M0+ IO bus for fastest possible single-cycle I/O timing, allowing GPIO toggling with rates of up to 15 MHz. And I used a ...
MHD's user avatar
  • 36
1 vote
2 answers
1k views

STM32F0 discovery serial

Is there a way to use the TX/RX on the STM32F030 Discovery board? The User's manual says "reserved", but since the Cortex M0 doesn't have an ITM, I'm looking for another way to get data out of this ...
Thor Johnson's user avatar
0 votes
1 answer
496 views

LPc11u68 Recognized as an USB mass storage device even when programmed in HID class

When I connected a newbie LPC11u68 to USB port,it recognized in windows as an USB mass storage device.When I programmed LPCOPEN HID example by Flash magic to it,after resetting the board,my PC can't ...
Dizgah's user avatar
  • 67
1 vote
2 answers
444 views

NXP QN9021 (ARM Cortex M0) programmer

I have made a small breakout board with the QN9021 SOC (BLE + ARM Cortex M0). I am having trouble flashing the code into this device. Assuming that this device is wired properly and working fine, how ...
Akhil's user avatar
  • 19
2 votes
1 answer
2k views

JTAG and additional external power supply

I have built a board for driving some external peripherals which need up to 9V. The CPU (Cortex M0) is powered with 3.3V. My main power supply is a 9V battery. A step-down converter provides the 3.3V ...
trylimits's user avatar
  • 123
25 votes
6 answers
8k views

How to Transition from "Basic" Microcontrollers to ARM Cortex?

I have many years of experience with 8-bit cores from various manufacturers - namely 8051, PIC, and AVR - and I now have a Cortex M0 to figure out. Specifically this one, but I hope we can be more ...
AaronD's user avatar
  • 5,656
0 votes
1 answer
755 views

Are unaligned LDRH/STRH supported on Cortex M3/M0?

Can all Cortex M0/M3 cores do this? LDRH r0, [0x8001] This would suggest yes but I don't see anything specific about Cortex-M cores.
odinthenerd's user avatar
1 vote
2 answers
5k views

ARM Cortex reset button and debug interface (SWD)

I am designing a circuit using the EFM32ZG222 MCU (an ARM Cortex M0+) and I need to use the SWD interface (with a 10-pin Cortex Debug Connector) along with a reset button. I found a schematic that ...
pvh1987's user avatar
  • 325
2 votes
1 answer
246 views

Managing addresses of interrupt service routines and functions of the program in cortex M0

I am working with nordic nRF51422 uC with cortex M0 core and I have to store data in Non-Volatile Memory but to do that properly I need information where exactly code of the program is stored in flash....
Al Bundy's user avatar
  • 697
2 votes
2 answers
953 views

How to automatically allocate a page of flash for in-application storage of settings

I've been using the LPC8xx range of Cortex-M0+ MCUs quite successfully. One difficiency: these don't have inbuilt EEPROM (to preserve settings across power cycles etc). However there is a work-around: ...
jdesbonnet's user avatar
5 votes
1 answer
6k views

Printf style debugging via SWD

Is it possible to send arbitrary messages (as with printf()) via SWD for debugging?
andrey's user avatar
  • 504
0 votes
1 answer
175 views

Atmel software framework API

Okay, so here I am starting to get acquainted with SAMD series MCUs from Atmel and initially I just want to use ASF APIs and get one project done, however I thought ASF provides APIs for every piece ...
Sajid's user avatar
  • 483
4 votes
2 answers
1k views

ARM Instruction set

I am trying to enter into the world of ARM and one thing I come across very often is that ARM processors support ARM and Thumb instruction set. So it means compiler will use Thumb Instructions which ...
Sajid's user avatar
  • 483
19 votes
1 answer
17k views

How do I print debug messages to gdb console with STM32 discovery board using GDB, OpenOCD and arm-none-eabi-gcc?

I'm programming an STM32 Cortex M0 discovery board (32F0308DISCOVERY) using OpenOCD, arm-none-eabi-gcc, and gdb. I was wondering if there is any straightforward way to log debug messages over SWD. I'...
foldl's user avatar
  • 591
1 vote
2 answers
349 views

SRAM vs MicroSD

I have very little SRAM in my datalogger (10 kb), so I have to flush my buffer to MicroSD every 0.5 seconds. Would it make any difference in power usage if I added more SRAM (which is very difficult ...
Maestro's user avatar
  • 981
4 votes
4 answers
1k views

minimal ARM (cortex m0) board

First: I'm not a professional. I just want to know what is possible and if i'm on the right track. Second: I want a little microcontroller which just measures (for example) the temperature and send ...
Laokoon's user avatar
  • 151