Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
597 Views

How to access multiple SPI slaves flash in C3558

CPU: Intel Denverton C3558

 

There are two SPI flashs in our DUT. One is a bootflash(16M) connected SPI_CS_N[0] and another flash(32M) is connected to SPI_CS_N[1].

The bootflash is detected in Linux.

We want to direct access such as read/write CS1 flash.

We had set FLA(BIOS_FADDR) to more than 16mb such as 0x3000000 and expect SPI chip select will switch to 1(SPI_CS_N[1] to low).

But SPI_CS_N[1] pin is still measured high.

 

We also try to use intel-spi driver to access second flash(32m), but it still failed.

We use intel_spi_write & intel_spi_read and set offset more than first flash(0x1500000 or 0x2500000...etc.).

 

Could you help us and how to operate register can access the second SPI slave flash?

Thank.

 

BRs,

Allen

0 Kudos
11 Replies
Highlighted
Moderator
87 Views

Hello, @EHuan​:

 

Thank you for contacting Intel Embedded Community.

 

Could you please tell us if the affected designs have been designed by you or by a third-party company? In case that they are third-party units please give the part number, model, name of the manufacturer, where it is stated the information related to it. In case that it is your design, could you please clarify it has been reviewed by Intel and the sources that you have used to develop it?

 

By the way, could you please let us know the Operating System and tools that have used to detect this situation?

 

We are waiting for your reply.

 

Best regards,

@Mæcenas_INTEL​.

0 Kudos
Highlighted
Beginner
87 Views

​Hi Maecensa,

 

Our product model is Nanook and its layout had been reviewed by Intel.

 

The OS is pure Linux and uses devmem to access memory mapping.

We also modified intel-spi driver and it can't read/write the second flash.

Below is error log:

intel-spi 0000:00:1f.5: w25q128 (16384 Kbytes)

Creating 1 MTD partitions on "0000:00:1f.5":

0x000000000000-0x000001000000 : "BIOS"

intel-spi 0000:00:1f.5: read error: 1500000: 0x9006003

intel-spi 0000:00:1f.5: write error: 1500000: 0x9046003

Thanks.

 

BRs,

Allen

0 Kudos
Highlighted
Moderator
87 Views

Hello, @EHuan​ :

 

Thanks for your update.

 

In order top help you, we have contacted via email.

 

Best regards,

@Mæcenas_INTEL​.

0 Kudos
Highlighted
Beginner
87 Views

​Hi Maecensa,

 

I have been sent my company email to you.

Thanks.

 

BRs,

Allen

0 Kudos
Highlighted
Moderator
87 Views

Hello, @EHuan​:

 

Thanks for your reply.

 

The email has been sent to the email address related to the profile of this forum.

 

Best regards,

@Mæcenas_INTEL​.

0 Kudos
Highlighted
Beginner
87 Views

​Hi Maecenas,

 

Do you mean that information sent to EricTL_Huang@pegatroncorp.com?

Thanks.

 

BRs,

Allen

0 Kudos
Highlighted
Moderator
87 Views

Hello, @EHuan​:

 

Thanks for your reply.

 

Yes, the email has been sent to the email address cited on your previous message.

 

Best regards,

@Mæcenas_INTEL​.

0 Kudos
Highlighted
Beginner
87 Views

Hi Maecensa,

 

I haven't received any email.

Could you please sent again? I send another mail address to you.

Thanks.

 

BRs,

Allen

0 Kudos
Highlighted
Moderator
87 Views

Hello, @EHuan​:

 

Thanks for your update.

 

Following your previous request, we have sent again the previous communication to the address related to the profile of this forum.

 

Please review the spam and undesired boxes of your email address related to your forum account to avoid any inconvenience.

 

The subject of this email is the following: EDC Forum 19090501 ~ How to access multiple SPI slaves flash in C3558

 

Best regards,

@Mæcenas_INTEL​.

0 Kudos
Highlighted
Beginner
87 Views

​Hi Maecenas,

 

 

I'm sorry, but I don't receive any related mails in my two emails :( .

Updated the latest info.

 

We modified intel-spi driver and set the first spi flash address is 0x1000000(16mb).

When we remove module and insert module again, Linux will get the second flash(only it).

But its size only 4mb and can't read/write any physical address.

Could you have any suggestions?

Thanks.

 

 

 

BRs,

Allen

 

 

 

 

0 Kudos
Highlighted
Moderator
87 Views

Hello, @EHuan​:

 

Thanks for your reply.

 

We have sent the communication to the channel that you have used to send your company email, please review it.

 

Best regards,

@Mæcenas_INTEL​.

0 Kudos