PCAN Router-FD 03_TIMER_IO Example

Universal Programmable Converter for CAN FD and CAN
Locked
blbus
Posts: 9
Joined: Sun 10. May 2020, 23:02

PCAN Router-FD 03_TIMER_IO Example

Post by blbus » Tue 8. Dec 2020, 03:59

I am testing the VSC tool chain - downloaded latest package from site. Examples 01_ROUTING and 02_EEPROM load and make fine, but the example 03_TIMER_IO (unmodified) has error with uint32_t type not defined. I've tried to work around but am having issues, and of course, this is the example of interest to me.
The following:
uint32 error.PNG
uint32 error.PNG (27.61 KiB) Viewed 4959 times

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: PCAN Router-FD 03_TIMER_IO Example

Post by M.Heidemann » Tue 8. Dec 2020, 11:00

Hello,

This issue is due to intellsense not finding a definition for "uint32_t",
The exampe will still compile as its all properly resolved by the compiler.

You can mitigate this Intellisense-beheaviour by adding the defintion, for example in you "main.c" underneath the "includes":

Code: Select all

typedef __uint32_t uint32_t;
This should resolve the issues with intellisense regarding this.

Please report back to me regarding this.


Best Regards


Marvin
---
Marvin Heidemann
PEAK-Support Team

blbus
Posts: 9
Joined: Sun 10. May 2020, 23:02

Re: PCAN Router-FD 03_TIMER_IO Example

Post by blbus » Tue 8. Dec 2020, 13:53

Thank you. That was a quick fix, and is much appreciated.
~Brad

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: PCAN Router-FD 03_TIMER_IO Example

Post by M.Heidemann » Tue 8. Dec 2020, 13:56

Hello,

Thank you for your feedback!

Best Regards

Marvin

-closed-
---
Marvin Heidemann
PEAK-Support Team

Locked