Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cortex-m0]

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

1
vote
0answers
35 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 ...
0
votes
1answer
63 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 ...
0
votes
0answers
58 views

How drive two servos using BBC micro:bit using JavaScript?

I'm playing with a BBC:micro using EspruinoJS and I'd like to control a couple of Feetec FS90R continuous rotation mini servos(datasheet pdf link). I had no luck using ...
1
vote
1answer
50 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 ...
1
vote
1answer
508 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 ...
0
votes
1answer
154 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 ...
-1
votes
1answer
515 views

STM32L0 GPIO Interrupt problem

I am trying to blink the led(PA5) when PC13 Button is clicked. But it doesnot work. main.c ...
1
vote
1answer
404 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 ...
0
votes
0answers
83 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) ...
0
votes
1answer
75 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 ...
2
votes
1answer
216 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 ...
2
votes
2answers
424 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 ...
0
votes
1answer
153 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 ...
0
votes
0answers
481 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 → ...
2
votes
3answers
587 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 / ...
1
vote
3answers
299 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 ...
0
votes
2answers
224 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 ...
0
votes
2answers
586 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 ...
-2
votes
2answers
584 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 ...
0
votes
1answer
286 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. ...
0
votes
2answers
562 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 ...
0
votes
1answer
344 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 ...
0
votes
1answer
325 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 ...
-1
votes
2answers
103 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 ...
1
vote
1answer
442 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 ...
1
vote
2answers
803 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 ...
0
votes
1answer
407 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 ...
1
vote
2answers
411 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 ...
0
votes
1answer
842 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 ...
21
votes
6answers
6k 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 ...
0
votes
1answer
433 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.
1
vote
2answers
3k 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 ...
2
votes
1answer
105 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....
2
votes
2answers
740 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: ...
4
votes
1answer
4k views

Printf style debugging via SWD

Is it possible to send arbitrary messages (as with printf()) via SWD for debugging?
0
votes
1answer
136 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 ...
3
votes
2answers
893 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 ...
14
votes
1answer
13k 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'...
1
vote
2answers
185 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 ...
4
votes
4answers
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 ...
4
votes
2answers
759 views

Moving code from an ARM M0+ to an ARM M4, what changes?

Say I have a very simple program that functions perfectly fine on a ARM Cortex M0+ processor. How much will I need to change in order for it to work on an ARM Cortex M4 processor, assuming they are ...
2
votes
2answers
2k views

Why doesn't my program execute (work)?

I have bought this board for working on Cortex-M0 series microcontrollers. its MCU is STM32F030F4P6. this is the board: and its schematic: I used STM32CubeMX for configure the MCU and then used MDK-...
3
votes
3answers
2k views

How fast can ARM Cortex M0s/M3s bit bang?

I have not yet used ARM Cortex uCs, only AVRs Firstly, how fast can they: Stream 1024+ bits (serially, from bytes in RAM) out of a pin, with no pauses/jitter Stream 1024+ bytes (parallel, from RAM) ...
4
votes
2answers
3k views

Relationship between reset pins and SWD functions (ARM Cortex M0)

On many microcontrollers or other devices without JTAG/SWD functionality, there is a reset pin which when low unconditionally and asynchronously forces everything into a known state. On devices with ...