> If the ZD has less SRAM than the ZE then you will need to adjust the > location of the interrupt stack in the .ldi file. You need to change > the length of the SRAM section and the calculation for > hal_startup_stack. You should also make a similar adjustment in the > matching .h file. > > In theory that is all you need to do, although it also means that the > data space available for applications will be smaller. You could also > experiment with reducing the size of the interrupt stack, which is a > little generous.
The ZD and ZE have the same amount of SRAM, 64kB. This is correct in the config files. The ZD has 384kB of internal flash, whereas the ZE has 512kB. I have changed the .ldi and .h files for the ROM startup type to reflect 384kB. hal_startup_stack was set to be at start of SRAM+64kB. Reducing the 64kB number didn't seem to help anything, but I'm not sure if it should have done. I also tried reducing the interrupt stack size in my configuration from 4kB down to 2kB, but this also failed to help. I have just built Redboot-ROM from the same set of libraries and flashed it to the board and it appears to consistently boot correctly, suggesting that the board itself should be OK. Any ideas would be appreciated, particularly evidence that applications built in ROM mode work/don't work on other people's boards. Thanks Alan -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss