Jump to content

Recommended Posts

Posted (edited)

Hi,

I am looking for an example of how to access banksticks on the Core32.

Background is that I have some data stored on a bankstick, which I need to access from MIOS32, so using an SD card instead is not an option for my problem! Also, I do not see too many analogies between the bankstick functions available in MIOS8 and MIOS32, hence my question.

Any input welcome!

Best, ilmenator

Edited by ilmenator
Posted

mios32\trunk\apps\mios32_test\bs_rw_check <- test app

mios32\trunk\apps\tutorials\025_sysex_and_eeprom\ <- demo app

mios32\trunk\apps\synthesizers\nI2S_synth\ <- "real" bankstick action

lol @ your timing :)

MIOS32_IIC_BS_ScanBankSticks scans for banksticks, it queries the actual hardware which is quite slow. MIOS32_IIC_BS_CheckAvailable only gives you the results of that check, and is hence pretty fast. You always need to scan (at least once) before using CheckAvailable.

Posted

Thanks Nils, that should get me going.

Is there any hardware difference between how banksticks are connected to Core8 and Core32? I have this 8x bankstick board from Mike's which works flawlessly on Core8, but does not show any sign of life on Core32 (voltage on the bankstick board is okay).

mios32\trunk\apps\mios32_test\bs_rw_check <- test app

Unfortunately, I cannot use this, as I need to preserve what is contained in the banksticks...

MIOS32_IIC_BS_ScanBankSticks scans for banksticks, it queries the actual hardware which is quite slow. MIOS32_IIC_BS_CheckAvailable only gives you the results of that check, and is hence pretty fast. You always need to scan (at least once) before using CheckAvailable.

Thanks! I thought there was some dependency, but it was not clear to me - now it is!

Posted

The bankstick board is connected to J4, both R7 and R8 on Core32 are soldered in (though they measure 2.02k instead of 2.2k, but that should not be relevant), and "the other end" indeed connects to 5V. I don't think there is any other (optional) pull-up network involved with J4?

Posted

Did you define "#define MIOS32_IIC_BS_NUM 8" in the mios32_config.h?

Lifesaver! I was suspecting serious trouble with my Core32 board, as all other bankstick apps were failing as well, also mios32\trunk\apps\mios32_test\bs_rw_check... although there it was not quite obvious to me whether I was testing banksticks or FRAM:

#define BS_CHECK_USE_FRAM_LAYER 1 returned an error, whereas

#define BS_CHECK_USE_FRAM_LAYER 0 returned success.

The README is a bit unclear about what is what.

Thanks again :flowers: :frantics:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...