Commit Graph

276 Commits

Author SHA1 Message Date
Eli Hughes
f392b4c91d Added initial support for FRDM-MCXA156 and fixed up a crash with MCXN947
I will be porting tinyuf2 to MCXA156 and N947 and need this work in place.

This is the 1st step before bringing in support for other MCX devices.

We had previous patched https://github.com/hathach/mcux-sdk.git'  for MCX support as it was not pulically available

I updated get_deps to point to the mcux-sdk version 2.16.10 from NXP. I repointed the entry in the get_deps script to use NXP MCU repo.  The existing current code couldn't build as the MCUXpresso SDK was old.

- For now, I put a copy of fsl_spc.c in the drivers folder for the mcx family.  None of the ports could build with the version in the mcux github sdk.  The sdk on github has version 2.4.0.   The SDK package that can be downloaded with the SDK generator uses 2.4.2.  All of the clock_config routines use versions of the datastructure from 2.4.2.  For now, keeping an updated copy in hw/bsp/mcx/drivers so we can build against the latest mcuxpresso sdk and enable MCXA156.  I'll file an issue on the nxp github.

- Cleaned up the MCX family.c a little bit.  the MCXA/N these chips don't have SCT so I removed the neopixel code.

- fixed a clock init issue w/ N947 that was causing it to crash when initializing the uart.

- I tested the cmake and make scripts on the A153,A156 and N947 using the CDC/MSC sample.  All worked OK.

- Patched get_deps so it will do a fetch/check on a new folder.  Some of the deps were failing on a fresh clone of tinyusb

- Fixed  lpc51,54 and lpc55 make/cmake files to build with mcuxpresso sdk 2.16.10  The folder structure for flexcomm/uart changed a little bit

- lpc55s59 libpower_hardabi.a no longer is included in mcuxpressosdk, (fsl_power.c is replacement). remove of libpower_hardabi.a from the linker config.  LPC55 still works as expected.

