Page 1 of 1

HCFiler for Cortex M7

Posted: Thu Sep 06, 2018 4:03 pm
by steve64
I have take a quick look at the HCFiler for Cortex M3.
It looks very appealing in bare-metal applications needing to store data
on persistent storage (e.g. from long duration tests).

Should I expect big difficulties in adapting such code to run on Nucleo F767ZI (Cortex M7) ?
Is there already a plan to deploy the equivalent modules for M7 ?
Which are roughly the target-specific aspects anyway ?
Let assume two scenarios: same adaptor (Opus-Two MicroSD Adaptor) or another adaptor.

Re: HCFiler for Cortex M7

Posted: Sun Sep 30, 2018 1:31 pm
by cfbsoftware
We now have a version of HCFiler running on the Nucleo F767ZI (Cortex M7). The main differences are related to the implementation of SPI for the STM32-F767 compared to the STM32-L152. The initialisation of the SPI Control registers for the F767 is:

Code: Select all

SYSTEM.PUT(CR1, {MSTR});
SYSTEM.PUT(CR2, {SSOE, FRXTH});
Other changes included reducing the APB2 clock speed via PPRE2, the APB high-speed prescalar in MCU.mod.

The examples are included in v7.0 of Astrobe for Cortex-M7.

It shouldn't matter which SDHC card adapter you use. The sequence of pins on the Opus-Two adapter is convenient with the pin assignments that we used as five of the six pins are located next to each other. Only the +3V3 pin needed a jumper wire.

Code: Select all

   ------------------------  
    Nucleo-144  SDCard
    ---------   -------
    +3V3        VCC
    GND         Gnd 
    PD14 D10    CS 
    PA7  D11    MOSI1
    PA6  D12    MISO1
    PA5  D13    SCK1
    ------------------------ 

Re: HCFiler for Cortex M7

Posted: Tue Oct 02, 2018 3:16 pm
by steve64
Thanks, will surely take it in consideration for future usage.

Re: HCFiler for Cortex M7

Posted: Tue Apr 02, 2019 7:06 am
by steve64
It's not clear to me how the files written by HCFiler on a Nucleo board are then read back from a Windows PC.
Should I move the SD card from the Nucleo to the PC to use the PC tools ?
Kind regards,
Stefano

Re: HCFiler for Cortex M7

Posted: Tue Apr 02, 2019 10:35 am
by cfbsoftware
Yes, that is correct. If you have an SD card reader on your PC you can use an SD-microSDHC adapter to read a microSDHC card. Otherwise you can insert the micrSDHC card into something like a Sandisk Card Reader plugged into a USB port. We use both of these sorts of adapters.