STM32F401ce BlackPill


steven.sharp2@...
 

Hi All,
          Just received my new pcb to replace the old blue pill that failed, However, the new board is failing to program and the following messages appear when I try and verify compile. Can anyone please inform me of what I have done wrong?


 My Settings:

Arduino: 1.8.16 (Windows 10)
Board: "Generic STM32F4 series
Generic F401CE, STM32CubeProgrammer (DFU)
Enabled (no generic 'Serial')
CDC (generic 'Serial' supersede U(S)ART)
Low/Full Speed, Smallest (-Os default)
Newlib Nano (default)
 
 
In file included from C:\Program Files (x86)\Arduino\hardware\Onstep\src\pinmaps\Models.h:86 from C:\Program Files (x86)\Arduino\hardware\Onstep\OnStep.ino:67:
 
C:\Program Files (x86)\Arduino\hardware\Onstep\src\pinmaps\Pins.MaxSTM.h:131:2: error: #error "Wrong processor for this configuration!"
 
  131 | #error "Wrong processor for this configuration!"
 
      |  ^~~~~
 
In file included from C:\Program Files (x86)\Arduino\hardware\Onstep\OnStep.ino:68:
 
C:\Program Files (x86)\Arduino\hardware\Onstep\src\HAL\HAL.h:98:4: error: #error "Unsupported Platform! If this is a new platform, it needs the appropriate entries in the HAL directory."
 
   98 |   #error "Unsupported Platform! If this is a new platform, it needs the appropriate entries in the HAL directory."
 
      |    ^~~~~
 
In file included from C:\Program Files (x86)\Arduino\hardware\Onstep\Validate.h:1126,
 
                 from C:\Program Files (x86)\Arduino\hardware\Onstep\OnStep.ino:69:
 
C:\Program Files (x86)\Arduino\hardware\Onstep\src\sd_drivers\Validate.TMC_SPI.h:16:6: error: #error "Configuration (Config.h): STEP_WAVE_FORM PULSE; Pulse width is below the TMC SPI stepper driver specifications."
 
   16 |     #error "Configuration (Config.h): STEP_WAVE_FORM PULSE; Pulse width is below the TMC SPI stepper driver specifications."
 
      |      ^~~~~
 
C:\Program Files (x86)\Arduino\hardware\Onstep\src\sd_drivers\Validate.TMC_SPI.h:39:6: error: #error "Configuration (Config.h): STEP_WAVE_FORM PULSE; Pulse width is below the TMC SPI stepper driver specifications."
 
   39 |     #error "Configuration (Config.h): STEP_WAVE_FORM PULSE; Pulse width is below the TMC SPI stepper driver specifications."
 
      |      ^~~~~
 
In file included from C:\Program Files (x86)\Arduino\hardware\Onstep\Validate.h:1212,
 
                 from C:\Program Files (x86)\Arduino\hardware\Onstep\OnStep.ino:69:
 
C:\Program Files (x86)\Arduino\hardware\Onstep\src\pinmaps\ValidatePins.h:97:4: error: #error "Configuration (Config.h): SERIAL_B_ESP_FLASHING not supported for this PINMAP"
 
   97 |   #error "Configuration (Config.h): SERIAL_B_ESP_FLASHING not supported for this PINMAP"
 
      |    ^~~~~
 
In file included from C:\Program Files (x86)\Arduino\hardware\Onstep\OnStep.ino:109:
 
C:\Program Files (x86)\Arduino\hardware\Onstep\src\lib\Weather.h:11:14: fatal error: Adafruit_BME280.h: No such file or directory
 
   11 |     #include <Adafruit_BME280.h>          // https://github.com/adafruit/Adafruit_BME280_Library/tree/156a0537d6b21aaab1d1f104a7001a38ca1ffce3
 
      |              ^~~~~~~~~~~~~~~~~~~
 
compilation terminated.
 
exit status 1
 
Error compiling for board Generic STM32F4 series.
 
 


Dave Schwartz
 

Seems to be a lot related to errors in your config.h file which you did not attach (except for the missing Adafruit BME280 library which you install with the IDE library manager).

On 2021-09-13 11:24 a.m., steven.sharp2 via groups.io wrote:
Hi All,
          Just received my new pcb to replace the old blue pill that failed, However, the new board is failing to program and the following messages appear when I try and verify compile. Can anyone please inform me of what I have done wrong?


 My Settings:

