Community
cancel
Showing results for 
Search instead for 
Did you mean: 
DKay2
Novice
1,386 Views

Project across flash and OTP flash

Jump to solution

It would be convenient to have a project build across both of the memory spaces of Flash and OTP Flash to provide 40K for the project.

It is not so bad to have to tell the linker to force certain modules into certain sections. But it should be linked together. In the existing BSP examples the links between the OPT Flash and the regular Flash are handled manually (ie entry_point = ... etc).

Does any one have a windows build environment that handles this already. The linker scripts would be fairly straight forward for me to handle (loading start code at 0x150, loading a heap of 0xff at 0 etc) but i do not have a path for getting the resulting code into the target device (D2000). I could probably split the elf file into two binary segments but do not have a path for getting these into the target- Or a path for getting an elf file containing both segments into the target. It would help dev if this was automated.

It seems it would be a common requirement (ie extending the program capacity by 25% for free) so wondered if some one else had already crossed this bridge and could save me some effort :-)

1 Solution
Sergio_A_Intel
Employee
103 Views

Hi DonAlan,

It should be possible to link both memories together, however you need to take into consideration that you'd not be able to use the memory to its fullest. Some memory spaces are already mapped to a fixed address.

There's no environment build or sample code that does this. All the information available is in these documents http://www.intel.com/content/www/us/en/embedded/products/quark/mcu/d2000/documentation.html Intel® Quark™ Microcontroller D2000: Documentation . I'd suggest you to take a look at section 12 of http://www.intel.com/content/www/us/en/embedded/products/quark/mcu/d2000/quark-d2000-datasheet.html Intel® Quark™ Microcontroller D2000: Datasheet . It would also be useful for you to check the \IntelSWTools\ISSM_2016.0.027\firmware\bsp\1.0\soc\quark_d2000\include\qm_soc_regs.h file.

Sergio

View solution in original post

3 Replies
Sergio_A_Intel
Employee
104 Views

Hi DonAlan,

It should be possible to link both memories together, however you need to take into consideration that you'd not be able to use the memory to its fullest. Some memory spaces are already mapped to a fixed address.

There's no environment build or sample code that does this. All the information available is in these documents http://www.intel.com/content/www/us/en/embedded/products/quark/mcu/d2000/documentation.html Intel® Quark™ Microcontroller D2000: Documentation . I'd suggest you to take a look at section 12 of http://www.intel.com/content/www/us/en/embedded/products/quark/mcu/d2000/quark-d2000-datasheet.html Intel® Quark™ Microcontroller D2000: Datasheet . It would also be useful for you to check the \IntelSWTools\ISSM_2016.0.027\firmware\bsp\1.0\soc\quark_d2000\include\qm_soc_regs.h file.

Sergio

View solution in original post

DKay2
Novice
103 Views

Sergio,

Thanks. Ok we can build it from here. Just to check - because I am not so familiar with Intel processors - for the memory model used for D2000 will jumps and calls between the OTP Flash and regular Flash be OK?

Sergio_A_Intel
Employee
103 Views

I looked through the documentation and couldn't find anything that would restrict calls between the two memories. Keep us updated on your progress.

Sergio

Reply