Commit Graph

1472 Commits

Author SHA1 Message Date
hathach 21022755f8
fix make build 2023-11-24 11:51:48 +07:00
Antonio Vázquez Blanco 60dbfe6f54
stm32h750dk: Initial support 2023-11-24 11:39:30 +07:00
Ha Thach 0601d174b1
Merge branch 'master' into feature/ch32f20x 2023-11-24 11:33:34 +07:00
hathach 7213b8abb1
move tools/cmake to examples/build_system 2023-11-23 20:06:22 +07:00
hathach 54356a719e
minor-update 2023-11-23 17:53:17 +07:00
hathach 82880eecbd
make nanolib linking explicitly by each family/board 2023-11-23 12:43:13 +07:00
hathach 1a98f5389c
correct gcc version major comparison 2023-11-23 12:07:59 +07:00
Ha Thach 08f9ed67c9
Merge pull request #2336 from hathach/fix-h7-otg_fs-wfi
Fix h7 running on fullspeed phy has issue with WFI
2023-11-23 10:22:26 +07:00
hathach 42e7bd4ce8
update clock setup for H743 eval 2023-11-22 21:39:28 +07:00
hathach 6a908ccfb6
correctly use xtal for initialize usbphy, rt1170 usb is working 2023-11-22 16:38:24 +07:00
hathach 89dce6882f
minor update board.h 2023-11-22 16:11:39 +07:00
hathach 86f6588c3f
update example to work with featherwing max3421, set max3421 GPIO0 for vbus
tested with feather nrf52840, m0, m4
2023-11-20 22:09:38 +07:00
hathach 1f71625a32
add tuh_max3421_reg_read(), tuh_max3421_reg_read() for application usage
added max3241 for feather m4 and tested
2023-11-20 21:31:06 +07:00
hathach fbf64b122d
switch freertos to static allocation only (dynamic = 0), since it is possible now with latest freertos cmake 2023-11-16 22:12:38 +07:00
hathach 936551ebd1
update rt1170 evk with led and button, but usb not working yet 2023-11-16 21:35:12 +07:00
hathach 759f70f092
update teensy 4.0 and 4.1 (not tested) 2023-11-16 20:43:02 +07:00
hathach 68f1841e3c
update rt1060 and rt1064 evk 2023-11-16 20:28:41 +07:00
hathach baa1b4ec20
correct and tested rt1050 evkb 2023-11-16 20:12:08 +07:00
hathach 2ff08aceec
update rt1050 (not tested) 2023-11-16 20:05:27 +07:00
hathach 882da9944d
update rt1024 evk 2023-11-16 18:23:48 +07:00
hathach 794dbf923a
updat rt1020 2023-11-16 17:33:33 +07:00
hathach f9bdc8ad22
update rt1015 evk 2023-11-16 17:19:15 +07:00
hathach fe2a759159
update metro m7 airlift and sd 2023-11-16 17:01:43 +07:00
hathach d13d79acfe
update imxrt1010 with mex 2023-11-16 16:54:43 +07:00
hathach 2e924f727f
add imxrt1170 evkb 2023-11-16 15:38:55 +07:00
hathach 9ffb20429a
add metro m7 1011 sd with trace etm, try to enable but not working yet 2023-11-16 12:32:35 +07:00
Ha Thach 0f187b4d1c
Merge pull request #2317 from hathach/add-ra2a1-ek
add ra2a1 ek
2023-11-15 16:35:13 +07:00
hathach e0d632a954
add ra2a1 ek
also make some other changes
2023-11-15 16:07:44 +07:00
Jerzy Kasenberg c9f09d6079 Add BSP for nucleo-g491re
This adds bsp for ST nucleo-g491re board.
This is mostly copy of nucleo-f474 only differences being:
- PLL configured to 170MHz (not affecting USB which runs on HSI48)
- Linker script freshly generated from STM32CubeIDE (smaller RAM)

Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
2023-11-13 17:38:19 +01:00
hathach 89475fcf26
add unique id for u5, also allow to build with OPT_OS_CUSTOM 2023-11-02 19:32:25 +07:00
HiFiPhile de02748504 Update make 2023-10-31 21:29:07 +01:00
HiFiPhile bf2e54e3d3 Add STM32F4 OTG_FS pin to BSP. 2023-10-31 20:46:55 +01:00
HiFiPhile 86f00f6b49 Fix STM32F7 OTG_HS GPIO alt mapping. 2023-10-31 20:45:06 +01:00
Ha Thach 4c01c5a714
Merge pull request #2300 from hathach/add-u5a5
Add support for stm32u5a5 (highspeed with built-in femtoPHY)
2023-10-31 13:27:54 +07:00
hathach 3e140756dc
update stm32u5xx_hal_driver, fix build with old u575 board 2023-10-31 12:08:45 +07:00
hathach 6ab7875aab
uart working on u5a5 2023-10-31 11:39:20 +07:00
hathach db3ff4b352
usb on u5a5 hs work well with correct VBVALEXTOEN/VBVALOVAL set 2023-10-31 11:26:31 +07:00
hathach 9f0223dccd
minor clean up 2023-10-31 10:58:15 +07:00
hathach a4c542a7b4
addd dwc2_info.py/md update stm32u5a5 board clock & power configure, able to get passed otg clock reset 2023-10-30 22:21:58 +07:00
hathach 9cba9a753b
update s3 devkitm with max3421 pin following metro s3, check max3421 version to make sure it is valid 2023-10-27 17:40:53 +07:00
hathach 27a2c8cba4
adding nulceo stm32u5a5, fix clock configure issue
dwc2 core stuck at reset
2023-10-18 18:43:07 +07:00
hathach 5025e80c9e
adding u5a5 nucleo 2023-10-18 15:27:06 +07:00
hathach a5a77af11e
add board.mk for u575 nucleo 2023-10-17 23:53:09 +07:00
hathach 22aefd6aba
add cmake support for u575 nucleo 2023-10-17 22:48:54 +07:00
Ha Thach 80ee307244
Merge branch 'master' into feat-stm32u575_nucleo 2023-10-17 22:31:33 +07:00
denis.krasutski ce627f4318 feat(ch32f20x): add support of ch32f20x 2023-10-06 13:04:54 +03:00
hathach cfb683f481
tested with nrf52840 and esp32s2 2023-10-05 17:01:41 +07:00
hathach 67e34267a6 change tuh_max3421_spi_xfer_api() signature
tested working with sam d21 and d51, not tested with nrf52, seem not
working with esp32
2023-10-04 18:00:32 +07:00
hathach f36e0b7b92
esp32 comment out uart, increase max3421 spi speed to 26mhz 2023-10-03 16:27:35 +07:00
hathach 8348631bf5
improve esp32 ci, build esp32 with -DDMAX3421_HOST=1 for max3421 testing
revert change in hcd.h
2023-09-28 16:15:31 +07:00
hathach 6b8933cfe8
fix build with new freertos host example 2023-09-28 12:55:59 +07:00
hathach 7dc1a66f91
esp32 cdc host with max3421 work well 2023-09-28 11:12:22 +07:00
hathach 10abece264
esp32 hid device work well 2023-09-28 10:06:10 +07:00
hathach 3a10b6a3d5
fix esp32 build 2023-09-27 18:09:19 +07:00
hathach 76c43a5bdc
Merge branch 'master' into add-max3421-esp32 2023-09-27 17:52:18 +07:00
Ha Thach 68c4009bba
Merge branch 'master' into add-in_isr-to-hcd_int_hanlder 2023-09-27 17:01:40 +07:00
hathach 58c49cea5b
remove sct_neopixel from lpc54 (due to warnings and not used) 2023-09-27 16:31:46 +07:00
hathach 0a4fb6963d
fix build with lpc54 2023-09-27 16:19:39 +07:00
hathach 3b0ffd0f48
change hcd_int_handler(rhport, in_isr) signature: add in_isr
change tuh_int_handler() to take in_isr as optional parameter (default =
true)
2023-09-27 15:51:03 +07:00
hathach 6dc64eaa28
max3421 communication work with esp32 up to enumeration, seems still have a bit of issue 2023-09-27 12:34:45 +07:00
hathach 2f6592de7f
update max3421 to have hcd_int_handler_ext() 2023-09-27 11:30:18 +07:00
hathach f6ca86c3dd
tested cdc_msc_hid_freertos with samd51
add -Wno-error=format for espressif
wrap up cdc_msc_hid_freertos
2023-09-26 19:09:36 +07:00
hathach a7c136c03f
adding host/cdc_msc_hid_freertos example 2023-09-25 16:53:11 +07:00
hathach b73262be3a minor indent 2023-09-19 18:38:47 +07:00
hathach 8cdcd0fa9d fix build and add u5 to ci 2023-09-19 18:35:15 +07:00
hathach 71a2e8a36d addding cmake support for u5 2023-09-19 17:59:38 +07:00
hathach 81cd995108
add default CFG_TUH_MAX3421 = 0, default spi speed for samd21/samd51 to 12Mhz 2023-09-18 22:15:31 +07:00
hathach f55052b61f enable max3421 host for feather nrf52840 with makefile 2023-09-11 16:44:06 +07:00
hathach 1eb0cb0c65
update readme to include max3421 support 2023-09-11 15:45:26 +07:00
hathach ab9585401b
wrap up build cmake & make support for max3421, to enable the Host driver, 'MAX3421_HOST=1' must be added as part of make/cmake command 2023-09-11 11:35:51 +07:00
hathach e32c1e08bd
both samd21/d51 works perfectly with max3421e 2023-09-09 16:50:16 +07:00
hathach 605ad73ec0
refactor max3421_init() for samd51 to be generic for sercom and eic 2023-09-09 13:04:36 +07:00
hathach c074488f75
minor rename 2023-09-09 12:20:16 +07:00
hathach 1d68f2a328
metro m4 working with max3421e 2023-09-08 18:39:09 +07:00
hathach bcc77a60e0
get spi working for metro m4 express 2023-09-08 17:40:00 +07:00
hathach ed102a7795
Merge branch 'master' into add-max3421e-hcd 2023-09-07 21:42:46 +07:00
hathach d3c08ecc3a more ci fix 2023-09-07 17:20:07 +07:00
hathach e8558458c4 fix ci 2023-09-07 17:09:25 +07:00
hathach 2dea4ce6a2 add cmake support for samd21.
update ci cmake
2023-09-07 16:58:40 +07:00
hathach bb5d43e9c5
add samd51 to cmake 2023-09-07 15:31:43 +07:00
hathach 21ab40bab2
- wrap up hcd max3421, work well with nrf52840
- also add usbh_defer_func()
2023-09-07 12:38:18 +07:00
Gabriel Chouinard c4566c4d2b Enable instruction cache for stm32u5 boards 2023-09-05 21:39:28 -04:00
Gabriel Chouinard 4fb15f6bb7 Add stm32u575-nucleo support 2023-09-05 19:30:38 -04:00
hathach 3b7d5aa042
improve connection & disconnection detection. But there is still issue when CONDETIRQ occurs but we are disabled interrupt (for osal queue access). 2023-08-31 16:52:09 +07:00
hathach 1ab488eb06
call xfer_complete_isr() when result is not successful (stalled or failed) 2023-08-30 16:04:18 +07:00
hathach 3740a3287a
- correct tuh_max3421e_int_api() for nrf52
- hcd_int_disable/enable is software only to reduce interrupt lag
2023-08-29 18:22:21 +07:00
Ha Thach 9063ede25f
Merge branch 'master' into nxp_k64 2023-08-28 17:46:05 +07:00
hathach aa0fabd51d
add kinetis_k family and teensy_35
- teensy_35 is not able to blink led with board_test though, probably due to clock config.
2023-08-28 17:44:29 +07:00
hathach 588b758717
rename OPT_MCU_KINETIS_K64 to OPT_MCU_KINETIS_K 2023-08-28 17:34:40 +07:00
hathach b31924e13e - add xfer_complete_isr()
- merge addr0 ep to pool
- add control status to xact in/out
- use atomic flag busy to ensure only 1 transfer is active at any time
- execute pending transfer after one is complete (or clear busy flag)
- change rtt mode to block if full
2023-08-28 12:41:44 +07:00
hathach 3ed5d6c372
complete enumeration 2023-08-24 16:27:12 +07:00
hathach e3f3179924
able to get 8 byte descriptor, but read(RCVBC) always return 0
- rename max3421e to max3421
- fix incorrect bitmask for HCTL, fix initial device connect
- fix bus reset cause connect IRQ
2023-08-23 15:08:12 +07:00
hathach 274578ff46
able to send setup packet 2023-08-22 23:17:12 +07:00
hathach cacc96b25d
adding connection event handling, add nrf gpio interrupt for max2341e interrupt pin 2023-08-18 17:39:10 +07:00
hathach 824e585e2b
ground works for hcd max3421e 2023-08-18 14:07:38 +07:00
hathach 9257a0f562
- update nrf52 bsp for cmake
- add empty tuh_int_handler/tud_int_handler if corresponidng stack not enabled
- add hcd_template.c
2023-08-18 12:48:12 +07:00
hathach 088180e3d8
add iar support for lpc43, add lpcxpresso43s67 to hil farm 2023-08-14 20:58:00 +07:00
hathach 78e5b2c6a4
add board_get_unique_id() for lpc43 2023-08-14 16:52:16 +07:00
hathach 202b945f88
add lpcxpresso43s67 2023-08-14 16:38:51 +07:00
Ha Thach 04f0cd5c80
Merge pull request #2209 from HiFiPhile/hitl
Enhance HITL test
2023-08-09 20:20:46 +07:00
hathach 1268d1a093
update hil test and json (remove troublesome lpc54608), run hil test on ci with IAR build 2023-08-09 18:46:23 +07:00
hathach b8b01c1075
update to dcd ip3511 to add work-around for lpc54628 usb hs errata USB.1 and USB.2
msc is mounted, but device couldn't work reliably and got constant reset
due to other errata probably.
2023-08-09 12:47:24 +07:00
hathach 6d877c3170
added cmake for lpc54, update lpc55 2023-08-08 18:50:24 +07:00
hathach 4938971aad
code format 2023-08-07 20:48:09 +07:00
Ha Thach accc3fd737
Merge pull request #2151 from kilograham/rp2040_build_fixes
Fix build issues when building for RP2040 from pico-examples/pico-sdk.
2023-08-07 11:14:04 +07:00
HiFiPhile b9e614bd39 Fix LPC54 build. 2023-08-06 15:59:25 +02:00
HiFiPhile 4f96eebe1b Fix LPC54 build. 2023-08-06 13:41:10 +02:00
hathach 25bace5e81
add cmake for all board in stm32f4. fix build, also move ci for f4 from makefile to cmake 2023-08-04 12:49:26 +07:00
hathach 81aca17d6e
Merge branch 'master' into blackf407VE 2023-08-04 12:07:39 +07:00
Ha Thach de4ad2c775
Merge pull request #2204 from hathach/enhance-bsp
Enhance bsp
2023-08-04 11:41:44 +07:00
Ha Thach bbdc879995
Merge pull request #2133 from greatscottgadgets/cynthion_support
Update support for Cynthion boards
2023-08-04 11:03:25 +07:00
hathach ef5bd9ee6c
Merge branch 'master' into enhance-bsp 2023-08-04 00:31:12 +07:00
hathach 9360a3bd51
add uid for some stm32 2023-08-04 00:23:10 +07:00
hathach 041f510f90
add board_get_unique_id() for serial number
implemented board_get_unique_id() for rp2040 and L4
2023-08-03 20:42:34 +07:00
Ha Thach 6d03bb9ffc
Merge pull request #2052 from arduino/renesas_ra_hs_rebased
Renesas_RA: add support for board with HS USB port
2023-08-03 20:41:13 +07:00
hathach 1324c2862d
more board_api rename 2023-08-03 17:32:15 +07:00
hathach a160da1f2b
add lpc43 family 2023-08-03 17:19:47 +07:00
hathach a5768f52b4
more board_api.h rename 2023-08-03 15:50:52 +07:00
hathach cf91660cee
rename hw/bsp/board.h to board_api.h 2023-08-03 15:44:05 +07:00
hathach 4493b838d9
rename ch32v307 and tm4c123 to use underscore 2023-08-03 15:35:01 +07:00
hathach 37a7f9f382
configQUEUE_REGISTRY_SIZE=4 for lpc18 2023-08-03 12:07:28 +07:00
hathach 473f37df95
add osal queue name if needed
also mass change configQUEUE_REGISTRY_SIZE = 4
2023-08-03 12:05:21 +07:00
hathach 2021c62997
fix pre-commit, also skip lto for rp2040 2023-08-02 17:57:28 +07:00
HiFiPhile 07822979aa Fix STM32G0 build. 2023-08-01 18:41:15 +02:00
hathach 47ae883ba0
fix build with -flto 2023-08-01 17:26:56 +07:00
hathach 04f1a34c39
add rusb2_common.c for dynami irq 2023-08-01 17:03:07 +07:00
hathach 40833b585b
enable flto for ra makefile
- remove ra from ci make build since it is already in cmake ci
2023-08-01 15:44:54 +07:00
hathach 789e478d4d
add portenta c33 bsp, add flash by dfu-util 2023-08-01 13:16:37 +07:00
hathach 1cccbaf7ec
fix board name with dash 2023-08-01 11:18:00 +07:00
hathach 3f788a4e5a
enable USBMC for uno r4, add board_init_after_tusb() API
add BOARD_UPPERCASE for board detection
2023-07-31 19:09:40 +07:00
hathach 0d9973ef87
enable_irq since uno bootloader can disable it. systick triggered, however usb still not work with uno 2023-07-31 16:21:19 +07:00
hathach feb58ebd54
add uno r4 wih FLASH_IMAGE_START=0x4000, running but interrupt (systick) does not seems to work 2023-07-28 19:01:12 +07:00
0xCCF4 8226b046a9
Fixed typo in rp2040 hw bspw family.c 2023-07-28 11:19:08 +02:00
hathach ec093bebad
Merge branch 'master' into renesas_ra_hs_rebased 2023-07-27 16:50:34 +07:00
hathach 6b6dcc6c09
refactored multiple ports for hcd rusb2 2023-07-26 19:52:33 +07:00
hathach 1cb3f0e92a
increase stack size for 6 series to 0x1000, 4 series to 0x800 2023-07-26 18:56:13 +07:00
hathach fbaa148fe0
updating hcd rusb2
- make osal_task_delay() as weak function in usbh
- implement osal_task_delay() in hcd rusb2 (may moved to other places)
2023-07-26 18:55:41 +07:00
hathach 4deea87579
improve processing usb complete and error isr.
also merge them together
2023-07-25 15:07:21 +07:00
Ha Thach fda92fd34a
Merge branch 'master' into hcd-abort-xfer 2023-07-24 21:38:46 +07:00
hathach f295aaf185
add hcd abort xfer for rp2040 pio usb 2023-07-24 20:58:50 +07:00
hathach 25225ba792
minor clean up 2023-07-24 18:04:42 +07:00
hathach 14a7379799
fix ohci warnings, and add freertosconfig for lpc4088 2023-07-24 16:54:02 +07:00
hathach 210fc7d038
add etm trace pinmux for 4088 quickstart 2023-07-24 16:19:45 +07:00
hathach ef49b93532
rename CFG_TUSB_MEM_SECTION to CFG_TUD_MEM_SECTION in device stack
CFG_TUD_MEM_SECTION is default to CFG_TUSB_MEM_SECTION
2023-07-24 15:46:21 +07:00
hathach a268e0b7a3
add lpc40 to cmake 2023-07-24 15:18:41 +07:00
emb4fun e2f28bc134
Added support for the NXP K64 series 2023-07-23 10:53:22 +02:00
jferreir 34ff7af7c7 Fix trailing spaces issue 2023-07-20 18:12:36 +02:00
jferreir 6ac7f19640 fix compilation issues for XMC4500_RELAX 2023-07-20 17:01:00 +02:00
jferreir 2772581c28 Add support for XMC4700_RELAX kit 2023-07-20 10:53:59 +02:00
jferreir 59778664c9 Add UART_DEV support 2023-07-20 10:53:29 +02:00