Arduino: 1.8.16 (Windows 10)
Board: "Generic STM32F4 series
Generic F401CE, STM32CubeProgrammer (DFU)
Enabled (no generic 'Serial')
CDC (generic 'Serial' supersede U(S)ART)
Low/Full Speed, Smallest (-Os default)
Newlib Nano (default)
In file included from C:\Program Files (x86)\Arduino\hardware\Onstep\src\pinmaps\Models.h:86 from C:\Program Files (x86)\Arduino\hardware\Onstep\OnStep.ino:67:
C:\Program Files (x86)\Arduino\hardware\Onstep\src\pinmaps\Pins.MaxSTM.h:131:2: error: #error "Wrong processor for this configuration!"
  131 | #error "Wrong processor for this configuration!"
      |  ^~~~~
In file included from C:\Program Files (x86)\Arduino\hardware\Onstep\OnStep.ino:68:
C:\Program Files (x86)\Arduino\hardware\Onstep\src\HAL\HAL.h:98:4: error: #error "Unsupported Platform! If this is a new platform, it needs the appropriate entries in the HAL directory."
   98 |   #error "Unsupported Platform! If this is a new platform, it needs the appropriate entries in the HAL directory."
      |    ^~~~~
In file included from C:\Program Files (x86)\Arduino\hardware\Onstep\Validate.h:1126,
                 from C:\Program Files (x86)\Arduino\hardware\Onstep\OnStep.ino:69:
C:\Program Files (x86)\Arduino\hardware\Onstep\src\sd_drivers\Validate.TMC_SPI.h:16:6: error: #error "Configuration (Config.h): STEP_WAVE_FORM PULSE; Pulse width is below the TMC SPI stepper driver specifications."
   16 |     #error "Configuration (Config.h): STEP_WAVE_FORM PULSE; Pulse width is below the TMC SPI stepper driver specifications."
      |      ^~~~~
C:\Program Files (x86)\Arduino\hardware\Onstep\src\sd_drivers\Validate.TMC_SPI.h:39:6: error: #error "Configuration (Config.h): STEP_WAVE_FORM PULSE; Pulse width is below the TMC SPI stepper driver specifications."
   39 |     #error "Configuration (Config.h): STEP_WAVE_FORM PULSE; Pulse width is below the TMC SPI stepper driver specifications."
      |      ^~~~~
In file included from C:\Program Files (x86)\Arduino\hardware\Onstep\Validate.h:1212,
                 from C:\Program Files (x86)\Arduino\hardware\Onstep\OnStep.ino:69:
C:\Program Files (x86)\Arduino\hardware\Onstep\src\pinmaps\ValidatePins.h:97:4: error: #error "Configuration (Config.h): SERIAL_B_ESP_FLASHING not supported for this PINMAP"
   97 |   #error "Configuration (Config.h): SERIAL_B_ESP_FLASHING not supported for this PINMAP"
      |    ^~~~~
In file included from C:\Program Files (x86)\Arduino\hardware\Onstep\OnStep.ino:109:
C:\Program Files (x86)\Arduino\hardware\Onstep\src\lib\Weather.h:11:14: fatal error: Adafruit_BME280.h: No such file or directory
   11 |     #include <Adafruit_BME280.h>          // https://github.com/adafruit/Adafruit_BME280_Library/tree/156a0537d6b21aaab1d1f104a7001a38ca1ffce3
      |              ^~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Error compiling for board Generic STM32F4 series.
--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


Howard Dutton
 

On Mon, Sep 13, 2021 at 08:24 AM, <steven.sharp2@...> wrote:
Just received my new pcb to replace the old blue pill that failed, However, the new board is failing to program and the following messages appear when I try and verify compile. Can anyone please inform me of what I have done wrong?
Not really enough information to know for sure but I can state that with Arduino 1.8.15 and STM32duino version 1.9.0 (etc. per the Wiki) OnStep release-4.24 compiles successfully for me (with a run of the mill Config.h TMC2130's etc.) targeting the MaxSTM pinmap and STM32F401.


Howard Dutton
 

On Mon, Sep 13, 2021 at 08:24 AM, <steven.sharp2@...> wrote:
Generic F401CE,
Just noticed this... the support isn't designed for a "Generic F401CE" board.

It's for the "BlackPill F401CC" and very likely the smaller memory of a CC vs. a CE makes no difference (as even 256KB is more than we use.)