Search found 13 matches

by marcinj7
Mon Nov 24, 2014 12:20 am
Forum: LPC Support
Topic: lpc4357 SPI
Replies: 2
Views: 2269

Re: lpc4357 SPI

Hi

Try change last value to 12 or something, this should help.

Code: Select all

const SPIConfig spi1_config = {
    NULL,
    7,
    19,
    CR0_DSS8BIT | CR0_FRFSPI | CR0_CPOL | CR0_CPHA,
    1000000 // <- this value is prescaler, even value between 2 and 254
  } ;
by marcinj7
Sun Oct 19, 2014 12:22 pm
Forum: LPC Support
Topic: Demo project for LPC43xx, problem
Replies: 9
Views: 4778

Re: Demo project for LPC43xx, problem

Hi,

In makefile you need to change

Code: Select all

# LPC43xx boot select: ram, spifi_flash_debug, flash.
ifeq ($(LPC_BOOT_SELECT),)
  LPC_BOOT_SELECT = ram
endif


to

Code: Select all

# LPC43xx boot select: ram, spifi_flash_debug, flash.
ifeq ($(LPC_BOOT_SELECT),)
  LPC_BOOT_SELECT = flash
endif
by marcinj7
Thu Jan 23, 2014 7:06 pm
Forum: LPC Support
Topic: LPC17xx HAL_LLD, GPT, PAL, RTC, SERIAL drivers
Replies: 6
Views: 4860

Re: LPC17xx HAL_LLD, GPT, PAL, RTC, SERIAL drivers

Update Available drivers: adc -> dma only support 1 adc channel dac dma serial -> not supported dma spi -> not supported dma i2c pal rtc -> not supported counter increment interrupt mac gpt Demos: EA LPCXpresso LPC1769 EA LPCXpresso LPC1769 LWIP Code is now available on my git repository: https://gi...
by marcinj7
Thu Aug 15, 2013 3:05 pm
Forum: LPC Support
Topic: LPC1769 using LPCXpresso IDE
Replies: 23
Views: 12448

Re: LPC1769 using LPCXpresso IDE

I've finished writing hal_lld and rtc driver, tested on LPC1766. If someone is interested I can upload it to forum. I would be interested, upload it here or even better, github? Code is available in the topic: LPC17xx HAL_LLD, GPT, PAL, RTC, SERIAL drivers http://forum.chibios.org/phpbb/viewtopic.p...
by marcinj7
Mon Jul 08, 2013 9:22 pm
Forum: LPC Support
Topic: LPC122x Port (Olimex LPC-P1227 board)
Replies: 5
Views: 4442

Re: LPC122x Port (Olimex LPC-P1227 board)

New drivers for LPC122x:
ADC - dma mode only support one selected channel,
all channels could be selected in interrupt mode
DMA - dma work with adc and memory to memory transfers

Testhal for ADC, ADC_DMA, DMA_MEM memory transfer.
Few changes in hall_lld.c, hall_lld.h to support DMA.
by marcinj7
Wed Jun 12, 2013 8:27 am
Forum: LPC Support
Topic: LPC17xx HAL_LLD, GPT, PAL, RTC, SERIAL drivers
Replies: 6
Views: 4860

LPC17xx HAL_LLD, GPT, PAL, RTC, SERIAL drivers

Hi,

Zip file contain LPC17xx drivers:
hal_lld
gpt
pal
rtc - not supported counter increment interrupt
serial - only uart0, not supported dma

Testhall for rtc and irq_storm.
I've made some changes in chrtclib.c for LPC17xx RTC.
Tested on LPC1766.
by marcinj7
Tue Jun 11, 2013 7:06 pm
Forum: LPC Support
Topic: LPC1769 using LPCXpresso IDE
Replies: 23
Views: 12448

Re: LPC1769 using LPCXpresso IDE

I've finished writing hal_lld and rtc driver, tested on LPC1766. If someone is interested I can upload it to forum.
by marcinj7
Mon Jun 03, 2013 7:50 am
Forum: LPC Support
Topic: LPC11xx I2C, PWM, EXT driver
Replies: 4
Views: 3553

Re: LPC11xx I2C, PWM, EXT driver

Ok, but some comments in testhal examples are wrong. I've forgotten to change them.
by marcinj7
Sun Jun 02, 2013 10:31 am
Forum: LPC Support
Topic: LPC11Cxx with CANopen?
Replies: 9
Views: 6044

Re: LPC11Cxx with CANopen?

Hi,

I think than the irq handler

Code: Select all

void CAN_IRQHandler (void)
{
  (*rom)->pCAND->isr();
}

is not connected with vector table.
Check file os/ports/GCC/ARMCMx/LPC11xx/vectors.c
Try this:

Code: Select all

CH_IRQ_HANDLER(Vector74)  {
 
  CH_IRQ_PROLOGUE();
  (*rom)->pCAND->isr();
  CH_IRQ_EPILOGUE();
}
by marcinj7
Thu May 30, 2013 11:24 am
Forum: LPC Support
Topic: LPC122x Port (Olimex LPC-P1227 board)
Replies: 5
Views: 4442

Re: LPC122x Port (Olimex LPC-P1227 board)

Hi,

New drivers for LPC122x:
I2C - only master mode support
EXT
PWM - 2 channels for each timer
RTC - don't support 10kHz input clock, only 1Hz

Testhal for RTC, EXT and PWM driver.
I've made few changes in chrtclib.c to support LPC122x RTC driver.

Go to advanced search