Commit Graph

152 Commits (a104dac9cb69b9a5417406813e3faa7ba2ddab8a)

Author SHA1 Message Date
Martin Kojtal 016d725673
Merge pull request #14465 from harmut01/baremetal_maxim
Maxim: Add bare metal support to targets
2021-04-15 17:31:12 +02:00
harmut01 1c671c43ff Refactor definition of heap load region start 2021-04-07 14:27:34 +01:00
harmut01 18d8499979 Refactor ER_IROM1 load region defintion 2021-03-31 16:27:28 +01:00
harmut01 3d66447302 Refactor RW_IRAM1 load region definition 2021-03-31 14:23:32 +01:00
harmut01 3d1051dbbe Maxim: Add bare metal support to targets
Add heap load region to scatter file and update `targets.json` to
provide baremetal support to the following targets: SDT32620B,
SDT32625B, MAX32620FTHR, MAX32625MBED, MAX32625PICO, and MAX32630FTHR.
2021-03-26 09:07:52 +00:00
George Psimenos 9cc2deb446 typo 2021-03-25 15:25:40 +00:00
George Psimenos 61cfaa15cd Update UART pin names & add MBED_CONF_TARGET_STDIO_UART overrides 2021-03-23 11:17:17 +00:00
George Psimenos 885cdef5f7 Add standard pin-names validation script & tests 2021-03-18 17:01:53 +00:00
Martin Kojtal 88a242f749
Merge pull request #14306 from hugueskamba/hk_cmake_create_cmsis_cortex_libs
CMake: Create CMSIS library targets to remove dependency on MBED_TARGET_LABELS
2021-02-23 08:36:49 +00:00
Hugues Kamba 80c679cc27 MAX32625: Fix CMake build
* Correct board CMake target name to match board name
* Make MAX32625 depend on MAXIM CMake target to inherit its include dirs
* Correct path to linker files
2021-02-22 13:38:32 +00:00
Hugues Kamba 2c3481297c CMake: Create CMSIS library targets to remove dependency on MBED_TARGET_LABELS
This goes towards eventually removing reliance on targets.json to specify
the requirements of Mbed targets.
2021-02-19 13:39:32 +00:00
Martin Kojtal 94f3c7b89b Maxim CMake: fix sources for max32630fthr 2021-02-15 08:58:39 +00:00
Martin Kojtal cbc6af518f
Apply suggestions from code review
Co-authored-by: Hugues Kamba-Mpiana <41612201+hugueskamba@users.noreply.github.com>
2021-02-14 19:21:14 +00:00
Martin Kojtal 0311d81314 CMake MAX32630: fix linker script
Forgotten to set it for the target
2021-02-11 17:42:53 +00:00
Martin Kojtal 2e320bcfe9 CMake MAX32630: fix target name 2021-02-11 17:40:07 +00:00
Martin Kojtal 9c9d83343c CMake Maxim: fix some errors with renames 2021-02-11 17:34:48 +00:00
Martin Kojtal 351d6749cb CMake Maxim: fix targets naming
Add boot no-boot targets for max32625. This should be cleaned up better once we get
the folder structure enforced by the old tools fixed.
2021-02-11 17:24:19 +00:00
Ahmet Alincak a84827e0f1 Gate ticker (timer0) clock on deepsleep 2021-02-08 21:01:29 +03:00
Ahmet Alincak 2ca990eb53 Use MBED_ALIGN and remove mbed.h from header 2021-01-11 22:53:36 +03:00
Ahmet Alincak 1fd7de0eee Update header file to include SPDX identifier 2021-01-11 15:04:55 +03:00
Ahmet Alincak c63a9b7ff8 Maxim targets; Add USB stack implementation 2021-01-11 15:04:48 +03:00
Martin Kojtal bd3f13c937
Merge pull request #13969 from hugueskamba/hk_remove_MAXIM_support
Maxim: Remove support for some Maxim targets
2020-12-10 13:49:32 +00:00
Hugues Kamba 19f3d4c265 CMake: Add support for Maxim MAX32630 targets
Add CMakeLists.txt file to for the target family source files.
2020-12-01 15:08:32 +00:00
Hugues Kamba deac9c047c CMake: Add support for Maxim MAX32625 targets
Add CMakeLists.txt file to for the target family source files.
2020-12-01 15:08:32 +00:00
Hugues Kamba 348b4e9770 CMake: Add support for Maxim MAX32620C targets
Add CMakeLists.txt file to for the target family source files.
2020-12-01 15:08:32 +00:00
Hugues Kamba 6ccee16e87 MAX32610: Remove source files
The targets of this family are not supported by Mbed OS 6
2020-11-26 13:47:20 +00:00
Hugues Kamba 4a0718c697 MAX32620HSP: Remove source files
This target was not supported by Mbed OS 6
2020-11-26 13:23:18 +00:00
Hugues Kamba ff5fca636b MAX32600MBED: Remove support
The target is no longer supported by Maxim
2020-11-26 12:58:59 +00:00
Martin Kojtal 61aa6817f0
Merge pull request #13724 from harmut01/license_refactor
Add license notice to Arm copyrighted source files
2020-10-16 09:09:53 +01:00
Harrison Mutai 4fad1112e5 Add SPDX license identifier to Arm files
Add license identifier to files which Arm owns the copyright to,
and contain either BSD-3 or Apache-2.0 licenses. This is to address
license errors raised by scancode analysis.
2020-10-15 10:47:27 +01:00
Peter B 669c703e46
Prevent warnings during compilations for MAX32620C
In Mbed OS 5.12.0 mbed_toolchain.py has been introduced, that automatically defines the macro TARGET_NAME (on line 241). This leads to a high number of generating the following warning: 'TARGET_NAME' macro redefined while compiling code for MAX32620C on Mbed OS 5.12 and above. This patch fixes it, while it keeps the definition in place for lower versions that lack mbed_toolchain.py
2020-10-08 17:28:12 +02:00
Peter B fee7a1c79a
Prevent warnings during compilations for MAX32625
In Mbed OS 5.12.0 mbed_toolchain.py has been introduced, that automatically defines the macro TARGET_NAME (on line 241). This leads to a high number of generating the following warning: 'TARGET_NAME' macro redefined while compiling code for MAX32625 on Mbed OS 5.12 and above. This patch fixes it, while it keeps the definition in place for lower versions that lack mbed_toolchain.py
2020-10-08 17:25:38 +02:00
Peter B 48c71b3649
Prevent warnings during compilations for MAX32630FTHR
In Mbed OS 5.12.0 mbed_toolchain.py has been introduced, that automatically defines the macro TARGET_NAME (on line 241). This leads to a high number of generating the following warning: 'TARGET_NAME' macro redefined while compiling code for MAX32630FTHR on Mbed OS 5.12 and above. This patch fixes it, while it keeps the definition in place for lower versions that lack mbed_toolchain.py
2020-10-08 17:23:06 +02:00
Martin Kojtal 468372e759
Merge pull request #13492 from talorion/fix-PwmOut-resets-after-suspend
Fix pwm out resets after suspend
2020-09-10 12:40:18 +01:00
Jaeden Amero 612b148fd4 stack: armc: Workaround config passing bug
Workaround a bug where the boot stack size configuration option is not
passed on to armlink, the Arm Compiler's linker. Prefer
MBED_CONF_TARGET_BOOT_STACK_SIZE if present, as this is what the
configuration system should provide. Fall back to MBED_BOOT_STACK_SIZE
if MBED_CONF_TARGET_BOOT_STACK_SIZE is not defined, as in the case of
buggy tools. If both MBED_CONF_TARGET_BOOT_STACK_SIZE and
MBED_BOOT_STACK_SIZE are not defined, then we fall back to a hard-coded
value provided by the linkerscript. See
https://github.com/ARMmbed/mbed-os/issues/13474 for more information.
2020-09-10 10:08:38 +01:00
Jaeden Amero 39e69d328d Use boot stack size from config system
To allow overriding of the boot stack size from the Mbed configuration
system, consistently use MBED_CONF_TARGET_BOOT_STACK_SIZE rather than
MBED_BOOT_STACK_SIZE.

