Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Boards): Add weak definition of GPIO0 IRQ handler to MAX32665's MAXREFDES178 BSP #664

Merged
merged 2 commits into from
Jul 13, 2023

Conversation

Jacob-Scheiffler
Copy link
Contributor

@Jacob-Scheiffler Jacob-Scheiffler commented Jul 13, 2023

Description

Migrating the PushButton code to MiscDrivers caused existing cube camera projects to hang because they relied on the GPIO0_IRQHandler defined in the old implementation of pb.c. This GPIO handler was not included in the MAX32665's MAXREFDES178 BSP because it does not have any push buttons connected to GPIO0. This PR adds a weak definition to the MAX32665's MAXREFDES178 BSP to support the legacy implementation while cube camera projects get updated with their own definition of GPIO0_IRQHandler.

Issue #49 has been submitted to the MaximIntegratedAI/refdes repo to request the GPIO0_IRQHandler get added to each of their projects, however this change should still be added in the meantime because it doesn't seem like anybody has been maintaining that repo.

Checklist Before Requesting Review

  • PR Title follows correct guidelines.
  • Description of changes and all other relevant information.
  • (Optional) Link any related Github issues using a keyword
  • (Optional) Provide info on any relevant functional testing/validation. For API changes or significant features, this is not optional.

@Jacob-Scheiffler Jacob-Scheiffler changed the title fix(Boards): Adding weak definition of GPIO0 handler to MAX32666's MAXREFDES178 BSP fix(Boards): Adding weak definition of GPIO0 handler to MAX32665's MAXREFDES178 BSP Jul 13, 2023
@Jacob-Scheiffler Jacob-Scheiffler requested review from Jake-Carter, lorne-maxim and sihyung-maxim and removed request for lorne-maxim July 13, 2023 15:03
Copy link
Contributor

@Jake-Carter Jake-Carter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed we should also fix this in the refdes repo

@vicloginov seems to be some issues with OV5640_DVP logic for AI87 CSI driver builds as of #644. Not sure how this slipped through the build autotests

image

@Jacob-Scheiffler I'm investigating the build failure now...

MAX78002 (EvKit_V1): CameraIF failed.
Build command: make -r -j 8 --output-sync=target --no-print-directory TARGET=MAX78002 MAXIM_PATH=/home/runner/work/msdk/msdk BOARD=EvKit_V1 FORCE_COLOR=1
Errors:
----------------------------------------
/home/runner/work/msdk/msdk/Libraries/MiscDrivers/Camera/mipi_camera.c: In 
function 'mipi_camera_init':
/home/runner/work/msdk/msdk/Libraries/MiscDrivers/Camera/mipi_camera.c:264:41: 
error: 'mipi_camera_settings_t' {aka 'struct _mipi_camera_settings_t'} has no 
member named 'line_handler'
  264 |     g_req.line_handler = camera_settings.line_handler;
      |                                         ^
make: *** 
[/home/runner/work/msdk/msdk/Libraries/CMSIS/Device/Maxim/GCC/gcc.mk:299: 
/home/runner/work/msdk/msdk/Examples/MAX78002/CameraIF/build/mipi_camera.o] 
Error 1
make: *** Waiting for unfinished jobs....
----------------------------------------

@Jake-Carter
Copy link
Contributor

Build error fixed in #667

@sihyung-maxim sihyung-maxim changed the title fix(Boards): Adding weak definition of GPIO0 handler to MAX32665's MAXREFDES178 BSP fix(Boards): Add weak definition of GPIO0 handler to MAX32665's MAXREFDES178 BSP Jul 13, 2023
@Jacob-Scheiffler Jacob-Scheiffler changed the title fix(Boards): Add weak definition of GPIO0 handler to MAX32665's MAXREFDES178 BSP fix(Boards): Add weak definition of GPIO0 IRQ handler to MAX32665's MAXREFDES178 BSP Jul 13, 2023
@Jacob-Scheiffler Jacob-Scheiffler merged commit 8cfaec1 into main Jul 13, 2023
7 checks passed
@Jake-Carter Jake-Carter deleted the fix/mrd178_lcd branch July 24, 2023 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants