Commit Graph

3958 Commits (626b4927e39101d50bcdcb1c475510389f67903c)

Author SHA1 Message Date
Jamie Smith 6e2e7b9414
Remove all source files exclusive to Arm Compiler and IAR (#159)
* Remove all source files exclusive to Arm Compiler and IAR

* Also remove 'TOOLCHAIN_ARM'

* Remove targets.json entries for ARM and IAR
2023-05-15 08:23:01 -07:00
Jamie Smith b9c04813b3
More fixes for sleep and clocking stuff on MIMXRT105x (#158)
* More fixes for sleep and clocking stuff on MIMXRT105x

* Fix a couple of inadvertent changes
2023-05-11 22:49:55 -07:00
Jamie Smith 04a76b3882
Refactor MIMXRT105x target labels and linker script, locate general data in DTCM memory instead of OCRAM for improved performance (#157) 2023-05-11 13:04:31 -07:00
Jamie Smith af6d50aefe
Teensy 4.1 port with Ethernet support (#144)
* Start porting to Teensy 4.1, also fix some compiler warnings in FSL HAL

* Add hardware init for Teensy, refactor phy drivers, rework IMX EMAC autonegotiate code

* Revert some testing changes

* Fix incorrect phy address used outside of low_level_init_successful()

* Ethernet operational!

* Turn off DEBUG_IMX_EMAC

* Style fixes

* Style again

* Bugfix: mbed_lib.json files in project source dir were not getting picked up

* Bugfix: CLion debug configurations not generated properly due to variables going out of scope

* Support Teensy OTP MAC address
2023-03-08 20:18:33 -08:00
Ladislas de Toldi 16247af752
🔧 (profiles): Remove debug symbols from release profile, compress debug sections (#147) 2023-03-02 21:19:15 -08:00
Ladislas de Toldi 4124a9a67d
(vscode + cmake) Add option MBED_GENERATE_VSCODE_CONFIG (#142) 2023-02-27 22:47:51 -08:00
Jamie Smith d9534516bf
Fix debug-less upload methods (#140)
* Fix debug-less upload methods

* Oops, fix build outside of Clion
2023-02-24 00:26:08 -08:00
Jamie Smith eda766ec8f
Refactor upload methods to streamline the debugging experience (#129)
* Change all debug configurations to not reset and exit on error.  Initial tasks.json implementation.

* st-util working on command line and VS Code!

* Convert STM32CUBE, fix spaces in GDB server task command

* pyocd working!

* Convert OpenOCD

* Convert JLINK

* Convert REDLINK upload method

* Fix CMake typo

* Try and fix some variable scope issues

* Initial CLion implementation.  Need to test with hardware.

* Add a separate task that kicks off a build before each debug session
2023-02-20 00:16:15 -08:00
Jamie Smith ccb664ea6f
Update MIMXRT clocking to hopefully fix deep sleep, fix boot issues on Teensy4 (#130)
* Fix incorrect image length in header preventing boot

* Fix ncache region being located in SEMC even on boards without it

* Don't reserve RAM for ncache anymore

* Fix crash when activating BufferedSerial on Teensy D0 and D1.  Also fix incorrect daisy register mapping.

* Fix missing space in linker script

* Start on fixing incorrect MIMXRT clock frequency

* LPM working!

* Clean up LPM and clocking

* Add teensy model identifier

* Fix license headers
2023-02-14 22:21:28 -08:00
Jamie Smith b91fc218ac
MIMXRT1060_EVK and Teensy 4.0 support (#113)
* Initial attempt at Teensy 4.0 support

* Hide internal target

* Fix some targets.json issues, add boot code for the MIMXRT1060_EVK.  It boots but tests aren't able to run properly yet.

* Disable LPTICKER on MIMXRT1060, fix pin names for newer dev kits

* Enable MIMXRT106x ethernet
2023-01-09 08:48:25 -08:00
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
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
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 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 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
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
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
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 222bf9730e Clean up detection of failed generation / missing include file 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
Jamie Smith eb2bd8672a Add automatic execution of mbedtools configure 2022-09-14 00:25:30 -07:00
Jamie Smith 9ed98244af Fix typo in yaml 2022-09-14 00:25:30 -07:00
Jamie Smith 5442e2405c Use a cleaner CMake method to handle bin and hex file names 2022-09-14 00:25:30 -07:00
Jamie Smith 9ada8fc433 Revert Greentea runner changes, it should stay as is 2022-09-14 00:25:29 -07:00
Jamie Smith c89876a6ef Fix assertion failures missed from test log when multiple tests fail 2022-09-14 00:25:29 -07:00
Jamie Smith f61f3a186f Add MBED_GREENTEA_SERIAL_PORT also 2022-09-14 00:25:29 -07:00
Jamie Smith 69c1d4a55a Rename inconsistently named testing-related variables. Also fix STM32CUBE not working from application code. 2022-09-14 00:25:29 -07:00
Jamie Smith ae64b05c15 Fix memap failing to parse map files on linux 2022-09-14 00:25:29 -07:00
Jamie Smith 3e2e836395 Add support for the open-source stlink uploader 2022-09-14 00:25:29 -07:00
Jamie Smith 391163922a Convert mbed-ble to STATIC 2022-09-14 00:25:28 -07:00
Jamie Smith 87f0272138 Fix memap not running 2022-09-14 00:25:28 -07:00
Jamie Smith fb4164951c Fix Mbed OS target's public dependency on the MCU target 2022-09-14 00:25:28 -07:00
Jamie Smith 46205a7a81 Add core flags dependency back to the target flags, making sure that the core flags headers actually work 2022-09-14 00:25:28 -07:00
Jamie Smith 5bddbbc980 Fix PSA target, fix create_distro to not recurse into static libraries 2022-09-14 00:25:28 -07:00
Jamie Smith fe23ff8d5b Only support GCC ARM compiler, but reap the benefits of static libraries instead of objects 2022-09-14 00:25:28 -07:00
Jamie Smith a9be092438 Fix gdbinit and make debug-xxx not working when executables are created outside of Mbed OS.
Also remove "gdb_memory_map disable" command that breaks breakpoints.
2022-09-14 00:25:28 -07:00
Jamie Smith e607b7909f Move mbed-tools to the main requirements.txt 2022-09-14 00:25:27 -07:00
Jamie Smith 6605b42d1c Add out-of-the-box upload support for LPC1768 (OpenOCD and MBED methods only) 2022-09-14 00:25:27 -07:00