Commit Graph

65 Commits

Author SHA1 Message Date
hathach 47bc269b50
fix build with rp2040 and rx65 2022-11-21 11:12:10 +07:00
hathach 12341118e3 add get-deps target
update ci to get-deps first
2022-07-01 16:24:58 +07:00
hathach 9c56f70111 suppress error with net example 2022-06-27 20:30:47 +07:00
hathach 0042eccb3b
fix redundant-decls warnings by usbd/usbh 2022-06-24 22:52:11 +07:00
hathach 4f6e770eda
add more warning option, also fix -Wconversion with rp2040
-Wuninitialized, -Wunused,  -Wredundant-decls
2022-06-24 19:46:19 +07:00
Jerzy Kasenberg 5c5ecea6f1 build system: Changes for xc32 compiler
Three changes are needed to accommodate xc32 compiler build:
- optimized build flag other than -Os
   added CFLAGS_OPTIMIZED that defaults to -Os but can be overridden in boards
- build without -lnosys
   added LIBS_GCC with default libraries that can be changed in boards
- build without LD_FILE specification
   if LD_FILE is empty -Wl,-T options is not added to LDFLAGS
2021-12-27 10:11:56 +01:00
hathach 826b34a8ac enable -Wnull-dereference 2021-10-18 00:13:40 +07:00
hathach a5f516893b more with -Wcast-qual 2021-10-17 16:36:53 +07:00
hathach 785cdf67f0 default PYTHON to python3 on linux, and python on windows 2021-09-07 17:43:45 +07:00
hathach f47e5402fa add msc workaround for cxd56 2021-09-07 13:30:51 +07:00
hathach c9d66dcd5f remove BOARD from output name 2021-06-10 17:24:36 +07:00
hathach 954056da0c
fix warnings cast function type for nrf, fix pico osal warning
add TODO for overflow in tusb_fifo.c
2021-05-25 21:02:40 +07:00
Dima Barsky 9f925bc900
Added support for Black Magic Probe (#787)
* Added flash-bmp and debug-bmp targets; added .gdb_history to .gitignore
* Added the BMP variable, defaults to /dev/ttyBmpGdb
The name of the BMP device is different on different systems. On Linux (after installing the recommended udev rules) it'll be /dev/ttyBmpGdb, but the user should be able to override it.
* Update rules.mk
2021-04-16 20:23:27 +07:00
hathach 2307fc3023 move esp32s2 and rp2040 target rule to its family.mk 2021-03-17 20:13:22 +07:00
Ha Thach 1cdd1b0209
Update pico sdk 1.1.0 (#712)
* update pico-sdk to 1.1.0
also correct fetch_submodule_if_empty behavior
2021-03-10 13:26:14 +07:00
hathach 590d8d4d5c rename FAMILY_SUBMODULES to DEPS_SUBMODULES 2021-03-04 22:53:02 +07:00
hathach 5799c471f1 group h743eval and h743nucleo into stm32h7
tested and work well
2021-03-03 20:07:17 +07:00
hathach b066fdc2c6 move fomu to its own family, update ci with build risv 2021-03-02 12:24:12 +07:00
hathach c222f6f111 try to fetch needed mcu submodule while running make 2021-03-01 20:25:55 +07:00
hathach ba69da1d8f add support for LOG=2
LOGGER=rtt is not tested since jlink doesn't support rp2040 just yet
2021-01-29 11:24:05 +07:00
hathach e230d683ca add copy-artifact target, and add uf2 for all family board 2021-01-26 21:19:14 +07:00
hathach 4a0f5cbd63 change output filename to BOARD-Directory 2021-01-26 12:46:24 +07:00
hathach 0e585570a3 rename build output 2021-01-25 23:40:52 +07:00
hathach b6e9c42b02 update cmake build to work with esp32s2 and rp2040 2021-01-22 14:58:32 +07:00
hathach 0cf2b02791 Merge branch 'master' into group-boards-into-family 2021-01-22 11:17:10 +07:00
kkitayam d7cfd8b91d replaced variable name to CMDEXE from UNAME.
removed the rule that .d files are converted to .P files.
2021-01-14 01:19:43 +09:00
hathach 8c5c46454f also build boards without family 2021-01-13 12:56:48 +07:00
kkitayam 8fa083d79e added support for cmd.exe as a shell on make. 2021-01-11 15:56:16 +09:00
hathach 630692d81b move all nrf boards into its family group 2020-11-28 10:48:44 +07:00
hathach 658194ccc4 group more nrf boards 2020-11-28 00:45:44 +07:00
hathach 4130c50b01 grouping nrf boards 2020-11-28 00:16:28 +07:00
hathach 865ebf7c5d fflush(stdout) for keyboard host example 2020-09-04 00:50:10 +07:00
hathach 0407cfe16c fix samd21 race condition with setup packet
reproduced with Adafruit_TinyUSB_ArduinoCore port commit 11d669b4d2a40eb2fc5e51b2a9707a6de9d42363 and SAMD BSP 1.6.1
2020-07-23 01:39:15 +07:00
hathach 1a8ce043ed enable -Wcast-align
suppress vendor sdk driver at board.mk
2020-05-17 14:24:15 +07:00
hathach 017c95037f add usbd edpt open
- RTT mode is blocking to prevent log lost
- Improve logging message
2020-04-26 14:51:44 +07:00
hathach 1fc7f54a8a
added swo as logger
tested with feather nrf52840 + jlink
2020-04-22 19:18:03 +07:00
hathach afc4042375 add LOGGER option to use rtt
update example readme for debug log. Update bug template to ask for LOG
as well.
2020-04-22 17:08:41 +07:00
hathach 09262d7f7e house keeping 2020-03-26 22:04:24 +07:00
hathach d74a92bf45 makefile clean up
allow board to define CROSS_COMPILE (default to arm gcc)
2020-03-25 14:06:51 +07:00
Ha Thach 9a48e98fad
Merge branch 'master' into develop 2020-03-24 12:16:15 +07:00
Ha Thach 95009a9e79
Merge pull request #194 from cr1901/msp430f5529
[WIP] MSP430 Support
2020-03-24 11:57:20 +07:00
hathach bc0779de0a per review
- remove -Wno-error=lto-type-mismatch
- change back to unsigned int
2020-03-23 23:22:52 +07:00
hathach 056d0bb4bf remove -Wnested-externs since many driver does this including CMSIS_5 2020-03-23 22:52:59 +07:00
hathach 4f871063fd Merge branch 'master' into cr1901-msp430f5529 2020-03-22 17:19:57 +07:00
hathach f638594536 move -flto to board.mk
current board that doesn work with flto is spresense and mimxrt10xx (due
to xip image_vector_table is optimized out).
2019-11-20 16:06:40 +07:00
hathach 1aa3f085cb adding support for NXP rt1064 evk board, boad test led + sw8 work.
LTO is temporary disabled
2019-11-20 15:30:39 +07:00
Sean Cross dce070ebe0 examples: make: specify CROSS_COMPILE for fomu
When BOARD=fomu, use the riscv cross-compiler.  Otherwise, use the
default arm compiler.  This can be overridden by passing
CROSS_COMIPLE on the command line.

Note that there are now three common risc-v prefixes:

    - riscv32-unknown-elf- : Common for users who compile their own
    - riscv64-unknown-elf- : Upstream multiarch toolchain from SiFive
    - riscv-none-embed-    : xPack embedded version of SiFive toolchain

Here we assume users are using the `riscv-none-embed-` toolchain from
xPack, because it appears to be growing more common.  Additionally,
there is much confusion surrounding `riscv64-unknown-elf-`, which
actually includes both 32- and 64-bit runtimes and can generate software
for both.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-13 09:26:00 -08:00
hathach 1ab3a1035c Merge branch 'master' into cr1901-msp430f5529 2019-11-05 10:17:36 +07:00
hathach 5ca75eb84c seperate DEBUG from LOG 2019-11-03 13:18:02 +07:00
hathach de333a6f18 clean up warning, msp430 gcc 8.3 fixed the library lto issue 2019-10-29 16:21:31 +07:00