It's from the MLA USB Data Logger project. I'm simply embedding my routine within the "app_host_msd_data_logger.c" file after the drive is mounted. Here's an interesting point. I got to thinking about the true and false attributes. I moved things around and collected a 0 response (no error) with true and a 0x1 response (erase failed) with false. The return value is a #typedef enum I included a snip of it. This is all really squirly. I can't find anywhere the "false" attribute is being used in any of the MLA projects (I've looked). I'm also struggling to find the FILEIO_LongFileNameGet Function().
////// header declaration
FILEIO_ERROR_NONE = 0, // No error
FILEIO_ERROR_ERASE_FAIL, // An erase failed
FILEIO_ERROR_NOT_PRESENT, // No device was present
if (FILEIO_Find("*.BDG", FILEIO_ATTRIBUTE_MASK, &SearchResult1, true) == FILEIO_ERROR_NONE)
for (Transfer=0; Transfer<File_Name_Length; Transfer++)
Sound.call_1[Transfer] = SearchResult1.shortFileName[Transfer];
BP1 - deviceAddress = FILEIO_Find("*.BDG", FILEIO_ATTRIBUTE_MASK, &SearchResult2, false);
I'm thinking at this point, since I don't have a ton invested, I transfer over to one of the other USB host projects with this same simple test. That way I'm starting with a known good environment. I just think I've hit the atomic level of the issue, an API I didn't create isn't working. The BP challenges I saw earlier seem like they may be scope based coupled with this wonkey issue.
post edited by BumpSplat - 2018/01/17 23:16:25