Example MPC5775K Semaphores S32DS_1.0

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Example MPC5775K Semaphores S32DS_1.0

Example MPC5775K Semaphores S32DS_1.0

********************************************************************************

* Detailed Description:

* Application performs basic initialization, setup PLL to maximum allowed freq.,

* start one Z7 core, interrupts initialization, ICache and DCache are disabled

* on both cores because of shared memory, which must not be cached.

*

* There is 4K shared memory defined in the linker file. This memory is used by

* both cores. Both cores access into the structure, which is placed in the shared

* memory. This access is marked as a critical section. Only one core can write

* to the structure at the same time. To ensure this, there are Gates, which

* guarantee data coherence during the access. Only one core can be in critical

* section. Second core has to wait, until first core leaves the critical section

*

*

*

* ------------------------------------------------------------------------------

* Test HW:         MPC5775K-356DS, MPC57xx Motherboard

* MCU:             PPC5775KMMY3B 0N76P

* Terminal:        19200-8-no parity-1 stop bit-no flow control on LINFlexD_0

* Fsys:            PLL0 266MHz

*                    Z4 Core 133MHz

*                    Z7 Core 266MHz

* Debugger:        Lauterbach Trace32

*                  PeMicro USB-ML-PPCNEXUS

* Target:          internal_FLASH (debug mode, release mode)

* EVB connection:  default connection

*

********************************************************************************

标签 (1)
附件
评论

Hi,

there was a strange problem that I couldn't download the code sample.  What should I do now?

Thanks.

aa.bmp

Hi,

in S32DS becomes some GDB problem sometimes (this can be caused many reasons) and it is necessary to "kill" processes, which care about GDB functionality. Please look at the following thread, stanish describes there how to solve this issue.

Eternal "configuring GDB" if P&E Multilink not connected or target OFF

Regards,

Martin  

How do I understand the part in the section.ld file. Is there some reference about IDE LINK file?

0406.bmp

Thanks,

Regards

Ron

Hi Ron,

please look at the gcc linker documentation.

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwid3P-J96TN...

or https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&ved=0ahUKEwid3P-J96TNAhULCcAKHSyZCUw...

About the section you shared:

NOLOAD: The section should be marked as not loadable, so that it will not be loaded into memory when the program is run.

All what is add to section .sharedRAM will be placed to shared. Symbol shared is defined in mem.ld ( shared :    org = 0x40000000,     len = 4k )

Regards,

Martin

无评分
版本历史
最后更新:
‎02-29-2016 05:25 AM
更新人: