cancel
Showing results for 
Search instead for 
Did you mean: 

How can i configure amason freertos source code on uVision 5?

Jpark.1
Associate II

I downloaded amason freertos source code from github site below.

https://github.com/aws/amazon-freertos

and there was no problem when i worked on AC6 IDE.

because enviroment file is included in source code.

but when i created uVision project by myself. it didn't work.

it stopped at hardfault like below.

0690X00000A9VZAQA3.jpg

0690X00000A9VZFQA3.jpg

if possible, I want to convert .ld file into .sct file.

but i am not get used to both file format.

please refer to attached file.

as for a reference.. I have already generated project file including Freertos for uVision 5 on CubeMx. but failed..

2 REPLIES 2
Jpark.1
Associate II

another comment :

First execution was run well after building and loading, there was no problem.

and then click "RST" button on uVision IDE.

when i run it second times, it goes into hardfault_handler..

Jpark.1
Associate II

I have solved this problem.

it's memory allocation error in scatter loader file.

I allocated UNINIT_FIXED_LOC section into external memory

I finally got to know the error debugging flash write execution.

>> before modification

LR_IROM1 0x08000000 0x00100000 {  ; load region size_region

 ER_IROM1 0x08000000 0x00074000 { ; load address = execution address

:

}

}

LR_uninit_fixed_loc 0x08074000 0x3000 { ; it's external memory allocation.

 ER_uninit_fixed_loc 0x08074000 0x3000 {

  .ANY (UNINIT_FIXED_LOC)

 }

 }

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

>> after modification

LR_IROM1 0x08000000 0x00100000 {  ; load region size_region

 ER_IROM1 0x08000000 0x00074000 { ; load address = execution address

  *.o (RESET, +First)

  *(InRoot$$Sections)

  .ANY (+RO)

 }

 ER_uninit_fixed_loc 0x08074000 0x3000 { it's internal memory allocation.

  .ANY (UNINIT_FIXED_LOC)

 }   

 ZI_IRAM1 0x20000000 0x00018000 { ; ZI data

  .ANY (+ZI)

  }

 RW_IRAM1 0x10000000 0x00008000 { ; RW data

  .ANY (+RW)

  .ANY (.freertos_heap2)

  }

}