SPI example trouble

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,291件の閲覧回数
gsanchez
Contributor III

Hi folks, I have this question:

I'm trying to test a board with Kinetis K60, PN: MK60DX256ZVLQ10; and I'm having problems with the "SPI polled" example for MQX (spi_twrk60n512). This is, I cannot write the "SPI memory" which is referenced in the example. The following is the output when I debug the project:

Enable write latch in memory ... OK

Read memory status ... 0x00

Write byte to location 0x000000f0 in memory ... 0xba

Read memory status ... 0x00

Read byte from location 0x000000f0 in memory ... 0x00

Byte test ... ERROR

Getting statistics:

Interrupts:   0

Rx packets:   8

Rx overflow:  0

Tx packets:   33

Tx aborts :   0

Tx underflow: 0

I think this can be because my K60 doesn't have the same memory map of the MCU in Tower Kit. I look in the RM and in the datasheet, and I cannot found the memory map referenced in this example, with the purpose to change the address values in the example. Please, can anybody help me to find it?

Thanks for your help, and sorry about my english.

Kind regards.

0 件の賞賛
返信
1 解決策
949件の閲覧回数
gsanchez
Contributor III

Well, I found the answer:

Tower K60N512 Kit does not have EEPROM memory, and if you want to run the example there, it should not execute properly. Tower K60N512 have the SPI2 bus mapped in external connector (J5 in main board), just to put your EEPROM there.

I want to know if anyone could use the SPI driver properly, or if there are another example.

Thanks a lot.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
950件の閲覧回数
gsanchez
Contributor III

Well, I found the answer:

Tower K60N512 Kit does not have EEPROM memory, and if you want to run the example there, it should not execute properly. Tower K60N512 have the SPI2 bus mapped in external connector (J5 in main board), just to put your EEPROM there.

I want to know if anyone could use the SPI driver properly, or if there are another example.

Thanks a lot.

0 件の賞賛
返信