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.

PINMUX settings for NOR Flash boot on a TMDXEVM8148 board

Hi

I am trying to write some boot code for the 8148 processor so that it will boot from NOR flash. I have managed to load the image into flash at address 0x08000000 and when i boot the board my code correctly start to run. My program copies some code from the NOR flash to the OCMC ram. This code then tries to set up the PINMUX to enable the remaning address lines 12-27 so that the rest of the NOR flash can be accessed. The problem is i cannot find the correct PINMUX settings for the 8148 board and when i return from the code running in OCMC i cannot see the code in Flash anymore. This is obviously because i have messed up the address lines or GPMC settings somehow.

I have based my code on lowlevel_init.s in uboot but this code seems to be written for the 8168 board and not the 8148 board as the base address of register dont quite match.

Has anyone managed to get the NOR flash boot to work on a 8148 board and if so what PINMUX settings did you use to set the remaining address lines? Did any GPIO's need to be set i have currently set GPIO1 pin 22 as an output pin and driven it low.

(We have also done the hardware mode to the eval board to remove resistors to get the NOR Flash boot to work),.

Thanks

Matt Noakes

 

  • Matthew,

    Have you try to use our pinmux utility for pinmux setting from our TI DM8148 product folder?

    Which mode of GPMC are you using?  Is it Mux mode?  There is an error in Mux code address connection in earlier TRM and it has been corrected in our latest TRM.  Please download and use latest TRM if you are using mux mode.

    Also, it will help if you search for NOR and GPMC in this forum or previous question/response.

    BR,

    Viet

  • Thanks for the response, I have now managed to get the flash boot to work. It turned out it was a mistake in my code and I had the wrong addresses defined for the GMPC config registers 1-7!

  • Hi Matthew,

    I'm trying to make gpio1[14] pull up/down on my board based on dm8148 evm,

    but somehow it just doesn't work.

    I've tried to write 0x0060 0080 register(0x4814 09AC) for pull high in u-boot, 0x00400080 for pull down,

    am I have done something wrong??

    Can you solve my problem, please~

    Thank you.