Commit Graph

57 Commits

Author SHA1 Message Date
Vitor Moreno B. Sales dd3847bfd3
STM32 fixes and tweaks (#553)
* STM32 fixes and tweaks

Removed generic STM32F103 options from PlatformIO
Added optional serial compilations on PlatforIO
Make sure all timers are stoped at boot
Small speed improve at SPIasEEPROM
Added timers usage table to board_stm32_official.h

* Added base board
2021-04-15 10:26:58 +10:00
Tjeerd 6179d4b5ae
Create better support for STM32F401 and STM32F411 blackpills (#548)
* Create support for STM32F401 and STM32F411 blackpills

* Small bug introduced now fixed.

Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
2021-03-23 08:33:03 +11:00
Josh Stewart f02d75bfbe Some initial work for same51 board support 2021-03-13 08:43:51 +11:00
Tjeerd 060ec77010
STM32F401 build fix (#537)
* Remove disable RTC from build, now STM32F401 builds no problem

* bug fix

Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
2021-02-24 10:15:52 +11:00
Vitor Moreno B. Sales 132cc6200d
Fix pin 54 selection (#511)
Fix pin 54 listing and renamed macros to better understanding

Co-authored-by: Josh Stewart <josh@noisymime.org>
2021-02-02 10:00:04 +11:00
Josh Stewart 1da8672bf7 RTC fixes for Teensy41 and mega2561 2021-01-23 14:19:45 +11:00
Josh Stewart ca6eef2b31 Initial layout work on RTC and SD 2021-01-22 16:16:30 +11:00
Josh Stewart 5aeb794c2a Add teensy36 build and master uploads for teensy36 and teensy41 2021-01-17 23:16:09 +11:00
Tjeerd 5c5ecbbcea
Fix building stm32 f401 (#489)
* fix building for STM32F401CC and general macro cleanup

* Now building for all generic STM32F4x7 boards in arduino IDE is ok.

* buildflag cleanup

Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
2020-12-08 00:43:01 +11:00
Josh Stewart e073834135 Cleanup some stm32 warnings 2020-12-02 13:21:00 +11:00
Tjeerd 8451aacf55
Add support for stm32F401internal flash as EEPROM emulation (#462)
* Add support STM32F401CC using internal flash as EEPROM

* update flash location of EEPROM

Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
2020-12-02 10:52:13 +11:00
Josh Stewart cfe9930416 Minor performance change in 2560 compile options 2020-09-18 10:50:23 +10:00
Tjeerd 6faab8e485
Update on eeprom emulation (#424)
* Fix building for FRAM with globals.h setting

On request of vitor boss. A lot has been changed around  to make the selection of EEPROM emulation  type from the globals.h (including FRAM selection)

* Add support for EEPROM emulation on internal flash of STM32F7

* Updates on SPI Flash EEPROM

* Fix building for BACKUPSRAM as EEPROM.

* Add put() and get() functions to the EEPROM emulation. This is needed for the latest terminstor and other calibrations routines

Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
2020-08-10 08:58:00 +10:00
Tjeerd b9bab9cbfc
Changed platformio.ini to build with the newest visual studio code and PIO. (#418)
Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
2020-07-19 20:31:00 +10:00
Josh Stewart e17874553f Change the TEENSY40 config to be TEENSY41 2020-07-14 13:57:36 +10:00
Josh Stewart 904e1956f4 For Travis to do a platform update to try and resolve board not found error 2020-05-21 16:24:13 +10:00
Josh Stewart fc1663e5d3 Fix compiling for atmega2561 and add profile for it 2020-05-21 15:42:02 +10:00
Tjeerd 1530bb892e
EEPROM emulation on internal flash for STM32F407 (#372)
* Added new Flash EEPROM emulation

# Conflicts:
#	platformio.ini
#	speeduino/board_stm32_official.ino
#	speeduino/init.ino
#	speeduino/src/SPIAsEEPROM/SPIAsEEPROM.cpp
#	speeduino/src/SPIAsEEPROM/SPIAsEEPROM.h

* changes to storage to make SPI flash work again

* cleanup
2020-05-06 15:22:48 +10:00
Tjeerd fae9ab5a6b
Configurable CS pin flash chip (#345)
* fix building with spi flash as config storage

* Fixing build with spi flash as EEPROM. Changed some pin numbers to match the board i am designing and testing now.

* Now cs pin for spi eeprom is settable by flag in build enviroment.

* Correct overflow for 32bit timers

* fix pins PA0-PA5 on some f407 boards

* Enable access to SRAM Backup domain at boot

* Add missing callback functions

* Change timer resolutions. Corrects idle/aux timer frequencies

* 32 bit overflow only for STM32F4

* Update platformio.ini

debug tool added as default

* fix building with spi flash as config storage

* Fixing build with spi flash as EEPROM. Changed some pin numbers to match the board i am designing and testing now.

* Now cs pin for spi eeprom is settable by flag in build enviroment.

* Update platformio.ini

debug tool added as default

* Update cancomms.ino

Removed CAN build on black_F407VE for now. It needs fixing the build fails otherwise.

Co-authored-by: hoogendijkta <tjeerdie@users.noreply.github.com>
Co-authored-by: iLeeeZi <ilari.vehniainen@hotmail.fi>
2020-04-18 08:04:03 +10:00
Autohome2 1add450cf5
Branch 082019ma (#326)
* fix to serial0 and serial3 when offset is 0 uses wrong command

* fix to serial0 and serial3 when offset is 0 uses wrong command

* fix hex num

* add teensy canbus library
teensy can read and write functions enabled

* update to teensyduino 1.49

* part 1 prepare structure for obd can port works
rename old can_command() to secondarySerial_command() for secondary serial and create new can_command for real CAN instruction decode.
fix masking for teensy 3x and 4

* set mega as default build

Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-02-28 10:18:37 +11:00
Josh Stewart b02b33d4bf Minor cleanup for compiling on Teensy with MC33810 2020-02-23 09:54:13 +11:00
Josh Stewart 11c3c97280 Change Bluepill to force 128k variant. See #311 2020-02-19 08:54:51 +11:00
Josh Stewart a93e78c3f3 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-02-03 09:07:41 +11:00
Josh Stewart 2231a4a1ff Set stm32f407 build to use current PIO platform code 2020-02-03 09:06:14 +11:00
Bruno Bousquet 68f2288dd7
add schedule test (#312)
add temp test file to gitignore


improve schedule testing


add check for schedule delays and pending variants

move time sampling to callback methods

add comments and improve pending tests
2020-01-30 16:17:20 +11:00
Josh Stewart 76ef814847 Large cleanup of global varialbes in preparation for unit test framework 2020-01-24 11:31:39 +11:00
Josh Stewart 106b75509d Generic SPI as EEPROM changes. 2020-01-13 12:14:00 +10:00
Josh Stewart fbbeb8a7a1 Basework for new DB board 2019-12-15 09:55:46 +11:00
Josh Stewart 73f4058f6b Reenable LED indicator on the calibration routing 2019-10-15 16:56:41 +11:00
hoogendijkta bbc4144fec Changed pins to correspond with test board. 2019-10-11 17:40:11 +02:00
hoogendijkta 9818e403d5 Changed plaformio.ini for PIO to work with the new ST stm32duino 1.7.0 core 2019-10-01 19:25:46 +02:00
hoogendijkta caa1c676f3 Made platformio work with usb serial 2019-09-22 19:31:23 +02:00
Josh Stewart 3c4f25d140 Add build for teensy40 2019-08-21 17:42:01 +10:00
Josh Stewart da29ee47e1 Minor changes for compatibility with PIO 4.0 2019-07-12 16:07:00 +10:00
Josh Stewart 7ed645b574 stm32 SPIAsEEPROM compatibility work 2019-03-12 21:49:09 +11:00
Josh Stewart 430032d3ab Bring in stm32f407 official core support within platformio 2019-03-07 22:47:22 +11:00
Josh Stewart 7550a6a0a0 Remove extra pinMappings (for now) and pass the CORE_STM32_OFFICIAL in the compile options 2019-03-05 01:02:53 +11:00
Josh Stewart f96999dd2d Multiple stm32 and general arch cleanup/fix from last merge 2019-03-04 23:45:33 +11:00
Josh Stewart 5c8697e3e4 Add back the original Maple build for STM32F1 which passes Travis test 2019-01-27 11:21:28 +13:00
Josh Stewart 847d7d0c28 Clean compiling stm32F1 and F4 with stm32GENERIC 2019-01-26 20:34:20 +13:00
Josh Stewart f4c0513c2f Begin moving board specific code out of timers.x 2019-01-22 12:04:21 +13:00
Josh Stewart 3b2967271d More portable version of the modular board handling 2019-01-20 15:46:33 +13:00
Josh Stewart 27de4f19c5 Multi board compatibility work 2019-01-18 21:46:03 +11:00
Josh Stewart 750d486276 VERY rough initial work on modular boards layout 2019-01-17 20:47:19 +11:00
Josh Stewart 2791d81cc1 Fix ststm32 version at 4.5.0 due to all the breakage from 4.6.0
See https://github.com/platformio/platform-ststm32/issues/76 for details of breakages in ststm32 v4.6.0
2019-01-09 09:07:37 +11:00
Josh Stewart 33b85f3b9d Cleanup a bunch of errors and warnings for stm32 2018-01-27 22:14:11 +11:00
Josh Stewart 8690c3c9a1 Remove unnecessary files from last commit 2017-10-26 12:30:28 +11:00
Josh Stewart 1cfdcb0c77 Bunch of small tweaks to reduce Bluepill flash usage 2017-10-26 12:25:53 +11:00
Josh Stewart 4b9ef6a31d Add Travis scan for the stm32 environments 2017-06-21 15:30:06 +10:00
Josh Stewart ae7a75673f June dev signature 2017-06-06 08:32:08 +10:00