Other Parts Discussed in Thread: HALCOGEN
Hi,
I am facing a very strange problem with RM42L432 device. I was create a HALCOGEN project(attached HALCOGEN_Blinky_RAM.zip) and copy the source files to the project. This project blink the LED on N2HET pin(it doesn't matter now). I want to download and run the project direct from RAM(without any touch to the flash locations). I have changed the linker command file(sys_link.cmd) as follows:
--retain="*(.intvecs)" *----------------------------------------------------------------------------*/ /* Memory Map */ MEMORY { VECTORS (X) : origin=0x08000D00 length=0x00000020 STACKS (RW) : origin=0x08000000 length=0x00000D00 RAM (RW) : origin=0x08000d20 length=0x000072E0 } /*----------------------------------------------------------------------------*/ /* Section Configuration */ SECTIONS { .intvecs : {} > VECTORS .text : {} > RAM .const : {} > RAM .cinit : {} > RAM .pinit : {} > RAM .bss : {} > RAM .data : {} > RAM .sysmem : {} > RAM }
After successfull build the project I try to debug it, But I can't reach the main procedure in sys_main.c. And I don't know why... The debug seems to be OK, but nothing is happened. There is only a log info in the console window "CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0". Does it means, that code is stuck on address 0x0 at the start of the flash? Why don't go to the RAM location?
I am attaching the code project RM42L432_blinky_RAM.zip for your reference.
Any idea?
Thank you!
Best regards,
Tomas Lehotsky