- Using tinyuf2 get deps
2025-04-27 09:42:42 -04:00
hathach
3851c7c97a - run arm-iar using github action
- add skip_ci.txt to family folder to skip boards in ci run
2025-04-17 16:07:10 +07:00
hathach
65e01fff2e add tuh_edpt_close() API, it will abort any pending transfer
implement hcd_edpt_close() for pio-usb and max3421e, also move max3421e api into its own header.
2025-03-25 16:15:58 +07:00
Ha Thach
e0df20f260 change pio-usb to upstream 2025-03-17 12:20:49 +07:00
hathach
cafc788508 change pio-usb to wip fork for testing 2025-02-20 16:16:07 +07:00
hathach
18d566b94c improve hub: retry if hub interrupt endpoint failed
bump up pio-usb to latest
2025-02-17 17:06:51 +07:00
HiFiPhile
14f1feac84 Fix path.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-02-11 20:56:41 +01:00
HiFiPhile
1208f88b6e Sort list (bettter for Clion)
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-02-09 18:40:30 +01:00
HiFiPhile
09bce3532c Add CMake presets.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-02-09 00:25:38 +01:00
hathach
824793a428 move mcu supported to README.rst, separated supported boards to boards.rst 2024-12-27 11:34:35 +07:00
hathach
6a36c74b10 embed metadata to family.c and board.h to generate supported boards doc 2024-12-27 09:11:09 +07:00
hathach
ab9472f584 update doc, bump up release 0.18.0
revert OPT_MCU_RAXXX value back to 1403
2024-12-25 12:23:56 +07:00
hathach
a39e30db92 Merge branch 'refs/heads/master' into fork/HiFiPhile/rt1170 2024-12-17 11:16:27 +07:00
hathach
69dd473a4c more migrate to ra smart configurator 2024-12-12 13:17:15 +07:00
hathach
aa1bab769a limit parallel for circleci 2024-12-11 16:41:11 +07:00
Ha Thach
310b8657f0 try to run arm-iar with circleci with new token (#2890)
* try to run arm-iar with circleci with new token
* limit iar ci parallel build to 4 for medium+ and 6 for large
* add hil-hfp to compile and test with IAR
2024-12-05 18:01:16 +07:00
David (Pololu)
568c785da1 Add support for the STM32C0 and the NUCLEO-C071RB. 2024-11-27 22:28:32 +07:00
hathach
9e4b855e53 minor clean up 2024-11-27 11:35:21 +07:00
hathach
e391e33492 update host/device_info to build with freertos for espressif board. Add hil test for host/device_info 2024-11-12 19:00:00 +07:00
hathach
65e741937a fix build filter for esp32 2024-11-11 21:40:03 +07:00
hathach
42b6f30eda add VBUS drive via MFX for h743 eval, but does not seems to work yet 2024-10-18 18:33:50 +07:00
hathach
4012e15075 move core init code to dwc2 common. update/correct build for esppressif 2024-10-15 17:55:24 +07:00
Ha Thach
a13dbd4452 Merge pull request #2809 from shuffle2/master
make all python files executable and standardize interpreter
2024-10-07 11:11:54 +07:00
hathach
06347661de accept and ignore -f1 option 2024-10-04 16:09:43 +07:00
hathach
1b295de9ad add hil_ci_set_matrix.py, starting to support hil with additional build flags 2024-10-04 15:01:03 +07:00
hathach
4617fb5229 update build script to correctly skip non max3421 enabled for espressif boards 2024-09-30 21:53:57 +07:00
Shawn Hoffman
616532892d make all python files executable and standardize interpreter 2024-09-17 12:17:12 -07:00
hathach
115b1bb71e prepare for 0.17.0 release 2024-09-13 23:23:37 +07:00
hathach
6fdf206f11 bump up pio-usb to 0.6.1, enable dual hil test for pico 2024-08-28 11:43:14 +07:00
Ha Thach
6118700828 update circle ci to build make (#2769)
* update build.py script to work with circleci
* build make with circle ci
* build vm for esp only
* nrf imxrt with large resource
* nrf imxrt with large resource
* remove 2 of nrf boards
2024-08-21 19:09:37 +07:00
hathach
0be427bae9 use max32 cmsis, fix NVIC_GetEnableIRQ() not defined when using with CMISIS < 5 2024-08-14 23:59:35 +07:00
hathach
761399b5e0 Merge branch 'refs/heads/master' into fork/BrentK-ADI/max32_port 2024-08-14 06:33:42 +07:00
Ha Thach
b8d3c0c4a8 Circi dynamic config (#2763)
Circleci
* build cmake armgcc and arm clang on circleci
* use docker medium+
2024-08-13 23:57:01 +07:00
hathach
5254065976 change pio-usb back to upstreaam 2024-08-13 13:51:28 +07:00
hathach
e8f42df97a change pio to fix rp2040 build 2024-08-10 09:47:34 +07:00
hathach
6bb59eeb3f add lpc11u37 for hil rpi 2024-07-19 22:33:53 +07:00
hathach
e1e68cdb9b bump up ch32 v20x and v307 deps 2024-07-17 19:40:05 +07:00
Brent Kowal
2353c4ffba Add MAX78002 Support
-Added support for MAX78002, MAX78002EVKIT
 -Added provisions for remaining MAX32 USB parts
2024-07-01 17:31:38 -04:00
Brent Kowal
0f288326cc Initial Commit for MAX32 Support
Initial commit for the port of TUSB to MAX32xxx parts, staring with MAX32690
 - Added dcd_max32.c (based on dcd_musb.c) for interfacing with the peripheral
 - Added MAX32690 part family support
 - Added max32690evkit board support
 - Updated examples for unique EP number requirement
 - Updated get_deps.py to fetch the MSDK

Known Issues / Additional Testing Required
 - msc_dual_lun only shown 1 volume on Windows
 - USBTMC does not have a valid Windowsdriver
 - DFU does not have a valid Windows driver
 - WebUSB is "Device not Recognized"
 - Need to test build scripts with IAR and Clang
2024-06-28 16:55:27 -04:00
hathach
33f5547ed4 add ch32v103 bsp support, compile but does not run, probably due to compile/linker issue 2024-06-14 16:06:37 +07:00
hathach
90deeddf3d add c6 devkit, tested with max3421e 2024-06-06 15:49:20 +07:00
hathach
3175aaa0eb increase version as pre-releases, still need more clean up before actual relesae 2024-05-24 20:17:53 +07:00
Matthew Tran
db60fa1c63 add CH32V20x USB OTG/FS driver 2024-05-15 20:01:00 +07:00
Ha Thach
3c24ba3ff2 build arm-clang on circleci with pull request (#2644)
* Build arm-clang using circle ci (only on PR): cache most of mandatory deps, clang toolchain
* update get_deps.py to include CMSIS_5 with --print + no arguments, prevent duplicated deps
2024-05-14 12:44:36 +07:00
Ha Thach
7cf1bdd284 Ci tweak3 (#2643)
- enable --one-per-family to build 1 board per family, also skip family if board specified in -b also present
- minimize ci run for push event
  - only build one board per family
  - skip hil test on both pi4 and hfp
- full build will be runn for PR event
- IAR always build 1 board per family regardless of event 
- update build.py to optimize make
- remove all setup python since we don't really need it
2024-05-13 20:27:49 +07:00
Ha Thach
6f47746e5f more ci update (#2642)
* Circi use small docker
* caching espressif docker image
* only run make job on pull request or push to master
* hw test run on pull request only, rename build_cmake to build.yml
* enable all ci build, cmake(clang) and make(*) only run with pull_request or push to master
2024-05-13 16:41:11 +07:00
Ha Thach
3e2ea77506 More ci tweak (#2636)
* change concurrency group to ${{ github.workflow }}-${{ github.ref }}
* use argparse for build.py hil_test.py, remove the need to install click
* move ci win/mac to build_cmake.yml
* rename build_family.yml to build_util.yml
* build_util.yml support esp32
* integrate build-espressif into build.yml
* build.py support make with --board option
* add get_deps action
* update hil test to reuse action
2024-05-10 18:55:43 +07:00
hathach
2f5db37c1a use argparse instead of click to fix cifuzz.yml 2024-05-10 10:30:47 +07:00
Ha Thach
ba6babf570 Rework ci (#2631)
* add name field to usbd_class_driver_t
* ci: use set matrix py script
* add riscv32 and cmake support for ch32v307, fomu,  gd32vf103
* update build_cmake.py to take --family --board --toolchain
* separate hil test to its own workflow
* move esp32 board into separated hil json
* add make build to ci
* remov build_make.py
* build.py support esp32 board
* setup toolchain support esp-idf
* fix missing click
* merge family in matrix build to reduce jobs
* skip cifuzz since it still has issue with get_deps and click
2024-05-09 20:43:46 +07:00
hathach
497785393d add cmake for mm32, remove mm32 bluepill since it is custom/reworked board (not available for order) 2024-05-06 17:14:35 +07:00