Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
229 views

EXC_RETURN does not work in PendSV on ARM Cortex-M3

I want to use EXC_RETURN in PendSV but I always get HardFault with INVPC (Invalid PC load UsageFault, caused by an invalid PC load by EXC_RETURN). This works, if I move the assembly code to ...
Nabukudurriusur's user avatar
0 votes
1 answer
11k views

How to fix 'Multiply defined' in Keil V5

I am trying to compile my code but I get the error "multiply defined" despite defining my variable only in one header (For example ".\Objects\LCDADC.axf: Error: L6200E: Symbol Pin_D6 multiply defined (...
Amy Gamble's user avatar
1 vote
1 answer
1k views

__WFI() will not sleep even with all interrupts disabled and pending cleared - LPC18XX Series

Background: I am trying to make my embedded application go to sleep when there is no CAN activity with the __WFI() and then wake up whenever a CAN interrupt is received. Before enterring sleep mode, I ...
LaneL's user avatar
  • 768
1 vote
1 answer
676 views

Unable to connect mbed lpc1768 with putty , com ports not showing

my Code : #include "mbed.h" DigitalOut myLed(LED1); int main() { while(1) { printf("Hello World!\n"); myLed=1; wait(1); myLed=0; wait(1); } } The LED is blinking just fine ...
Meddah Abdallah's user avatar
4 votes
1 answer
2k views

Something weird with arm cortex-m4 cycle count

I recently used a board (LPCXpresso 5411x) to do some computation and we tried to decrease cycles as long as we can to save the running time for our certain demand, so I needed to do some research on ...
Stephen Yuan's user avatar
-1 votes
3 answers
4k views

Install Android OS on ARM Cortex-M3

Can we install Android OS on ARM Cortex-M3? Here's ARM community link that answer to this question but it's not clear. I want to install Android on LPC1788, Is it possible? Any experience?
mahtab's user avatar
  • 79
0 votes
0 answers
71 views

Singleton of derived class calling base class function fails why?

So I am working the LPC824 which is a cortex-m0+. I am trying to maintain similarity in code to the arduino and am currently stuck on the serial class. Right now I have a serial class that extends a ...
user1571959's user avatar
0 votes
1 answer
971 views

lpc17xx frequency detection of square wave using polling

I have to read 5 different frequencies(square wave) up to 20KHz by polling 5 different pins. Im using a single timer interrupt only,for every 1 millisecond. Polling of the pins would be done in the ...
Akshay's user avatar
  • 1
0 votes
1 answer
1k views

Configuring secondary core in OpenOCD

I'm having trouble using OpenOCD to program and debug LPC4357 microcontroller. This chip has a Cortex M4 core and a secondary Cortex M0 core. This is OpenOCD config I'm using: source [find target/swj-...
Josip's user avatar
  • 6,715
0 votes
1 answer
304 views

LPC1114 re-directed interrupt handling

LPC1114 bootloader (location 0-0x2000) and user application (location 0x2000-0x6000) where bootloader is using polling and user application is using interrupts. Description- Bootloader runs systick ...
whitedog's user avatar
0 votes
0 answers
178 views

uIP DNS clinet fails if external DNS server is used

I've using the uIP stack to send HTTP posts to a remote webserver with some sensor data. I'm using resolv.c (included as part of uIP) as the DNS client to resolve the remote webserver domain name to ...
user3266105's user avatar
1 vote
2 answers
7k views

Writing GPIO Interrupt Handlers for LPC1769 Cortex M3

Is there a simple GPIO Interrupt example for the ARM Cortex-M3? I have written some code, however somehow the interrupt does not seem to fire: #include "LPC17xx.h" #include "lpc17xx_pinsel.h" #...
jhtong's user avatar
  • 1,589
3 votes
2 answers
860 views

How to finish lower priority interrupt?

I have one high priority interrupt which sends USB data, and one lower priority task which already fetches the next data to be send. Sometimes the high priority interrupt requires some data that is ...
Maestro's user avatar
  • 9,328
3 votes
1 answer
2k views

LPC1769 UART interrupt causing hard fault

I just enabled receive interrupts for UART3, but I get a hard fault as soon as I send it data. Here's how I'm initializing it: LPC_UART_TypeDef *uart; LPC_SC->PCONP |= 1 << 25; LPC_PINCON-&...
Isvara's user avatar
  • 3,453
0 votes
1 answer
380 views

Calculate lpc1788 mips

have you ever calculated the mips of lpc1788 board? Recently I've calculated a result via following code running in rom: volatile uint32_t tick; void SysTick_Handler() { tick++; } unsigned long ...
Leslie Li's user avatar
  • 437

15 30 50 per page