Commit Graph

69 Commits

Author SHA1 Message Date
Simon Wright eca308e040 Provide control over -fcallgraph-info in project wizard.
In [GCC PR 104342](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104342)
we can see that, if checking out a non-release compiler (e.g. GCC
14.0.1), having `-gnata` and `-fcallgraph-info=su` will cause a crash
(in stm32 code, anyway).

`-gnata` is used when Build is Debug.

This patch amends the Project Wizard so you can specify `CALLGRAPHS=Disabled`.

  * scripts/project_wizard.py (Build_Checks_Type): renamed to
      Disabled_Or_Enabled_Type.
    (Build_Checks): now Disabled_Or_Enabled_Type.
    (Callgraphs): new, checks external CALLGRAPHS, default Enabled. Used
      to decide whether to include -fcallgraph-info=su even if Target
      isn't riscv32-unknown-elf.
2024-02-27 15:52:11 +00:00
Maxim Reznik 503ec28492 Check that each supported board is mentioned in README.md 2023-12-06 16:38:32 +02:00
Maxim Reznik 580945562d Add touch panel to stm32_f4ve board 2023-12-06 16:38:32 +02:00
Maxim Reznik 724b7462a4 Add TFT LCD ILI9341 to STM32 F4VE board. 2023-12-06 16:38:32 +02:00
Maxim Reznik 7232cb4069 Add STM32 F4VE board. 2023-12-06 16:38:32 +02:00
Maxim Reznik 945dde1dbc Add FSMC for stm32f40X 2023-12-06 16:38:32 +02:00
Maxim Reznik f79cd470a0 Add SD card examples for `stm32f4xx_m`. 2023-12-06 16:38:32 +02:00
Maxim Reznik 5712224102 Move STM32.Board package for stm32f4xx_m
into `boards/stm32f4xx_m/src/` to have it closer to other sources.
2023-12-06 16:38:32 +02:00
Maxim Reznik 51e21e7160 Add SD card to stm32f4xx_m board 2023-12-06 16:38:32 +02:00
Maxim Reznik f5f17346d8 Move 'for Target use xxx;' up
to fix loading project in VSCode extension and avoid

> error: cannot set configuration attribute "Target" after it was referenced

