Attention to Internet Explorer users: ROHM website does not recommend browsing in IE 11. Please use latest browser to ensure the best performance on ROHM website.
I arranged RAM using “segnoinit pragma” in the same order as the RAM definition order. In this arrangement, declaring an array having an odd number of elements caused 1-byte padding to be inserted before the array declared next. How can I arrange these arrays at continuous addresses without inserting padding between them?
To arrange arrays at continuous addresses without inserting padding between them, specify addresses using segnoinit pragma. The following shows an example for changing segnoinit pragma to address specification.
#pragma segnoinit 0xEEBE unsigned char AAA[3]; // Arrange at EEBEh unsigned char BBB[3]; // Arrange at EEC1h #pragma segnoinit