This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Experts,
I have custom board of AM2434, where i am establishing connection with FLASH.
I have followed these 2 reference for it
According to the 2nd reference,
Hi Dominik,
Did you do all the steps listed in file: AM243x MCU+ SDK: Writing flash driver for a custom flash device?
There are several files need to be changed:
makefile.{soc}.{core}.ti-arm-clang under FILES_common
The flash sysconfig also should be updated so that later in examples the flash can be selected appropriately. For this open the /source/board/.meta/flash/flash_{soc}.syscfg.js
file. The object flash_devices
will have a number of entries corresponding to the currently supported flashes. Add a new entry corresponding the new flash.
You will also need to re-build all the libraries by executing "gmake -f makefile.am243x libs" at the top level of the MCU+ SDK
for example: C:\ti\mcu_plus_sdk_am243x_08_02_00_31
Confirm that the files build and the new flash device is selectable in sysconfig. We can now update the files according to the new flash device.
Update the example.syscfg of the ospi_flash_io
example OSPI Flash IO using SysConfig GUI to select the new flash device you have added.
I am unable to build this command "gmake -f makefile.am243x libs" from command prompt
I am getting following error
and during compiling code in CCS, getting following error
I have edited following files
Please help me out to establish communication with custom flash.
--
Thanks & Regards,
Divyesh Patel
Hi Expert,
Now i am able to add custom FLASH file and compile the code.
But after debugging, getting following error as there may be some issue in the device source file.
and my FLASH is NAND, so do i need to do extra changes for that?
--
Thanks & Regards,
Divyesh Patel
Hi Divyesh,
I have assigned this thread to our Flash expert, please expect a delay in response due to weekend.
Thanks
Hi Divyesh Patel,
Did you try moving to latest SDK release. The SDK became very intuitive with custom flash integration. This will help you bring-up your device better.
Best Regards,
Aakash
Hi Aakash,
I tried with SDK 08.06.00.43 and have CCS1200 version.
getting following error
then i changed CCS1210 to CCS1200 from imports.mak file, but still getting error
and in the "C:\ti\mcu_plus_sdk_am243x_08_01_00_36\source\board\flash" folder i didn't found any flash_nor_xspi_device_S28HS512T.c source file
but found .json file, in the path of "C:\ti\mcu_plus_sdk_am243x_08_06_00_43\source\board\.meta\flash"
So i have two query with the reference of new SDK
Please help me out, waiting for your support.
--
Thanks & Regards,
Divyesh Patel
Hi Divyesh,
Why i am unable to run make command? what wrong is there?
Please check the imports.mak file in your root folder of the SDK. All the paths should be correctly configured.
If its windows, the command should be gmake.
Best Regards,
Aakash
Hi Akash,
Please check the imports.mak file in your root folder of the SDK. All the paths should be correctly configured.
Yes, its verified.
If its windows, the command should be gmake.
Previously also tried with gmake, but getting following error.
--
Thanks & Regards,
Divyesh Patel
Hi,
Did you follow this page - https://software-dl.ti.com/mcu-plus-sdk/esd/AM243X/latest/exports/docs/api_guide_am243x/MAKEFILE_BUILD_PAGE.html
Best Regards,
Aakash
Hi Akash,
yes, tried with that also
Again same error.
Looks like some path is not proper, i have checked imports.mak and make file for it.
Is there any other file? to build library which is improper.
--
Thanks & Regards,
Divyesh Patel
Hi Akash,
Now i am able to compile project with CCS12.1.0.
What is the next step to add custom file parameters?
--
Thanks & Regards,
Divyesh Patel
Hi Akash,
How to add custom FLASH file in new SDK, is it same as"">software-dl.ti.com/.../CUSTOM_FLASH_SUPPORT_GUIDE.html" or need to add .json file
I want to add custom FLASH specification and want to establish communication.
Again i am getting make building error
-
Thanks & Regards,
Divyesh Patel
Hi Divyesh,
We have an FAQ which tells in detail how to integrate the custom flash (MX25Ux). This might be a good starting point irrespective of the flash part as this educates a lot about how and what are the different changes required in the respective modes. Although it depends on the flash vendor configurations but this will really unblock you on various things.
Please do go through this FAQ.
Best Regards,
Aakash
Hi Aakash,
Thank you so much for your support.
I will work on it and give you the feedback.
--
Thanks & Regards,
Divyesh Patel
Hi Aakash,
Yes, I have installed openssl.
But facing issue with SBL DFU.
--
Thanks & Regards,
Divyesh Patel
Hi,
But facing issue with SBL DFU.
Which example are you using ? Is this -
OR
BR,
Aakash
Hi Aakash,
I am referring both, but before that i tried this one.
In that i am not getting anything on "df-util -l" command and even not able to detect in the device manager.
I have verified the USB port the connection and tried with different cable also.
With the same cable and system setting i am getting device with Evalaution board but not with custom board.
Please help me out.
--
Thanks & Regards,
Divyesh Patel
Hi Divyesh,
So can you try USB example of CDC to verify if there is anything wrong with the USB connectivity on the board or not ?
Best Regards,
Aakash
Hi Aakash,
There was an issue with controller alignment.
Now its solder properly, after that i am able to detect DFU mode.
Now i have an issue with byte size in system configuration file.
I am using MT29F2G01ABAGDWB NAND FLASH, which is 2GB
Please help me out.
--
Thanks & Regards,
Divyesh Patel
Hi Aakash,
Memory organization of my FLASH is
– Page size x1: 2176 bytes (2048 + 128 bytes)
– Block size: 64 pages (128K + 8K bytes)
– Plane size: 2Gb (2 planes, 1024 blocks per plane)
With that I am facing so many limitations with the system config file.
PFA image
Please help me out.
--
Thanks & Regards,
Divyesh Patel
Hi Divyesh,
Memory organization of my FLASH is
– Page size x1: 2176 bytes (2048 + 128 bytes)
– Block size: 64 pages (128K + 8K bytes)
– Plane size: 2Gb (2 planes, 1024 blocks per plane)With that I am facing so many limitations with the system config file.
The flash that you are using is a NAND Flash. The driver currently only supports NOR Flash. Although the controller IP can support both.
Best Regards,
Aakash
Hi Akash,
Thank you so much for your support.
Although the controller IP can support both
Could you please guide me with that?
--
Thanks & Regards,
Divyesh Patel
Hi Divyesh Patel,
We have not planned NAND Flash Integration for AM243x device. Can you raise this as an concern to your TI Representative ? Once we have a formal request, we will plan align internally over the same.
Best Regards,
Aakash
Hi Aakash,
Thank you for your suggestion.
I will request for NAND FLASH.
--
Thanks & Regards,
Divyesh Patel