Hi
I am working on Kinetis K82P121M150SF5RM based TWR-POS-K81 board with N25Q256A, while reading the status/ReadID/Configuration register in extended SPI mode, the K82 QuadSPI module seems to skip a bit
for example
while reading ReadID from N25Q256A the expected bytes are 20 BA 19 10 ...
but the actual bytes I am receiving are 10 5D 08 (it is off by a bit)
Is there anything I am missing?
The TWR-POS-K81 seems to be very flaky. sometimes the data seems to be receiving from the N25Q256A allright and the very next iteration, I see all junk coming for the same command like ReadID or read Status Register.
Any thoughts or insights on this will be great help
thanks
Krishna
Hi Krishna,
How did you initialize the qspi module? Would you please share some code or register dump for it? Thanks for your patience!
Have a great day,
Kan
NXP Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Kan
Download the below development software from these links if you don't
allready have them.
1. Kinetis Build Environment (KDS 3.0)
(Kinetis Design Studio installer for Microsoft Windows 3.0.0)
Use the link below to dwnload Kinetis Design Studio
2.Download the Kinetis SDK 1.3.0
(Kinetis SDK 1.3.0 Mainline - Windows)
3.Download the "Kinetis SDK 1.3.0 Standalone for the FRDM-K82F - Windows"
https://nxp.flexnetoperations.com/control/frse/download?agree=Accept&element=6912747
After installing 1 & 2 in directory C:\Freescale
Unzip #3 to KSDK_1.3.1
After the above steps
Open KDS (Kinetis Design Studio)
1. Load Project "ksdk_platform_lib_K82F25615"
Goto "File"->"Ïmport" dialog
Under "General" select "Existing Projects Into Workspace" Press "Next"
"Select Root Directory" Browse and select
"C:\Freescale\KSDK_1.3.1\lib\ksdk_platform_lib\kds\K82F25615"
2. Load Project "qspi_example_frdmk82f"
Goto "File"->"Ïmport" dialog
Under "General" select "Existing Projects Into Workspace" Press "Next"
"Select Root Directory" Browse and select
"C:\Freescale\KSDK_1.3.1\examples\frdmk82f\driver_examples\qspi\kds"
Using "Project Explorer" (Top Left Corner)
Right click on the "ksdk_platform_lib_K82F25615" and select "Build Project"
next step Right click on the "qspi_example_frdmk82f" and select "Build
Project"
Verify if you have a "qspi_example_frdmk82f.elf" under directory
"C:\Freescale\KSDK_1.3.1\examples\frdmk82f\driver_examples\qspi\kds\debug"
The Qspi driver examples are in the
"C:\Freescale\KSDK_1.3.1\examples\frdmk82f\driver_examples\qspi\main.c"
If you have a debugger (ours is a j-Link debugger) and a Freescale board,
we have TWR-POS-K81, one can download and debug/go through the code
let me know if you have any issues (the above example code should work with
some limitations)
regards
Krishna
On Tue, Feb 2, 2016 at 8:43 AM, Kan_Li <admin@community.freescale.com>
Hi Krishna,
I have checked with the KSDK team, the board TWR-POS-K81 has different external flash from what on FRDM-K82F, so To run the qspi example, all flash command is different and shall be changed. Also the UART port and other board settings need to be changed. but we also provide a special KSDK software package for it, which is just available for customers under NDA, please contact your local DFAE for assistance on NDA issue. Please kindly refer to Distributor Network|NXP for more details.
Hope that helps,
Have a great day,
Kan
NXP Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Kan
Thanks a lot for the response
we were intimated by our client about the special package for TWR-POS-K81
board, and our company is currently engaged with NXP/Freescale in getting
those formalities done.
Thanks again
regards
Krishna
On Thu, Feb 18, 2016 at 7:39 AM, Kan_Li <admin@community.freescale.com>