Fixes #10319
2020-09-10 10:08:38 +01:00
talorion 3db5d7b595 pwmout - MAX32630 - add read methods for period and pulsewidth 2020-09-02 13:39:12 +02:00
talorion f9962162d9 pwmout - MAX32625 - add read methods for period and pulsewidth 2020-09-02 13:39:12 +02:00
talorion fea23ef0a2 pwmout - MAX32620C - add read methods for period and pulsewidth 2020-09-02 13:39:12 +02:00
talorion ebc2bc23b1 pwmout - MAX32620 - add read methods for period and pulsewidth 2020-09-02 13:39:12 +02:00
talorion d33e06ed46 pwmout - MAX32610 - add read methods for period and pulsewidth 2020-09-02 13:39:11 +02:00
talorion b27b8698b4 pwmout - MAX32600 - add read methods for period and pulsewidth 2020-09-02 13:39:11 +02:00
Marcelo Salazar be34117b4c Remove MAX32625NEXPAQ target 2020-04-30 09:56:36 +01:00
Marcelo Salazar e2136cc395 Remove MAXWSNENV target 2020-04-30 09:56:36 +01:00
Martin Kojtal 2203549b37
Merge pull request #10924 from ghseb/free-serial-resources-2
Free serial resources if not needed anymore
2019-10-30 09:45:22 +01:00
Martin Kojtal df2cfae85b
Maxim: fix serial free
There is no Shutdown function for this target
2019-10-29 13:33:12 +00:00
Sebastian Stockhammer 2e81dad1f3 Fix build 2019-10-24 14:02:12 +02:00
Sebastian Stockhammer a77a49d6d2 Add serial_free definition 2019-10-24 13:07:37 +02:00
Sebastian Stockhammer 37b54ca44b Add serial_free stub 2019-10-24 10:24:35 +02:00
Kevin Bracey fb6aa3ef4f Clean up ARM toolchain heap+stack setup in targets
ARM Compiler 6.13 testing revealed linker errors pointing out
conflicting use of `__user_setup_stackheap` and
`__user_initial_stackheap` in some targets. Remove the unwanted
`__user_initial_stackheap` from the targets - the setup is
centralised in the common platform code.

