circuitpython/ports/stm/boards
Brandon Satrom 48f67d007e feat: add Blues Swan R5 support
complete pin mapping for Feather pins

stubbed out files needed for complilation. still to be modified

0 out all CPY modules in mpconfigboard.mk until we get the build running

add csv for pin generation for STM32L4R5

add F4R5 references in peripherals files

refactored out board files BECAUSE I AM AN IDIOT; add L4 series system clocks file from CubeMX

took a guess at the number of USB endpoint pairs to get the build done

guess was close, but wrong. It is 8

clean up peripheral DEFs

Fixes build error:
```
In file included from ../../py/mpstate.h:33,
                 from ../../py/mpstate.c:27:
../../py/misc.h: In function 'vstr_str':
../../py/misc.h:196:1: sorry, unimplemented: Thumb-1 hard-float VFP ABI
 static inline char *vstr_str(vstr_t *vstr) {
 ^~~~~~
```
Sleuthing steps:
* verify that the feather_stm32f4_express board builds correctly
* put a `#error` at the bottom of the `mpstate.c` file.
* build for the feather and swan boards, with V=2 to capture the build command for that file.
* use a differencing tool to inspect the differences between the two invocations
* inspecting the differences, I saw a missing `-mcpu=cortex-m4` I tested by adding that to the Swan build command. The file built fine (stopping at the hard error, but no other warnings.)

A grep through the sources revealed where this flag was being set for the stm ports.

With this commit, the build gets further, but does not complete. The next exciting episode in this unfolding coding saga is just a commit away!

working build with minimal set of modules for the Blues Swan r5

chore:change header copyright name to Blues Wireless Contributors

USB operational.  Fixed up clocks to be hardwired for LSE no HSE case. (Trying to combine HSE in there made the code much more complex, and I don't have a board to test it out on.)

USART working

adds support for `ENABLE_3V3` and `DISCHARGE_3V3` pins.  I am surprised that pin definitions are quite low-level and don't include default direction and state, so the code currently has to initialize `ENABLE_3V3` pin as output.  The LED takes over a second to discharge, so I wonder if the board startup code is not having the desired affect.

short circuit implementation of backup memory for the STM32L4

all the ports

remove company name from board name to be consistent with the Arduino board definition.

add default pins for I2C, SPI and UART, so that `board.I2C` et al. works as expected.  Confirmed I2C timing.

fix board name

fix incorrect pin definition. add test to allow manual check of each output pin

analog IO

code changes for WebUSB. Doesn't appear to work, will revisit later.

ensure that `sys.platform` is available

checkin missing file

feat: make room for a larger filesystem so the sensor tutorial will fit on the device.

fix:(stm32l4r5zi.csv): merged AF0-7 and AF8-15 into single lines and removed extraneous headers mixed in with the data.

fix(parse_af_csv.py): pin index in the csv is 0 not 1, and AF index made 1 larger

chore(Swan R5): update peripherals pins from `parse_af_csv.py` output

optimize flash sector access
2021-09-28 18:52:02 -07:00
..
espruino_pico change board dicts to include a common macro with __name__ 2021-09-03 21:03:55 +02:00
espruino_wifi change board dicts to include a common macro with __name__ 2021-09-03 21:03:55 +02:00
feather_stm32f405_express change board dicts to include a common macro with __name__ 2021-09-03 21:03:55 +02:00
meowbit_v121 change board dicts to include a common macro with __name__ 2021-09-03 21:03:55 +02:00
nucleo_f746zg change board dicts to include a common macro with __name__ 2021-09-03 21:03:55 +02:00
nucleo_f767zi change board dicts to include a common macro with __name__ 2021-09-03 21:03:55 +02:00
nucleo_h743zi_2 change board dicts to include a common macro with __name__ 2021-09-03 21:03:55 +02:00
openmv_h7 change board dicts to include a common macro with __name__ 2021-09-03 21:03:55 +02:00
pyb_nano_v2 Enable CS "active-high" device support 2021-09-23 09:14:39 +01:00
pyboard_v11 change board dicts to include a common macro with __name__ 2021-09-03 21:03:55 +02:00
sparkfun_stm32f405_micromod change board dicts to include a common macro with __name__ 2021-09-03 21:03:55 +02:00
stm32f4_discovery change board dicts to include a common macro with __name__ 2021-09-03 21:03:55 +02:00
stm32f411ce_blackpill change board dicts to include a common macro with __name__ 2021-09-03 21:03:55 +02:00
stm32f411ce_blackpill_with_flash change board dicts to include a common macro with __name__ 2021-09-03 21:03:55 +02:00
stm32f411ve_discovery shrink stm32f411ve_discovery 2021-09-14 19:50:46 -04:00
stm32f412zg_discovery change board dicts to include a common macro with __name__ 2021-09-03 21:03:55 +02:00
stm32f746g_discovery change board dicts to include a common macro with __name__ 2021-09-03 21:03:55 +02:00
swan_r5 feat: add Blues Swan R5 support 2021-09-28 18:52:02 -07:00
thunderpack_v11 change board dicts to include a common macro with __name__ 2021-09-03 21:03:55 +02:00
thunderpack_v12 change board dicts to include a common macro with __name__ 2021-09-03 21:03:55 +02:00
STM32F401xd_fs.ld Add recovery domain write access, adjust stack 2020-05-11 18:02:40 -04:00
STM32F401xe_boot.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
STM32F401xe_fs.ld Add recovery domain write access, adjust stack 2020-05-11 18:02:40 -04:00
STM32F405_boot.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
STM32F405_default.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
STM32F405_fs.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
STM32F407_fs.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
STM32F411_fs.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
STM32F411_nofs.ld Added new linker file 2021-07-26 13:59:25 +09:00
STM32F411_nvm.ld Move NVM block to increase program size. 2020-06-25 21:46:15 -07:00
STM32F411_nvm_nofs.ld Remove filesystem from linker script. 2020-11-23 22:56:38 -08:00
STM32F412_fs.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
STM32F746xG_fs.ld Add DTCM and ITCM support to F7 series 2020-06-09 18:01:52 -04:00
STM32F767_fs.ld Add DTCM and ITCM support to F7 series 2020-06-09 18:01:52 -04:00
STM32H743_fs.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
STM32L4R5_boot.ld feat: add Blues Swan R5 support 2021-09-28 18:52:02 -07:00
STM32L4R5_default.ld feat: add Blues Swan R5 support 2021-09-28 18:52:02 -07:00
common_default.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
common_nvm.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
common_tcm.ld Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
openocd_stm32f4.cfg create copy 2020-03-11 18:13:06 -04:00
system_stm32f4xx.c run code formatting script 2021-03-15 19:27:36 +05:30
system_stm32f7xx.c run code formatting script 2021-03-15 19:27:36 +05:30
system_stm32h7xx.c run code formatting script 2021-03-15 19:27:36 +05:30
system_stm32l4xx.c feat: add Blues Swan R5 support 2021-09-28 18:52:02 -07:00