SPIFI setup for LPC1800/4300 using LPCXpresso 6, running on LPCXplorer board

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SPIFI setup for LPC1800/4300 using LPCXpresso 6, running on LPCXplorer board

804件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bavarian on Mon Jan 13 05:37:26 MST 2014
Here are two projects for LPC1800 and for LPC4300 which use the SPIFI library under LPCXpresso 6.

- import the files into the workspace and make a 'Build all'
- SPIFI libraries compile without error under GCC
- Code runs from SPIFI, using the LPC1830/4330 LPCXplorer board
- function spifi_init(...) is used to initialize the SPIFI
- SPIFI speed is set to 90MHz
- some data is programmed into the qSPI
- after a successful SPIFI write the application runs into a blinky loop

Further notes:
- the code example uses the libraries coming with LPCXpresso, these are different to the new structure from LPCOpen. These libs are a little bit outdated and will not be maintained anymore.
- if you are doing any new code development, then you should consider to port the SPIFI setup from this example into the current LPCOpen platform
- NXP will add a SPIFI setup in one of the next LPCOpen releases for LPC1800/4300


Regards
NXP Support Team

Original Attachment has been moved to: LPC18xx_SPIFI_LPCXpresso6_0.zip

Original Attachment has been moved to: LPC43xx_SPIFI_LPCXpresso6_0.zip

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

730件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by krhodesnb on Sun Feb 23 06:40:12 MST 2014
In case it helps anyone else, I successfully used the redlib version in a newlib build. You have to resolve the redlib version of memcpy, with the following:

// this is put here because the spifi_flash library is built with Redlib, not Newlib.
//  This means that we must satisfy the linker by providing the redlib version of the memcpy
//  function of Redlib
unsigned char * __aeabi_memcpy4(unsigned char *dest, unsigned char *src, int len)
{
return(memcpy(dest, src, len));
}

Once you do this, the project builds and can successfully program the SPIFI-based flash.
0 件の賞賛
返信

730件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by krhodesnb on Tue Feb 18 14:27:31 MST 2014
I am trying to use the provided library in an existing project. Unfortunately, I get linker errors, because my project must use NEWLIB and not REDLIB. It also isn't obvious, but this library requires you to remove a linker warning (--no-wchar-size-warning) or you get warnings.

The library was built for REDLIB. Can you provide a version built for NEWLIB?

Also, why can't you provide source to this library? Are you limited by some licensing agreement?

If you can't provide source, you should provide all the standard builds that your own tool supports (LPCXpresso)

Thank you...Keith Rhodes
0 件の賞賛
返信