due_can icon indicating copy to clipboard operation
due_can copied to clipboard

Due_can execute code in ram classe error

Open autoprog opened this issue 6 years ago • 2 comments

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.

autoprog avatar Aug 01 '19 13:08 autoprog

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?

collin80 avatar Aug 01 '19 22:08 collin80

Hi Collin, thanks your help, [ SOLVED ] image

my case ram, used source.c = ok

thanks, Carlos.

autoprog avatar Aug 05 '19 12:08 autoprog