HCFiler for Cortex M7

General discussions about working with the Astrobe IDE and programming ARM Cortex-M3, M4 and M7 microcontrollers.

HCFiler for Cortex M7

Postby 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.
steve64
 
Posts: 36
Joined: Mon Jul 09, 2018 8:56 am
Location: Italy

Re: HCFiler for Cortex M7

Postby 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 will be included in the next feature release of Astrobe for Cortex-M7. Pre-release copies of the source code can be obtained by registered users of the current (Sep 2018) v6.4.3 release of Astrobe for Cortex-M7 on request to Technical Support.

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
    ------------------------
cfbsoftware
Site Admin
 
Posts: 355
Joined: Fri Dec 31, 2010 12:30 pm

Re: HCFiler for Cortex M7

Postby steve64 » Tue Oct 02, 2018 3:16 pm

Thanks, will surely take it in consideration for future usage.
steve64
 
Posts: 36
Joined: Mon Jul 09, 2018 8:56 am
Location: Italy


Return to Astrobe for ARM Cortex-M3, M4 and M7

cron