so that it can be used by everybody with the Arduino-IDE/STM32duino via USB.
(as mentioned already in my "say hello" - Thread)
This mini-PLC (commercial product / already on the market) uses the STM32F103VET6 (512kB Flash /64kB RAM / 100pin).
The manufacturer is very interested and cooperative and will send me a sample device to evaluate if this device could be used with Arduino/STM32duino, but until now they did not sent me a complete schematic
what I found out up to now is:
- there is a kind of SWD connector on the mainboard
- there is no reset-button or any jumper
- there is a 1.5k pullup from USB D+ to 3.3V
- there is a "ID_USB"-pin used on Port PA15 (connected to the 5V of the USB-plug via a resistor divider)
- the Boot0- and Boot1-Pin are pulled down to GND
- there are 2 LEDs connected from 3.3V via resistor to the Ports PC8 and PC9
so as a real noob,
I believe that as a first step I have to compile the STM32duino-bootloader
with parameters that fit my "board", right ?
so, can I omit the complete "BUTTON" and the "USB-DISC" -stuff ? (since I have no "Maple hardware" ?)
and just write:
Code: Select all
#define HAS_MAPLE_HARDWARE 0 #define LED_BANK GPIOC #define LED_PIN 9 #define LED_ON_STATE 0 #define USER_CODE_RAM ((u32)0x20000C00) #define RAM_END ((u32)0x20005000)
edited title and text since it turned out that the PLC has a TM32F103VE MCU running on 16MHz crystal ...