Please let me know the reason why the PWM sample program cannot output PWM.

OS in development environment :Windows10
HARD :(Taiyo Yuden)EBSHSN Series Evaluation Board : Central / Peripherals
CPU :(Nordic) nRF52832 / ARMR Cortex-M4F 32 bit processor 28-pin Land Grid Array / 15GPIOs / SWD
builder :SEGGER Embedded Studio for ARM Release 3.34a Build 2018022300.35192 Windows x64
Copyright 2014-2018 SEGGER Microcontroller GmbH & Co. KG
Copyright 1997-2018 Rowley Associates Ltd.
GCC/BINUTILS: Built using the GNU ARM Embedded Toolchain version 6-2017-q2-update source distribution
Clang/LLVM: Built using the version 5.0.0 source distribution
Soft Ver:nRF5_SDK_15.3.0_59ac345

When I tried to check the PWM output using "pwm_library", it was not output. Do you need to make settings other than the sample program?
[PWM prot]
 BSP_LED_0 = P0.09/NFC
 BSP_LED_1 = P0.10/NFC
thank you

  • Hello,

    Other than changing the default pins in your application, did you do any other changes?

    Did you try the default pins from the application? And is there a particular reason why you need to use exactly GPIOs P0.09 and P0.10? Please note that these are the default NFC pins. I don't know what DK you are using, but if you are using the nRF52832 DK from Nordic, these GPIOs are not actually routed out to the GPIO headers.

    Please see the NFC Interface Antennas section on infocenter.

    I just realized that on the bottom they mention pin 11 and pin 12. That should be pin 09 and pin 10. The figures and diagrams are correct. You need to desolder and solder on some resistors on the pcb in order to use the GPIO headers for pins P0.09 and P0.10, in addition to adding the preprocessor definition: "CONFIG_NFCT_PINS_AS_GPIOS" to your project.

    Best regards,

    Edvin

Related