HCFiler for Cortex M7

General discussions about working with the Astrobe IDE and programming ARM Cortex-M3, M4 and M7 microcontrollers.
Post Reply
steve64
Posts: 41
Joined: Mon Jul 09, 2018 8:56 am
Location: Italy

HCFiler for Cortex M7

Post by steve64 » Thu Sep 06, 2018 4:03 pm

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.

cfbsoftware
Site Admin
Posts: 396
Joined: Fri Dec 31, 2010 12:30 pm
Contact:

Re: HCFiler for Cortex M7

Post by cfbsoftware » Sun Sep 30, 2018 1:31 pm

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
    ------------------------ 

steve64
Posts: 41
Joined: Mon Jul 09, 2018 8:56 am
Location: Italy

Re: HCFiler for Cortex M7

Post by steve64 » Tue Oct 02, 2018 3:16 pm

Thanks, will surely take it in consideration for future usage.

steve64
Posts: 41
Joined: Mon Jul 09, 2018 8:56 am
Location: Italy

Re: HCFiler for Cortex M7

Post by steve64 » Tue Apr 02, 2019 7:06 am

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

cfbsoftware
Site Admin
Posts: 396
Joined: Fri Dec 31, 2010 12:30 pm
Contact:

Re: HCFiler for Cortex M7

Post by cfbsoftware » Tue Apr 02, 2019 10:35 am

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.

Post Reply