Commit Graph

34585 Commits (8826c613dbbd11b98ab123d280c8842b265b83da)

Author SHA1 Message Date
Jamie Smith 5f30094ed5
Enable disabling target files for custom targets (#107)
* Enable disabling target files for custom targets

* Fix unittests

* Fix unittests again
2022-12-02 20:32:37 -08:00
JojoS 9d9ba58f68
add custom linker script (#103)
* add custom linker script
a custom linker script can be applied by adding the .ld filepath
as 2nd argument to mbed_set_post_build

* more detailed comment

* add if is_standalone for text cases

* replace COMMENT in add_custom_command by echo
COMMENT is not reliable printed
2022-11-28 09:01:49 -08:00
Jamie Smith 310aac306f
Fix license check CI failure (#104) 2022-11-28 08:59:14 -08:00
Jamie Smith 5b28f5bc96
Rethink STM32 I2C v2 HAL (#78)
* Initial attempt at rethinking the STM32 I2C v2 HAL.  Makes single-byte work properly and adds a new 'state' variable to track what the hardware is doing.

* Fix some initial test failures

* Fix incorrect logic

* Fix more incorrect logic

* Tabs to spaces

* Fix repeated starts with single-byte API

* Fix race condition causing stop() after nacked address to sometimes break things

* Fix missed i2c structs that should have been removed

* Fix doing a repeated start from single-byte to transaction API causing I2C peripheral to lock up

* Fix xferOperation being set wrong for repeated starts, causing the peripheral to hang

* Fix race condition with repeated start after single-byte operation

* Fix compilation for targets that use I2C IP v1

* Fix initialization of XferOperation for API v1, optimize stop()

* Remove unneeded line

* Add docs for I2C events
2022-11-20 17:46:30 -08:00
Jay Sridharan 961632a860
Clean up group/module definitions in doxygen (#97)
* Clean up group definitions in doxygen

* remove THIRD_PARTY_DOCS

* some stragglers

* fix astyle formatting
2022-11-12 23:27:50 -08:00
JojoS e4469c3b24
add depth, json and html to memap (#95) 2022-11-12 23:18:55 -08:00
Jamie Smith 72832c7bba
Add upload method support for MIMXRT1050 EVK (#84) 2022-11-06 16:13:10 -08:00
JojoS 0840a295eb
add separate cxx options for gcc (#80)
* add separate cxx options for gcc

* remove warning write-strings
2022-11-05 13:15:02 -07:00
JojoS a9fd4a3f21
add HW reset to STM32CUBE as is more reliable (#85) 2022-11-02 00:23:10 -07:00
JojoS 55899d2d94
Add disco f769 ni uploadcfg (#82)
* add-uploadcfg-disco_F76ni

* add-DISCO_F769NI-uploadcfg
fix comment

* tested all upload methods except stlink (old tool)
2022-10-31 20:05:54 -07:00
JojoS 7cd19915a2
Add nucleo f746 zg (#76)
* add upload for F746ZG

* fix comment
2022-10-19 19:24:27 -07:00
Jamie Smith 6a8ac81892
Fix ASM that interfered with the GCC linker script and made the linker try to zero the entire RAM space (#75) 2022-10-16 22:16:25 -07:00
Jamie Smith 022d4f472e
Fix hal-sleep-manager test on nRF52 and clean it up in general (#74) 2022-10-16 12:31:59 -07:00
Jamie Smith 32a9080c7d
Enable Arduino Nano 33 BLE (#55)
* Add upload target for Arduino Nano 33 BLE, fix linker script preprocessing, add option for USB serial by default

* astyle error

* Use HINTS instead of PATHS so that the Arduino dir is searched first

* Enable OpenOCD and PyOCD for Nano 33 BLE in SWD mode

* Fix missing dependency for USB tests on Windows

* Add RAM defines for nrf52840

* Fix mbed-storage-kv-config depending on SD card library even if said library was not enabled

* Update dsrdtr value

* No longer need to modify linker script now that we aren't using whole-archive!

* Add OPENOCD_ADAPTER_SERIAL

* Add handling for cmsis dap

* Fix typo

* Fix weak symbol issue causing Bluetooth to not work.  In this case, the weak implementation can simply be removed, because there's no legitimate case where it is used.
2022-10-16 10:32:38 -07:00
Jamie Smith ce093f1785
Don't use whole-archive linking (#71)
* First attempt at converting to OBJECT libraries.  Not working due to more object library limitations

* Only compile the main libraries as OBJECT, because that's all that CMake can be made to do right now.

* Fix availability of target-specific flags

* Missed some usages

* Fix some STM32 ethernet stuff that was not linking correctly

* More fixes for STM32 ethernet and weak symbols

* Fix prebuilt object file linking for MUSCA_S1

* Fix STM32 eth init license headers
2022-10-09 12:16:15 -07:00
Jamie Smith b90b13bd10
Fix a few mistakes in the I2C docs. (#66) 2022-10-08 21:47:45 -07:00
Jamie Smith b010ca5667
Change default serial baudrate to 115200 (#58) 2022-10-03 19:47:32 -07:00
Jamie Smith 555345cbd5
Fix the USB Mass Storage Device test so it can run as a CI user without root (#65) 2022-10-03 00:08:09 -07:00
Jamie Smith ffc33676d1
Lots of usability improvements for the I2C API. Better docs and new top-level functions. (#64)
* Lots of usability improvements for the I2C API.  Better docs and new top-level functions.

* Document frequencies

* Tabs to spaces

* More style fixes

* Run astyle

* Clean up docs

* Add note about addressing, change 10 bit to 11 bit

* Fix spellcheck

* Fix paste error

* Oops, fix accidental change
2022-10-02 21:27:33 -07:00
Jay Sridharan e833ba1701
Add docs generation workflow (#45)
* Add docs generation workflow

* remove extraneous backslash
2022-09-26 08:15:30 -07:00
Jamie Smith 60a3a4e524
Fix overflow issue causing common tickers test to intermittently fail (#57)
* Fix overflow issue causing common tickers test to intermittently fail (#44)

* Tabs -> spaces
2022-09-25 09:09:17 -07:00
Jamie Smith 1d44be27c6
Fix issue with Python exit codes that masked failures (#56) 2022-09-25 09:08:56 -07:00
Jamie Smith 7cd7e60df8
Convert mbed-usb target, enable mbed-usb tests (#49)
* Convert mbed-usb target, enable mbed-usb tests

* Fix ByteBuffer compile error

* Add missing requirements, fix some pyserial issues

* Move CDC_ECM to its own target since it needs RTOS
2022-09-22 00:17:45 -07:00
Jamie Smith f317dbc335
Print the command when a greentea test is being run. Also fix mbedhtrun not being on PATH causing all tests to pass! (#51)
* Print the command when a greentea test is being run.  Also fix mbedhtrun not being on PATH causing all tests to pass!

* Also remove useless -f argument to mbedhtrun (not used with --skip-flashing)
2022-09-19 21:38:57 -07:00
JohnK1987 7e5066ddad
Add Cmake config files for Disco-F746NG and Disco-F469NI into upload methods (#47) 2022-09-17 11:59:55 -07:00
JohnK1987 810bb312ed
Add Cmake config for Nucleo-L152RE and Nucleo-F303K8 into upload methods (#46) 2022-09-16 07:48:00 -07:00
JohnK1987 2131c7db9e Update NUCLEO_H743ZI2.cmake 2022-09-14 00:25:33 -07:00
JohnK1987 7b9c56f05a Update NUCLEO_L432KC.cmake 2022-09-14 00:25:33 -07:00
JohnK1987 b3b69ce85a Add Cmake config for Nucleo-H743ZI2 into upload methods 2022-09-14 00:25:33 -07:00
JohnK1987 cda6bc85a7 Add Cmake config for Nucleo-L432KC into upload methods 2022-09-14 00:25:32 -07:00
Jamie Smith 2b6d60e1ac Oops, missed a file 2022-09-14 00:25:32 -07:00
Jamie Smith 4897b885d6 Change linker script handling logic to use only one linker script target 2022-09-14 00:25:32 -07:00
JohnK1987 967ead5a79 Update of cmake config files for ST targets - ST-link issue 2022-09-14 00:25:32 -07:00
Jamie Smith 02b6bdb295 Fix event queue being stuck in non-RTOS mode, causing all sorts of weird behavior 2022-09-14 00:25:32 -07:00
JohnK1987 92921dc8c5 Add Cmake config for Nucleo-F303RE into upload methods 2022-09-14 00:25:32 -07:00
Jamie Smith d149b84786 Fix OpenOCD not working for L452RE, fix running tests with a non-default baudrate set, add warning about old stlink versions which may not work 2022-09-14 00:25:32 -07:00
JohnK1987 d82838212b Summary of changes:
This PR adds the cmake config for upload method of Nucleo-F446RE
All methods have been tested (only for flash), but for soem reason ST-link metho is not stable.
2022-09-14 00:25:32 -07:00
JohnK1987 432d55cce6 Update NUCLEO_F767ZI.cmake
J-LINK (ST-link with J-link firmware) tested successfully.
2022-09-14 00:25:32 -07:00
JohnK1987 f79b8285e4 Add Cmake config for Nucleo-F767ZI into upload methods 2022-09-14 00:25:32 -07:00
Jamie Smith 8296cb6d39 Silence noisy print, fix bug with MBED upload method not working 2022-09-14 00:25:32 -07:00
Jamie Smith b08e9faacc Install mbed os tools by default so that MBED upload works out of the box 2022-09-14 00:25:32 -07:00
Jamie Smith 381df1257f Move UploadMethods.md to wiki, add install path guessing to Findstlink for Windows 2022-09-14 00:25:31 -07:00
Jamie Smith 2ff0a9829f Switch to cortex-debug plugin for VS Code to improve debugging experience 2022-09-14 00:25:31 -07:00
Jamie Smith b60a26526d Add in mbed-cmake's configuration generators 2022-09-14 00:25:31 -07:00
Jamie Smith 42fd5beb2c Oops fix tabs 2022-09-14 00:25:31 -07:00
Jamie Smith b93af1b95c Disable mbed semihosting interface in tests, so as not to mess up their timing 2022-09-14 00:25:31 -07:00
Jamie Smith 222bf9730e Clean up detection of failed generation / missing include file 2022-09-14 00:25:31 -07:00
Jamie Smith fb9be8eb9d Actually build in test_building_multiple_executables.yml 2022-09-14 00:25:31 -07:00
Jamie Smith 5800b7bac5 Fix paths in test_building_multiple_executables.yml 2022-09-14 00:25:31 -07:00
Jamie Smith e3d717138b MBED_APP_JSON_PATH should no longer be required, as some projects don't need it 2022-09-14 00:25:31 -07:00