Skip to content

Commit

Permalink
fix(Examples, PeriphDrivers): Miscellaneous Bug Fixes from Release Te…
Browse files Browse the repository at this point in the history
…sting (#641)

* Fix context B grayscale bug

* Call color correction function from debayering examples

* clang-format hm0360_color register table

* feat(CMSIS): Add Get DMA Channel IRQ macro for all parts

* fix(Examples): Fix MXC_RTC_GetSecond functions in Demo examples

* fix(Examples): Fix MXC_RTC_GetSecond functions in Demo examples

* fix(Examples): Fix deprecated warnings with RTC SubSecond and Second function in examples

* fix memset issue in Wearlevelling

* Fix errors in ImgCapture/CameraIF READMEs, clean up documentation

* Revert "fix(Examples): Fix deprecated warnings with RTC SubSecond and Second function in examples"

- We can't CTRL+F replace these functions, we need to pass in an output
  pointer for the new ones

This reverts commit e795745.

* Fix CameraIF NewHaven display bug

* MAX78002 CSI2: Fix SRAM initialization lockup (Pending SPI IRQ not cleared)

* fix(Examples): Use new Controller terminology in SPI example

* (MSDKGen) Explicitly source ~/.zshrc on macOS, update cam01-facedetect_demo project files

* Update MacOS make install instructions to explicitly target ~/.zshrc

* MAX78000 facial_recognition: Disable TFT by default

* Add MAX78000 to list of SDHC supported parts

* Fix typo in SDHC libinfo.json

* Fix macro cast and buffer index bugs in the Flash example

* fix(Examples): Use New get RTC subseconds and seconds functions

* Fix MAX78002 CAMERAIF README typos

* style(PeriphDrivers): Fix whitespace linter error

* clang-format bot reformatting.

* Wipe Libraries/PeriphDrivers/bin completely for build tests

* Remove some MAX78000 CAM01_RevA warnings

---------

Co-authored-by: Sihyung Woo <sihyung.woo@analog.com>
Co-authored-by: Vignesh-VVadivel <Vignesh.Vadivel@analog.com>
Co-authored-by: Scheiffler <Jacob.Scheiffler@analog.com>
Co-authored-by: sihyung-maxim <sihyung-maxim@users.noreply.github.com>
  • Loading branch information
5 people authored Jun 29, 2023
1 parent 3dfff94 commit 0c7efe7
Show file tree
Hide file tree
Showing 823 changed files with 8,369 additions and 1,891 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from rich.console import Console
from rich.text import Text
import time
import shutil

blacklist = [
"MAX32570",
Expand Down Expand Up @@ -94,6 +95,9 @@ def test(maxim_path : Path = None, targets=None, boards=None, projects=None):

console = Console(emoji=False, color_system="standard")

# Remove the periphdrivers build directory
shutil.rmtree(Path(maxim_path) / "Libraries" / "PeriphDrivers" / "bin", ignore_errors=True)

# Get list of target micros if none is specified
if targets is None:
targets = []
Expand Down
9 changes: 9 additions & 0 deletions Examples/MAX32520/AES/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,29 @@
"label": "build",
"type": "shell",
"command": "make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean",
"type": "shell",
"command": "make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean-periph",
"type": "shell",
"command": "make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,29 @@
"label": "build",
"type": "shell",
"command": "make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean",
"type": "shell",
"command": "make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean-periph",
"type": "shell",
"command": "make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,29 @@
"label": "build",
"type": "shell",
"command": "make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean",
"type": "shell",
"command": "make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean-periph",
"type": "shell",
"command": "make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,29 @@
"label": "build",
"type": "shell",
"command": "make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean",
"type": "shell",
"command": "make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean-periph",
"type": "shell",
"command": "make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,29 @@
"label": "build",
"type": "shell",
"command": "make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean",
"type": "shell",
"command": "make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean-periph",
"type": "shell",
"command": "make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,29 @@
"label": "build",
"type": "shell",
"command": "make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean",
"type": "shell",
"command": "make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean-periph",
"type": "shell",
"command": "make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
Expand Down
9 changes: 9 additions & 0 deletions Examples/MAX32520/ARM-DSP/arm_fir_example/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,29 @@
"label": "build",
"type": "shell",
"command": "make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean",
"type": "shell",
"command": "make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean-periph",
"type": "shell",
"command": "make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,29 @@
"label": "build",
"type": "shell",
"command": "make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean",
"type": "shell",
"command": "make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean-periph",
"type": "shell",
"command": "make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,29 @@
"label": "build",
"type": "shell",
"command": "make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean",
"type": "shell",
"command": "make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean-periph",
"type": "shell",
"command": "make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,29 @@
"label": "build",
"type": "shell",
"command": "make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean",
"type": "shell",
"command": "make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
{
"label": "clean-periph",
"type": "shell",
"command": "make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"osx":{
"command": "source ~/.zshrc && make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}"
},
"group": "build",
"problemMatcher": []
},
Expand Down
Loading

0 comments on commit 0c7efe7

Please sign in to comment.