Search found 608 matches

by SeeCwriter
Tue Sep 16, 2014 4:18 pm
Forum: NetBurner Software
Topic: EEPROM on I2C Bus
Replies: 7
Views: 4127

Re: EEPROM on I2C Bus

Yes, I understand the OSSemPend() will return with a timeout if the timeout time has expired. But there should be no timeout in my implementation. The interrupt handler with detect that no acknowledge was received and set a NO_ACK status and return immediately. No timeout. In that case I will need t...
by SeeCwriter
Tue Sep 16, 2014 1:50 pm
Forum: NetBurner Software
Topic: EEPROM on I2C Bus
Replies: 7
Views: 4127

Re: EEPROM on I2C Bus

Thank you for the extended response. Perhaps I'm not doing this correctly, so I will try to explain how I arrived at my solution. The function I2CStart(), sets up the interrupt handler, commands the I2C peripheral to issue a START, and waits for the bus to go busy, which means the START was successf...
by SeeCwriter
Mon Sep 15, 2014 11:32 am
Forum: NetBurner Software
Topic: EEPROM on I2C Bus
Replies: 7
Views: 4127

EEPROM on I2C Bus

I'm writing a function to write data to a serial EEPROM via i2c on a NANO54415. I see how to write the data with NB library functions. After a write the EEPROM goes into a write-cycle for up to 5ms, during which time it cannot be accessed. Rather than spin for 5ms, I want to use the ACK feature of t...
by SeeCwriter
Fri Sep 12, 2014 9:40 am
Forum: NetBurner Software
Topic: RTC on the NANO
Replies: 1
Views: 1385

RTC on the NANO

The NANO54415 has both rtc.h/cpp and mcf5441x_rtc.h/cpp files. Why are there two, and which pair should be used for RTC?

Steve
by SeeCwriter
Wed Sep 10, 2014 11:41 am
Forum: NetBurner Software
Topic: SPI Chip-Selects
Replies: 5
Views: 3071

Re: SPI Chip-Selects

DOH! That was it. I assumed the CS2 chip-select was an input to the SD card, so it didn't matter.

Any thoughts on whether I need to call DSPIInit() every time I want to change the spi chip-selects?

Thanks.
by SeeCwriter
Tue Sep 09, 2014 8:52 am
Forum: NetBurner Software
Topic: SPI Chip-Selects
Replies: 5
Views: 3071

SPI Chip-Selects

Using a NANO54415. I have multiple devices on the SPI port. The only place I've found to set the chip-selects is through the DSPIInit() function. Do I need to call DSPIInit() before every transfer when all I need to change is the chip-select, or can I just set Command_Mask accordingly before each tr...
by SeeCwriter
Fri Sep 05, 2014 6:06 pm
Forum: NetBurner Software
Topic: SD/MMC Interface Control Pins for Nano54415
Replies: 3
Views: 2657

Re: SD/MMC Interface Control Pins for Nano54415

The examples work fine. But when we move to our hardware I was hoping we could add an SD card carrier to the nano board and use a different SPI port for the card than SPI1 because the docs say that the SD card can't share the SPI bus with any other devices. And we have other SPI devices to connect t...
by SeeCwriter
Fri Sep 05, 2014 11:22 am
Forum: NetBurner Software
Topic: SD/MMC Interface Control Pins for Nano54415
Replies: 3
Views: 2657

SD/MMC Interface Control Pins for Nano54415

The Hardware and Software Guide says the EFFS requires exclusive use of the QSPI interface. Looking through the source code, mmc_mcf.cpp, I see there are two sets of defines for the SPI port to use for EFFS, SPI0 and SPI1, with SPI0 commented out. Since I don't have a schematic of the NANO board, I ...
by SeeCwriter
Fri Jul 25, 2014 2:52 pm
Forum: NetBurner Software
Topic: Sample program EFFS-BASIC
Replies: 4
Views: 2667

Re: Sample program EFFS-BASIC

So, the first time through the program, it works. When I move the start of the while loop in usermain() from just spinning on a 1-second delay to the just before DisplayEffsSpaceStats(), so that it repeatedly runs through the SD card test once a second, it fails. Is that because I have to call f_ent...
by SeeCwriter
Fri Jul 25, 2014 2:31 pm
Forum: NetBurner Software
Topic: Sample program EFFS-BASIC
Replies: 4
Views: 2667

Sample program EFFS-BASIC

I trying to run the EFFS-BASIC sample program on a NANO54415. I'm using v2.6.7 of NBEclipse. I have a 1Gb microSD chip plugged into the microSD socket.

The first library call fails:

rv = f_getfreespace( EXT_FLASH_DRV_NUM, &space );

with error F_ERR_TASKNOTFOUND.

I have no idea what that means.