Skip to content

Fixes/improvements: psoc6 test application#48

Merged
dgarske merged 3 commits intowolfSSL:masterfrom
danielinux:psoc6-app-fix
May 22, 2020
Merged

Fixes/improvements: psoc6 test application#48
dgarske merged 3 commits intowolfSSL:masterfrom
danielinux:psoc6-app-fix

Conversation

@danielinux
Copy link
Copy Markdown
Member

  • fixed linker script
  • linking with cy_gpio/cy_device for testing boot leds/pins

Copy link
Copy Markdown
Member

@dgarske dgarske left a comment

Choose a reason for hiding this comment

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

Getting error:

Using ./config/examples/cypsoc6.config and make clean && make:

app_psoc6.c:29:10: fatal error: cy_gpio.h: No such file or directory
   29 | #include "cy_gpio.h"
      |          ^~~~~~~~~~~

Comment thread test-app/Makefile
# $(CYPRESS_PDL)/devices/templates/COMPONENT_MTB/COMPONENT_CM0P/system_psoc6_cm0plus.o

ifeq ($(TARGET),psoc6)
LSCRIPT_TEMPLATE:=ARM-psoc6.ld
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Check indentation here. Some Makefiles require tabs.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed, thanks David! In this case it's within ifeq-s and not in a recipe, tabs cannot be used and indentation is just for readability and not enforced by makefile's syntax.

@danielinux
Copy link
Copy Markdown
Member Author

Getting error:

Using ./config/examples/cypsoc6.config and make clean && make:

app_psoc6.c:29:10: fatal error: cy_gpio.h: No such file or directory
   29 | #include "cy_gpio.h"
      |          ^~~~~~~~~~~

do you have psoc6pdl in lib/psoc6? The file should be in the include path due to CFLAGS+=-I$(CYPRESS_PDL)/drivers/include/ in test-app/Makefile

@dgarske
Copy link
Copy Markdown
Member

dgarske commented May 22, 2020

Yes:

find . -name cy_gpio.h
./lib/psoc6pdl/drivers/include/cy_gpio.h

Guessing its because the example .config is using a path that assumes its in test-app

Copy link
Copy Markdown
Member

@dgarske dgarske left a comment

Choose a reason for hiding this comment

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

Thanks!

@dgarske dgarske merged commit c840851 into wolfSSL:master May 22, 2020
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.

2 participants