Questions tagged [lpc]

Refers to a line of ARM-based microcontrollers by NXP Semiconductors.

Refers to a line of ARM-based microcontrollers by NXP Semiconductors.

LPC is a family of 32-bit microcontroller integrated circuits by NXP Semiconductors (formerly Philips Semiconductors). The LPC chips are grouped into related series that are based around the same 32-bit ARM processor core, such as the Cortex-M4F, Cortex-M3, Cortex-M0+, or Cortex-M0. Internally, each micro controller consists of the processor core, static RAM memory, flash memory, debugging interface, and various peripherals. The legacy LPC families were based on the 8-bit 80C51 core. As of February 2011, NXP had shipped over one billion ARM processor-based chips.

Source: NXP LPC at Wikipedia

194 questions
13
votes
1 answer

Storing CRC into an AXF/ELF file

I'm currently working on a C program in the LPCXpresso (eclipse-based) tool-chain on Windows 7, an IDE with gcc targeting the an NXP Cortex M3 microprocessor. It provides a simple way to compile-link-program the microprocessor over JTAG. The…
superlou
  • 679
  • 1
  • 8
  • 21
10
votes
4 answers

Undefined reference to 'strnlen' despite "string.h" include

I am trying to use create a project for LPC1769 on LPCXpresso. I have a C file calling #include int main() { //some stuff strnlen(SomeString, someInt); } to which I get an error: Undefined reference to 'strnlen' The weird part…
TSG
  • 877
  • 1
  • 6
  • 23
6
votes
4 answers

CAN Bus Protocol Implementation

I want to learn and implement CAN BUS protocol. I have implemented UART,SPI,I2C and One Wire Bus protocol using MSP430 Launchpad in software. Now I want to learn about CAN Bus protocol. I have mBed LPC 1768 Cortex M3 Development board. mBed has Can…
Gaurav K
  • 2,864
  • 9
  • 39
  • 68
5
votes
1 answer

LPC1700 won't wake up from deep sleep

I have firmware running on LPC1754, 59 and 68 + FreeRTOS + CMSIS. I'd like to be able to put the microcontroller in the lowest power mode possible, but: "sleep" is not enough. Once the microcontroller is in "deep sleep", "power down" or "deep power…
j4x
  • 3,595
  • 3
  • 33
  • 64
4
votes
1 answer

SDHC SPI write issues

I've been trying to do an SD card interface with the LPC1766 SPI peripheral for a while and right now I'm stuck in a problem that I couldn't find the answer anywhere. The problem is: SDHC cards are not responding to write and read commands as…
Martini
  • 41
  • 2
4
votes
1 answer

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 how cortex-m4 instructions cost cycles. And I've…
4
votes
1 answer

remapping Interrupt vectors and boot block

I am not able to understand the concept of remapping Interrupt vectors or boot block. What is the use of remapping vector table? How it works with remap and without remap? Any links to good articles on this? I googled for this, but unable to get…
Mahesha Padyana
  • 431
  • 6
  • 22
4
votes
2 answers

pass by reference in assembly

I am trying to write a program to calculate the exponential of a number using ARM-C inter-working. I am using LPC1769(cortex m3) for debuuging. The following is the code: /*here is the main.c file*/ #include #include extern int…
gst
  • 1,251
  • 1
  • 14
  • 32
4
votes
1 answer

RTOS Datalogger example

I'm trying to develop a datalogger on a Cortex M0 (LPC11U14), and I was thinking of using a real-time OS like FreeRTOS, so that I can have one low-priority task that writes the data to SD, and multiple higher-priority timers that fetch the sensor…
Maestro
  • 9,046
  • 15
  • 83
  • 116
4
votes
7 answers

What's a good RTOS to use with the LPC1788 microcontroller?

I'm trying to find a free/cheap RTOS that others have found works well with the NXP LPC1788 microcontroller. I was originally planning on using FreeRTOS, but it doesn't seem to support that particular processor; the closest supported core is the…
Tagc
  • 8,736
  • 7
  • 61
  • 114
3
votes
3 answers

ARM LPC1768 UART0 configuration, wrong baud rate

My baud rate should be 115200, but it is 892.9 void UART0_Init(int pclk, int baudrate) { unsigned long int DLest; //unsigned long int pclk; unsigned int temp; // Turn on power to UART0 SC->PCONP |= PCUART0_POWERON; // Set…
michael
  • 2,577
  • 5
  • 39
  • 62
3
votes
2 answers

USB Driver Installation Issue for Microcontroller using Custom INF

I'm working with the NXP LPC1788 microcontroller and I'm trying to create a driver on the host computer to communicate with it via USB. I believe that I've managed to get the device handling standard USB requests properly (the PC is able to read the…
Tagc
  • 8,736
  • 7
  • 61
  • 114
3
votes
2 answers

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 still being fetched, and in that case I need to…
Maestro
  • 9,046
  • 15
  • 83
  • 116
3
votes
1 answer

SD over SPI returns invalid response on CMD8

I'm working on an SPI SD driver for an LPC4088 microcontroller. However, when I send CMD8 (after CMD0) to detect if I'm working with a V2 or high capacity card, I get a weird response. Instead of getting a correct response( 0x01 for highest bits,…
Tiddo
  • 6,331
  • 6
  • 52
  • 85
3
votes
1 answer

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->PINSEL1 |= 0b1111 << 18; uart = LPC_UART3; uart->FCR =…
Isvara
  • 3,403
  • 1
  • 28
  • 42
1
2 3
12 13