Commit Graph

19 Commits (722c2f119647e14f1f44d6e1e54041b4442e63b4)

Author SHA1 Message Date
Jamie Smith 722c2f1196
Set up CMake configure dependencies on all JSON files used in the configuration (#409)
* Set up CMake configure dependencies on all JSON files used in the configuration

* Remove unneeded cmake-build-dir option, we already have output

* Oops use namespace

* Fix comment

* Don't explode if given paths outside the root dir
2024-12-30 00:02:25 -08:00
JohnK1987 0fb002c6c9
Update cmsis_mcu_descr.py for custom targets (#394)
* Update cmsis_mcu_descr.py for custom targets

the fetch-missing is scanning also custom_target.json5 file if exist in project, for help not solve missing memory banks

* Update cmsis_mcu_descr.py for auto search custom_targets.json file

* Update cmsis_mcu_descr.py - rework for remove global var

* Update cmsis_mcu_descr.py - fix
2024-11-24 15:17:50 -08:00
ccli8 cda8a9d3c8
Support override of memory_bank_config in mbed_app.json (#381)
memory_bank_config can be defined in targets.json or custom_targets.json
per-target, but cannot by application. This enables this override by
adding "target.memory_bank_config" config in target_overrides section of
mbed_app.json as usual.
2024-11-17 18:52:36 -08:00
Jamie Smith e72b38a2be
Reactivate EMAC Greentea test (#378)
* Migrate emac test code into a library

* Build passes now!

* Fix STLINK bug, update README

* Reduce verbosity a bit

* Formatting

* Fix licenses
2024-10-29 20:52:57 -07:00
Jamie Smith f0b9d65ac9
Fix lots of Greentea test warnings (#365) 2024-09-26 12:18:33 -07:00
Jamie Smith 798dd6be43
Fix off-by-1 error in memap's symbol-contained-in-memory-bank check, clean up some linker script stuff (#362)
* Fix off-by-1 error in memap's symbol-contained-in-memory-bank check, clean up some linker script stuff

* Update comment

* One more typo
2024-09-25 01:01:54 -07:00
Jamie Smith 0a7652033c
Allow memap.py to process memory bank information (#345)
* Begin modernizing memap, add parsing of start address and symbol names

* Memap can now process and print memory bank info!

* Rename symbols back to modules, it was correct before

* Remove trailing whitespace

* Add type hints to modernized functions

* Apply suggestions from code review

Co-authored-by: VictorWTang <33789988+VictorWTang@users.noreply.github.com>

* Remove else

Co-authored-by: VictorWTang <33789988+VictorWTang@users.noreply.github.com>

* Clarify statement

---------

Co-authored-by: Victor Tang <me@victorwtang.dev>
Co-authored-by: VictorWTang <33789988+VictorWTang@users.noreply.github.com>
2024-09-23 20:50:05 -07:00
Jamie Smith f2a128b895
Update STM32H5 HAL driver, fix some DMA bugs (#344)
* Update STM32H5 HAL driver, fix some DMA bugs

* Disable LL driver

* Add scancode ignore rules
2024-09-21 23:13:39 -07:00
Jamie Smith 232d767225
Supply memory bank information from the configuration script (#326)
* New version of memory bank information system

* Start upconverting linker scripts and target definitions

* Augh my script was being gitignored

* Add tests, update Cypress and STM32 linker scripts and target definitions

* Fix some CI issues

* Fix warning spam on LPC1768

* Fix STM32H745 family compile failure due to failure to include cmsis_nvic.h

* Respond to easy comments

* Break up function into pieces

* Improve type hints, don't write out a JSON file as a side effect

* Two more comments
2024-09-12 20:35:03 -07:00
Jamie Smith 5a118826a8
Fix CellularInterface functions never being defined (#307)
* Fix several link errors with mbed-cellular

* Fix unittest failure

* Try again to fix unit tests?

* OK try and fix these a little better

* Fix style
2024-07-19 01:36:19 -07:00
JohnK1987 eb0012983a
Add basic source files for MCU H503xB+H563xI + configuration for Nucleo H503RB+H563ZI (#294)
* add targets H503xB and H563xI

* add STM32H5 basic stettings and drivers

* Necessary modification in STM32 family drivers for STM32H5 family

* targets.json5 modified for STM32H503xB and STM32H563xI

* Prototype Upload methods for Nucleo boards of STM32H5 family

* fix typo

* typo fix

* Add images for H5 targets

* cmsis_mcu_desc fix

* targets.json fix

* merge all clock files to one

* Enable Mbed upload method

* fix mcu_family_target

* fix for clock settings

* move - device remove list to family level

* fix targets.json

---------

Co-authored-by: Jan Kamidra <odiin@windowslive.com>
2024-07-10 21:06:28 -07:00
Jamie Smith 71cb8129af
Fix deprecation issues with older Python code (#296)
* Fix deprecation issues with older Python code

* Remove mbed_greentea package
2024-07-06 01:19:25 -07:00
Jamie Smith 8956a75bd9
Remove unavailable and EOLed target boards - STM32 (#287)
* Remove unavailable and EOLed target boards - STM32

* Make CI detect any missing MCU descriptions

* Oops fix CI syntax

* Aaand add those MCUs

* Also remove "orphaned" cellular modem COMPONENTs
2024-06-20 21:35:53 -07:00
Jamie Smith 47ee2ce2bb
Re-add CMSIS MCU description file and a utility to manage it (#282)
* Start adding CMSIS MCU description tool

* Add 'add-missing'

* Switch MCU descriptions to JSON5

* Add new MCU after rebase

* Use virtualenv instead of APT for installing packages

* Also remove apt requirements files

* Wrong command!

* Check if index file exists before checking update time

* Respond to comments

* Make must_exist keyword only

---------

Co-authored-by: Victor Tang <me@victorwtang.dev>
2024-06-09 20:43:27 -07:00
Jamie Smith acfd341a16
Updates to targets JSON and related stuff for the website generator (#265)
* Various updates to support targets & drivers site generation

* Add regression test for python code, add links to README

* Don't need to duplicate device_name

* Fix typo and some extra commas

* Rephrase docs
2024-04-09 18:37:39 -07:00
Jamie Smith 7501ee7fc9
Document and clean up wifi and LoRa modules, add ability in Python to get non-public targets (#247)
* Add a way to get target attributes for non public targets

* Document all WiFi and LoRa modules

* Fix some errors

* Fix another CMake error
2024-02-11 14:19:17 -08:00
Jamie Smith 69d95b598a
Make DMA SPI driver aware of CPU cache, fix data corruption and other SPI issues on STM32H7 (#199)
* Handle cache alignment in DMA SPI driver

* Fix build on cache-less devices

* Fix a couple things I missed

* Run formatter, improve CacheAlignedBuffer docs

* Add missing license identifiers to source files

* Make CacheAlignedBuffer heap-allocatable, try and add exclusion for Nordic license in scancode_evaluate.py

* Formatting, docs, revert accidental change

* Update code blocks to pass spell checker
2023-12-19 10:21:47 -08:00
Jamie Smith 7e9d658ae9
Allow Mbed config files to be json5 in addition to json (#194)
* Allow Mbed config files to be json5 in addition to json

* Also handle custom_targets.json

* Add missing "install python packages" step
2023-10-26 09:48:33 -07:00
Jamie Smith 3af1c75ca8
Bring python packages into the mbed-os source (#192)
* Initial import of python packages

* Move tests to subfolder, use tests in generate_configuration.cmake

* Bring python packages into the source tree instead of needing to be installed separately

* Use python3

* Just use distro default python

* Install all the requirements with apt-get

* unittests is part of Python now

* Add appdirs, set python version

* Add some missing dependencies

* Add more packages

* Add requirements.apt.txt files, fix relative paths with scancode_evaluate.py

* Fix return code handling for license scan errors

* ok let's try that again, also improve error output from scancode evaluate

* Add missing license headers
2023-10-10 09:54:53 -07:00