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.
HCFiler for Cortex M7
-
- Site Admin
- Posts: 525
- Joined: Fri Dec 31, 2010 12:30 pm
- Contact:
Re: HCFiler for Cortex M7
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:
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
SYSTEM.PUT(CR1, {MSTR});
SYSTEM.PUT(CR2, {SSOE, FRXTH});
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
Thanks, will surely take it in consideration for future usage.
Re: HCFiler for Cortex M7
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
Should I move the SD card from the Nucleo to the PC to use the PC tools ?
Kind regards,
Stefano
-
- Site Admin
- Posts: 525
- Joined: Fri Dec 31, 2010 12:30 pm
- Contact:
Re: HCFiler for Cortex M7
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.