See details in GPR issue #166.
2023-12-01 14:45:54 +02:00
Maxim Reznik f607a9a7b7 Add HAL for flash memory chips and an example
for w25q16bv on stm32f4xx_m.
2023-10-14 18:17:58 +03:00
Maxim Reznik b451a32266 Add STM32F4XX M DevEBox board
https://stm32-base.org/boards/STM32F407VGT6-STM32F4XX-M
2023-10-14 18:17:58 +03:00
Fabien Chouteau 13b379aad3
Switch to GNAT FSF 12 support (#418)
* Switch to GNAT FSF 12 support

* GNAT FSF 12 in GitHub CI

* Update README.md

* Remove run-time dependency build script that is not compatible with GNAT FSF

This script is also not needed as all the BSPs are included in GNAT FSF.
2023-01-02 11:34:55 +01:00
Andrey Fil 647eac212a
install_dependencies.py Support for utf-8 stdout returned text for Linux (#416) 2022-11-28 15:53:29 +01:00
Fabien Chouteau d1bec4f6bb
scipts/install_dependencies.py: fix branch error and exit early on error (#388) 2021-06-28 18:20:09 +02:00
Fabien Chouteau 0ccb49fb9f
Community 2021 (#386)
* Update for GNAT Community 2021

* Update workflow for CE2021
2021-05-26 12:24:22 +02:00
Jeremy Grosser 830fde073a
PCD8544 LCD driver (#364) 2020-09-17 14:49:10 +02:00
Fabien Chouteau c9290bc39d
Add RISC-V performance CSR support (#363)
* Add RISC-V performance CSR support

* RISC-V Read_CSR_64: fix rv32 version

* RISC-V improve CSR support

Add sub-program to swap, set bits, clear bits, etc.
Instantiate sub-programs for all machine CSRs.
2020-09-15 18:08:30 +02:00
Jeremy Grosser 0c93f623d0
Olimex STM32-H405 board support (#356)
* Olimex STM32-H405 board support

* Add STM32-H405 to build_all_examples.py, fix for style checks

* Use stm32f4 runtime for STM32-H405 board

* Add STM32_H405 to board_projects_generator.py
2020-07-30 12:31:31 +02:00
Fabien Chouteau 9f88a65a31 scripts/config/user_input/console.py: Python3 migration
raw_input() is renamed to input().

Part of #354.
2020-07-08 09:55:15 +02:00
Fabien Chouteau 4bb75b423f scripts/install_dependencies.py: report errors from dependency script 2020-06-16 16:31:37 +02:00
Fabien Chouteau 9151a3c096 Python3 migration 2020-05-29 18:56:37 +02:00
Fabien Chouteau 5a197cfbeb Migration to GNAT Community 2020 2020-05-29 18:56:37 +02:00
Fabien Chouteau 5ffdf12bec HiFive1 rev B: fix flash base address 2020-03-13 16:22:52 +01:00
Fabien Chouteau 03a514a521 Add support for the HiFive1 rev B 2020-03-13 16:22:52 +01:00
Fabien Chouteau bbed2ac234 Add nRF52_SDK examples to the buill all script 2020-03-10 17:22:21 +01:00
Shawn Nock d26e14e5c2 nRF52832 and nRF52 DK Support 2020-03-10 17:22:21 +01:00
Fabien Chouteau a378e04217 Add support for IS31fl3731 LED matrix driver 2020-01-03 10:02:15 +01:00
Fabien Chouteau 36a3cb645b Add support for the AdaFruit Feather STM32F405 2020-01-03 10:02:15 +01:00
Michael du Breuil b2f4af291f scripts: Make install dependency use the current python interpreter path
when spawning other scripts
2019-12-13 16:18:49 +01:00
Fabien Chouteau d7e40fdd8f install_dependencies.py
Now that community-2019 is the default branch for the bb-runtimes repo,
we don't have to switch to it anymore.
2019-12-13 15:59:06 +01:00
Fabien Chouteau 09720b2edb build_all_examples.py: add micro:bit accelerometer example 2019-11-12 17:57:14 +01:00
Fabien Chouteau a61be055b9 RISC-V/SiFive: Add uart0 driver 2019-09-06 12:35:02 +02:00
Fabien Chouteau 8677f892a9 Add SiFive Unleased definition including a new device definition system
In the future, this device definition system could be combined with a
device tree parser.
2019-09-06 12:35:02 +02:00
Fabien Chouteau 456c3231ac Use startup-gen on MicroBit board support 2019-08-22 19:53:17 +02:00
Fabien Chouteau 2b7931dc31 Add support for startup-gen
startup-gen is a tool that generates crt0 and linker script from a
device configuration (CPU name, memory layout). The tool only works for
ZFP run-times right now.

This patch also switches the HiFive1 support to use startup-gen.
2019-08-22 19:53:17 +02:00
Thomas Quinot 2428fd9d62 Add demo for Kitronik :MOVE line follower add-on (#307) 2019-07-22 12:26:47 +02:00
Thomas Quinot d1a8c341c5 Add support for NeoPixel and similar LED strips (#302)
* Add support for NeoPixel and similar LED strips

* Rename MicroBit.IOs.LEDs to MicroBit.IOs.NeoPixel

As suggested on #302.

* Regenerate projects after addition of NeoPixel middleware
2019-07-09 16:42:32 +02:00
Fabien Chouteau 2683219a40 Update bb-runtime branch for GNAT Community 2019 2019-06-21 18:44:44 +02:00
Fabien Chouteau 6a08295037 Turn off warnings for anonymous allocators 2019-06-21 18:44:44 +02:00
Fabien Chouteau 998b4acd9f Add NUCLEO-F446ZE board definition
Using the STM32F407 drivers and run-time.
2019-02-04 16:53:05 +01:00
Fabien Chouteau bf3abbe818 AppVeyor: only compile examples in production mode
To avoid the 1 hour timeout.
2018-09-04 19:24:03 +02:00
Fabien Chouteau 48a4f35c38 Optional style checks and warning as error switches
This patch makes style checks and warning as error switches controllable
with a scenario variable: ADL_BUILD_CHECKS (disabled by default).

With this we can enforce style checks on all contributions by enabling
ADL_BUILD_CHECKS in testsuite runs and CI builds.

On the other hand the checks are disabled by default which means it is
easier and more friendly to play with the library and the examples.

Part of #271
2018-09-03 20:00:01 +02:00
Fabien Chouteau 8da0dc5bfb MicroBit: Add a buttons example 2018-07-13 19:51:43 +02:00
Fabien Chouteau f2bb372931 MicroBit: Split the original example in two 2018-07-13 19:44:34 +02:00
Fabien Chouteau f1da6fb70b MicroBit: Add a documented examples 2018-07-13 19:44:34 +02:00
Fabien Chouteau 00a34a81a1 script/build_all_examples.py: Fix build mode selection 2018-07-11 19:44:05 +02:00
Fabien Chouteau 4cb4825355 Travis-CI: Enable RISC-V32 project compilation 2018-07-11 19:43:32 +02:00
Fabien Chouteau 30c0300926 scripts/install_dependencies.py: Update for community-2018 branch 2018-06-27 15:57:37 +02:00
Fabien Chouteau 4393bb829d Micro:bit example: Update for GNAT Community 2018 2018-06-27 15:57:37 +02:00