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.

AM1808 SPL BOOT in NAND FLASH

Other Parts Discussed in Thread: AM1808, CODECOMPOSER, CCSTUDIO, OMAP-L138, OMAPL138

Hello,

 

i have a customer using AM1808EVM, that wants to flash SPL boot Stage in Nand Flash, customer is using last CCSV5.1 version, but it is not possible to load Nand project (in Host-tools folder) in this CCS version. I miss documentation in AM180x family to flash SPL in Nand. Will SDK 5.03 support AM180x SPL nand flashing using CCS5.1?. When will SDK5.03 be released?. Any documentation you can provide me about this subject will be welcomed

 

Many thanks in advance

  • I'm not sure when the next version will be released, but what error are you seeing?

    One thing I would check before importing the project would be the "CPUFamily" setting in the CCS project file (you can edit it in a text editor). Make sure it is all capital as follows:

    CPUFamily=TMS470R2X

    Some earlier versions had a lower case "x" which caused problems when importing. Same for the DSP projecet.

    Jeff

  • 1768.flaswriter_OMAPL138.pdf

    Hello,

     

    the problem is that customer is trying to follow the instructions based in the document that i attach you, and it looks that the document is wrong or it is not updated. If you go to Pg.2 for PSP 03.21.xx.xx Source Code Releases and you download them, you cannot find the nand flash writer.out in any folder. If you download the AM1808 SDK 5.02 (last SDK release), under Host-tools you can find the nand flash writer.out, but it is based in a project using CodeComposer V3.3!!!. Pls. which code composer version customer should use to flash UBL and u-boot and where customer can download the flash writer that matchs with that CCS version?

    http://processors.wiki.ti.com/index.php/GSG:_DA8x/OMAP-L1/AM1x_DVEVM_Additional_Procedures

     

    Thanks

  • Here is the link to the latest PSP release. Contained in here is a flash util directort. I have not tried it yet but I will tomorrow and post here after testing the nand writer in here with the CCS 5.01

    http://software-dl.ti.com/dsps/dsps_public_sw/psp/LinuxPSP/DaVinci_03_21/03_21_00_04/index_FDS.html

     

  • Thanks a lot, i wait for your news!!.

    Customer is using last CCS5.1 version, it would be great if you could also test with this last version. I was trying to do a target connection with CCSv5.1 and AM1808 eval board but without success, maybe you could give some indications to get connected!

     

    Thanks in advance

  • I was able to use the 5.1 CCS and the PSP drop mention earlier and build the nandwriter project. I pretty much followed this instructions:

    • For 03.21.xx.xx Releases:
    1. Extract the NAND flash writer code from src/boot-strap/flash-utils-#.#.#.#.tar.gz file in PSP installation.
    2. Start CCStudio v5. From the menus, choose File->Import. Choose CCS->Existing CCS/CCE Eclipse Project.
    3. Browse to the the extracted source directory, select the NANDWriter_ARM directory where the ccsv5 project resides.
    4. From the menus, choose Project->Build Project. The built image NANDWriter_OMAP-L138.out is placed in the /src/boot-strap/flash-utils-#.#.#.#/OMAP-L138/CCS/NANDWriter/Debug/ under the top directory.

    Which I got from this link:

    http://processors.wiki.ti.com/index.php/GSG:_Building_Software_Components_for_OMAP-L1#Rebuilding_the_NAND_Flash_writer

    What type of emulator is the customer using? XDS 100, XDS560?

     

  • Hello,

    Thanks for your fast reply. I have also build the NandWriter with CCSv5.1. The problem is that i cannot connect (debug) the AM1808EVM. I tried to get a new connection using the GEL file from LogicPD, but without success, pls. could you help me with this point?. Customer and I are using XDS100.

    Thanks in advance

  • I was able to connect to the AM1808 Logic EVM with an XDS560. I am able to load the Nandwriter project and step through code. I had to load the GEL file manually, it was not run automatlically on connect for some reason. When you say that you cannot connect or debug, is this with the EVM?  Are you able to the load the code?

  • Hello Schuyler,

    I created the target configuration (.ccxml) for Am1808 and now i can connect and debug in the AM1808EVM, i am using the XDS100V2 and CCSv5.1 under linux. I can load the NANDWriter_OMAPL138.out and also run, but now it is coming the strange matter. If i have pin 5 and 8 on in the S7 switch (configuration to connect with emulator) and run NANDWriter_OMAPL138.out i get this message: [ARM9_0] Starting OMAP-L138 NANDWriter, it looks that it has been suspended. Now i change the switch to NAND boot mode, pin5 on and he rest off in the S7, and OMAP-L138 NANDWriter is working properly!!!!!! asking me for ubl and u-boot, and i can flash the NAND Flash and later boot from it. Of course this is not the expected S7 configuration to flash the NAND.....Pls could you try to do the same with CCSV5.1, XDS100V2, and AM1808EVM and give me your feedback?

    the customer and I are really desperated with this subject, and we do not know who can help us with this.

     

    Thanks in advance

  • Hi Alberto,

    Some initial feedback is that I usually put a board in serial boot mode (S7 - 7and 8 on) the processor will halt just spinning in ROM, though that's been my experience with other processors. I will try the method you used and let you know. Is your concern what mode the processor is in when you try to connect?

  • Hello Schuyler.

    The main´s customer concern is to flash the NAND in AM1808EVM using CCSv5.1 and XDS100v2, as i told you i have got it with a different switch configuration (NAND flash boot) but not with the the debug one, what really concerns to me

    Many thanks for your help

  • Hi Alberto,

    I was able to connect with the CCSv5.1 and XDS100v2. I was able to connect to the AM1808 EVM when it was in both emulator and Serial boot mode several times. One thing I noticed  was that if I set the EMIFA pin mux to nand before setting the Clock and DDR setting with the GEL file was that it would not see the nand, in fact it jumped to a bad address.  The steps I'm performing are:  initiate debug session, my project is the nandwriter, the binary get loaded on connect. I then run the GEL set system clock and DDR ( the first one listed under scripts/frequency settings/core 300 DDR 132Mhz. Then I run the GEL under scripts/Full EVM/EMIFA_NAND_PINMUX and then I run the nandwriter program.

    Is the customer able to get the board working the same way you are with the nand boot mode set?

  • Thanks a lot Schuyler,

    It is working now following your recommendations. I really apprecciate your help!!

    Best Regards

    Alberto