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.

Booting issues via SPI1 connected external Flash

Other Parts Discussed in Thread: OMAP-L138

Hi all,

 

Iam trying to get our customized hardware to run. The board has an OMAP-L138 on it and a SPI1 connected external flash.

The steps I've done so far:

* Compiled a simple hello world program which shall toggle a pin (located in IRAM).

* Created the AIS binary boot image according to the bootloader pdf sprab41d.pdf

* flashed the boot image at address 0 into the external SPI1 flash, read it back and compared it to the generated one (it  should be equal).

 

Now if a reset happens the omap rom code seems to read out the whole image from SPI1 flash (I can see this via a SPI logic analyzer) but doesn't start the application.

 

This is only the simple case: My final goal is to get an application working which is located in an external SRAM (connected to EMIFA). This already runs using the gel file and JTAG emulator. For this I also have to configure PSCs, PINMUXs and SDRAM within the AISgen tool for the bootloader image. This is the next step. I've tried it before but than the omap rom code aborts on the stage where it configures the PSC controller (I can also see this via the SPI logic analyzer Iam using) because the SPI communication then just interrupts nearly at the image offset where the PSC configuration is located.

 

Can you help me on this issue? I've attached my AISgen cfg for the both (simple and final) cases. If you need additional information please let me know.

 

Thanks for your help.

 

Kind Regards,

Steve

3857.simple.cfg.txt
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Boot Mode=SPI0 Flash
Boot Speed=2
Flash Width=0
Flash Timing=3ffffffc
Configure Peripheral=True
Configure PLL0=True
Configure SDRAM=False
Configure PLL1=False
Configure DDR2=False
Configure LPSC=False
Configure Pinmux=False
Enable CRC=False
Specify Entrypoint=False
Enable Sequential Read=False
Use 4.5 Clock Divider=False
Use DDR2 Direct Clock=False
Use mDDR=True
ROM ID=2
Device Type=1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

0361.final.cfg.txt
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Boot Mode=SPI0 Flash
Boot Speed=2
Flash Width=0
Flash Timing=3ffffffc
Configure Peripheral=True
Configure PLL0=True
Configure SDRAM=True
Configure PLL1=False
Configure DDR2=False
Configure LPSC=True
Configure Pinmux=True
Enable CRC=False
Specify Entrypoint=False
Enable Sequential Read=False
Use 4.5 Clock Divider=False
Use DDR2 Direct Clock=False
Use mDDR=True
ROM ID=2
Device Type=1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX