ATSAM3X8E memory reset

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,
projects with IDE

ARDUINO IDE: Arduino Due

PIO, ATSAM3X8, Framework Arduino.

visual micro vs atmel studio: Framework Arduino.

 

simple bootloader on Flash, loader code in RAM call code, execute.
load code call direct ( my entry_main_ram) 0x20000000 area ok.

see: run ok , file flash.ld and sram.ld compiling separately (flash)

//--------------------------------

void entry_main_ram(){
uint32_t led =0;
 while(1){
     digitalWrite( L1, led );  running sram ok...simple led
      led ^=1;
   }
}
//----------------------
problems violation cause reset processor:
void entry_main_ram(){
bool bl = true;            
 while(1){

    digitalWrite( L1, bl = !bl ); not effects, in flash ok
  set_invet_led();  simple call reset processor

  }
}
//---------------------see list call reset processor
Serial.begin(9600); reset processor
pmc_enable_periph_clk(ID_CAN0); reset processor
can_init(CAN0, 84000000, 500); reset processor

grobal variable simple set ( uint32 temp1; ) temp1 = 0x1234;   reset precessor

execute code on ram error.
thanks,
Carlos.

This topic has a solution.
Last Edited: Tue. Sep 15, 2020 - 07:05 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hi,

problems solved,

thanks,

Carlos.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Okay, but how? Can you describe solution?