Hi,
sounds odd but is not, I try to run samples and my own project on a nano 33 ble, and with the first upload
of blinky it seams that the system start and crash (ttyACM0 is coming and going).
Quick search in the Arduino SDK give me a hint that the memory layout differ from what it defined in
the ncs.
linker script of Arduino:
MEMORY
{
FLASH (rx) : ORIGIN = 0x10000, LENGTH = 0xf0000
RAM_NVIC (rwx) : ORIGIN = 0x20000000, LENGTH = 0x100
RAM_CRASH_DATA (rwx) : ORIGIN = (0x20000000 + 0x100), LENGTH = 0x100
RAM (rwx) : ORIGIN = ((0x20000000 + 0x100) + 0x100), LENGTH = (0x40000 - (0x100 + 0x100))
}
there is a nvic and crash data reserved in the memory and the program loaded at offset of 0x200
I make that in my overlay
&sram0 {
reg = <0x20000200 0x3fe00>; /* 0x40000 - 0x200 */
};
and the generated linker script becomes
MEMORY
{
FLASH (rx) : ORIGIN = (0x0 + 0x10000), LENGTH = 0xe8000
SRAM (wx) : ORIGIN = 0x20000200, LENGTH = (255 * 1K)
IDT_LIST (wx) : ORIGIN = (0x20000200 + (255 * 1K)), LENGTH = 2K
}
Fine!
The crash stops, but blinky is not blinking
Where is the missing link?
Chris :wq