Looking into this, a number of other issues were highlighted

* Almost all targets had `__initial_sp` hardcoded in assembler,
  rather than getting it from the scatter file. This was behind
  issue #11313. Fix this generally.
* A few targets' `__initial_sp` values did not match the scatter
  file layout, in some cases meaning they were overlapping heap
  space. They now all use the area reserved in the scatter file.
  If any problems are seen, then there is an error in the
  scatter file.
* A number of targets were reserving unneeded space for heap and
  stack in their startup assembler, on top of the space reserved in
  the scatter file, so wasting a few K. A couple were using that
  space for the stack, rather than the space in the scatter file.

To clarify expected behaviour:

* Each scatter file contains empty regions `ARM_LIB_HEAP` and
  `ARM_LIB_STACK` to reserve space. `ARM_LIB_STACK` is sized
  by the macro `MBED_BOOT_STACK_SIZE`, which is set by the tools.
  `ARM_LIB_HEAP` is generally the space left over after static
  RAM and stack.
* The address of the end of `ARM_LIB_STACK` is written into the
  vector table and on reset the CPU sets MSP to that address.
* The common platform code in Mbed OS provides `__user_setup_stackheap`
  for the ARM library. The ARM library calls this during startup, and
  it calls `__mbed_user_setup_stackheap`.
* The default weak definition of `__mbed_user_setup_stackheap` does not
  modify SP, so we remain on the boot stack, and the heap is set to
  the region described by `ARM_LIB_HEAP`. If `ARM_LIB_HEAP` doesn't
  exist, then the heap is the space from the end of the used data in
  `RW_IRAM1` to the start of `ARM_LIB_STACK`.
* Targets can override `__mbed_user_setup_stackheap` if they want.
  Currently only Renesas (ARMv7-A class) devices do.
* If microlib is in use, then it doesn't call `__user_setup_stackheap`.
  Instead it just finds and uses `ARM_LIB_STACK` and `ARM_LIB_HEAP`
  itself.
2019-10-23 14:53:49 +03:00