8000 Can't Use PWM with Nicla Vision · Issue #641 · arduino/ArduinoCore-mbed · GitHub
[go: up one dir, main page]

Skip to content

Can't Use PWM with Nicla Vision #641

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

Closed
alwint3r opened this issue Mar 15, 2023 · 4 comments
Closed

Can't Use PWM with Nicla Vision #641

alwint3r opened this issue Mar 15, 2023 · 4 comments
Labels
bug Something isn't working nicla

Comments

@alwint3r
Copy link
alwint3r commented Mar 15, 2023

I needed to send PWM signals, but when I tried using either analogWrite or mbed::PwmOut the linker always yield the following error:

pwmout_api.c:(.text.pwmout_init+0x310): undefined reference to `PinMap_PWM_HRTIM'

The version that I used is 3.5.4.

Update: Also not working with 4.0.2 version.

@facchinm
Copy link
Member

Wow, thanks for spotting! It's indeed an issue on our mbed-os fork, I just pushed arduino/mbed-os@a41dabe to fix it.
The proper core release will be available in the next few weeks, but in the meantime you can just copy the patch content (without WEAK ) in your sketch to get it compiling.

@facchinm facchinm added bug Something isn't working nicla labels Mar 17, 2023
@alwint3r
Copy link
Author

Thank you @facchinm, I'll try it out.

@rneurink
Copy link
rneurink commented Apr 7, 2023

@alwint3r Have you got it working?
Even with this patch the whole board stalls. Windows also notes the USB port is not recognized.

I've compared the mbed core to the STM32H7474 discovery board. Arduino uses the high resolution timer or HRTIM for short. Maybe there's a problem with its implementation.

@rneurink
Copy link
rneurink commented Apr 7, 2023

With Mbed trace

++ MbedOS Error Info ++
Error Status: 0x80010130 Code: 304 Module: 1
Error Message: pinmap not found for peripheral
Location: 0x8046A0F
Error Value: 0x2D
Current Thread: main Id: 0x24003050 Entry: 0x80443F5 StackSize: 0x8000 StackMem:
0x24003A18 SP: 0x2400B88C
For more info, visit: https://mbed.com/s/error?error=0x80010130&osver=61700&core=0x411FC271&comp=2&ver=90200&tgt=NICLA_VISION
-- MbedOS Error Info --

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working nicla
Projects
None yet
Development

No branches or pull requests

3 participants
0