add support for Microchip PIC32CZ and PIC32CK#571
add support for Microchip PIC32CZ and PIC32CK#571danielinux merged 10 commits intowolfSSL:masterfrom
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for Microchip PIC32CZ and PIC32CK by introducing new target-specific applications, HAL implementations, linker scripts, and configuration files. Key changes include:
- Adding test applications and HAL support files for PIC32CZ and PIC32CK.
- Updating Makefile, arch.mk, and configuration examples to incorporate the new targets.
- Enhancing documentation to detail the new target configuration and programming/testing procedures.
Reviewed Changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| test-app/app_pic32cz.c | Adds a test application for the PIC32CZ target. |
| test-app/app_pic32ck.c | Adds a test application for the PIC32CK target (note header error). |
| Makefile, arch.mk | Updates build configuration to support new targets. |
| hal/.c, hal/.h, *.ld | New HAL implementations, register definitions, and linker scripts for both PIC32CZ and PIC32CK. |
| docs/Targets.md, config/examples | Updates documentation and configuration for the new targets. |
dgarske
left a comment
There was a problem hiding this comment.
Looks clean to me on initial review. I plan to test on actual hardware later this week.
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for the Microchip PIC32CZ and PIC32CK families to wolfBoot by introducing new target-specific code, linker scripts, board test applications, configuration files, and build workflow updates.
- Adds PIC32CZ and PIC32CK application and hardware abstraction layer (HAL) files.
- Provides updated linker scripts and configuration examples.
- Updates the documentation and build system to support the new targets.
Reviewed Changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| test-app/app_pic32cz.c | New test application for PIC32CZ |
| test-app/app_pic32ck.c | New test application for PIC32CK |
| test-app/Makefile | Added object definitions for PIC32CZ/C targets |
| include/hal.h | Minor include update |
| hal/pic32cz_registers.h | New register definitions for PIC32CZ |
| hal/pic32cz.ld | New linker script for PIC32CZ |
| hal/pic32cz.c | New HAL implementation for PIC32CZ |
| hal/pic32ck_registers.h | New register definitions for PIC32CK |
| hal/pic32ck.ld | New linker script for PIC32CK |
| hal/pic32ck.c | New HAL implementation for PIC32CK |
| hal/pic32c.h | New common interface for PIC32 targets |
| hal/hal.c | Added additional flash test functions |
| docs/Targets.md | Documentation updates for new targets |
| config/examples/pic32cz.config | Example configuration for PIC32CZ |
| config/examples/pic32ck.config | Example configuration for PIC32CK |
| arch.mk | Build system update to handle PIC32CZ/C targets |
| .github/workflows/test-build-pic32cx.yml | New GitHub workflow to build PIC32CZ and PIC32CK targets |
danielinux
left a comment
There was a problem hiding this comment.
Minor comments/doc adjustments. Port looks good.
danielinux
left a comment
There was a problem hiding this comment.
All issues resolved. This looks very good now. Thanks!
There was a problem hiding this comment.
Pull Request Overview
This pull request adds support for Microchip PIC32CZ and PIC32CK targets by introducing new test applications, linker scripts, register definitions, HAL implementations, configuration files, and documentation updates. Key changes include:
- New test applications for PIC32CZ and PIC32CK (app_pic32cz.c and app_pic32ck.c) to demonstrate boot LED behavior.
- Addition of target-specific linker scripts, register definitions, and HAL implementations.
- Updates to the Makefile, configuration examples, and Targets documentation to integrate the new targets.
Reviewed Changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| test-app/app_pic32cz.c and app_pic32ck.c | New bare-metal applications for PIC32CZ and PIC32CK with direct register manipulation for LED control. |
| Makefile, arch.mk, and configuration files | Integration of target-specific build flags and object files for PIC32CZ and PIC32CK. |
| HAL and linker script files | New HAL implementations and linker scripts supporting the new targets. |
| docs/Targets.md | Documentation updates detailing configuration and programming for PIC32CZ and PIC32CK. |
… and CZ targets. Added note about power cycle after programming.
dgarske
left a comment
There was a problem hiding this comment.
Excellent work! Fully tested both PIC32CK and PIC32CZ 91
danielinux
left a comment
There was a problem hiding this comment.
Some typos / minor grammar in Targets.md.
Know limitation: