Hello,
I am working with a legacy code that has included some drivers for the LPC1519. Some of these drivers have been modified over the years as the programing method used has changed in style. All of these drivers mostly translate the new LPCOpen library by using the API and the defines associated with each peripheral to configure them. There is one peripheral however that is not present in the LPCOpen library, that is the CAN. The previous API/Drivers my code was using was referencing the same memory address that is defined for the base address of LPC_C_CAN0_BASE. The LPCOpen library does however include reference to the ROM based API for CAN. Even the Documentation (UM10736) references the peripheral and its register addresses. There are also example codes using this.
Is this peripheral driver deprecated for any reason in particular? Should I be using the ROM based API? Can utilizing the same driver as the code was using before (given it's the same memory address) cause conflicts or unforeseen issues?
Best regards,
SG
Hello @stephendgb
Sorry I'm not sure the legacy driver, recommend use CAN API under LPCopen.
BR
Alice
Hi
Some Years ago (2017) I had the same problem, after test's using the ROM API with no sucess (I'm using FreeRTOS). I decided to update to the latest LPCOpen version (2.20?) and adding manually the CCAN driver from a older version (this older version seems to be no longer available for download!, I’m using MCUXpresso/LPCXpresso).
If You are interested in the ccan_15xx.c / ccan_15xx.h file's I can upload then.
best regards
Martin
Hi Martin,
Yes, these are the drivers I am looking for. Mine seem to be modified from their original version and I don't want to speculate or start from a position where I use botched drivers. I have been able to see some drivers that I recognize in uVision from ARM by downloading the CMSIS-DFP Pack. But I can't access all of them there. Namely the CAN one. Could you please upload the version you have?
It's a shame these older drivers are not easy to find.
Best regards,
SG
Thank you Martin !!
Hi Alice,
Honestly, it's not clear to me where these drivers came from fully. However, the descriptor of the chip is a generated file name LPC15xx.h (included). On the top of this file, it mentions that it was created in 2012 using SFDGen. I belive these might be of CMSIS drivers on Keil that I could find but maybe an older version. I am not sure if it was copied over exactly from here.
The drivers/API for the peripherals are in the similar style as those of the LPCOpen in terms of functionality with some clear modifications that have been made by some previous developers that worked on this code.
Best regards,
SG