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

Due_can execute code in ram classe error #41

Open
autoprog opened this issue Aug 1, 2019 · 2 comments
Open

Due_can execute code in ram classe error #41

autoprog opened this issue Aug 1, 2019 · 2 comments

Comments

@autoprog
Copy link

autoprog commented Aug 1, 2019

Hi,
I tested Due_can code in flash runnig ok.
now compile program for execute in RAM, cause error.

I tested IDE PIO and eclipse.

othes function with ISR ok, serial, TC2...

Problems " ", call classe CANRaw, and write register in m_pCan

see my function test:
can_classe error

if write register error,
Can0.init( CAN_BPS_500K);
Can0.watchFor();

thanks,
Carlos.

@collin80
Copy link
Owner

collin80 commented Aug 1, 2019

I have to admit that I have never tried to move the routines into RAM. I do not know why doing so would cause a hard fault in code that accesses the baud rate register. The most likely reason would be for m_pCan to be null but it should not be. Do you have a full sketch that demonstrates this problem?

@autoprog
Copy link
Author

autoprog commented Aug 5, 2019

Hi Collin, thanks your help,
[ SOLVED ]
image

my case ram, used source.c = ok

thanks,
Carlos.

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

No branches or pull requests

2 participants