FAQ's
  • How do I allocate RAM variable to a fixed address?
    • RAM variables can be assigned to fixed addresses using the segnoinit pragma and seginit pragma.
      The segnoinit pragma is a pragma for allocating variables without initialization, and the seginit pragma is a pragma for allocating variables with initialization to a specific area.

      #pragma segnoinit 0xE000 /*Example1 */
      int ni_var1; /*ni_var1 is allocated to address 0xE000 */
      int ni_var2; /*ni_var2 is allocated to address 0xE002 */
      #pragma segnoinit /* End of segnoinit pragma (optional) */

      #pragma seginit 0xE100 /*Example1 */
      int var1 = 0x1234; /*var1 is allocated to address 0xE100 */
      int var2 = 0x5678; /*var2 is allocated to address 0xE102 */
      #pragma seginit /* End of seginit pragma (optional) */

      Please also refer to "How to Allocate Functions and Variables to Specific Areas" in "Sample Program / Application Note" on the support site (URL below).
      https://www.lapis-semi.com/cgi-bin/MyLAPIS/regi/login.cgi

      Related Products: ML610(Q)40x, ML610(Q)42x, ML610(Q)47x, ML610(Q)48x, ML610Q10x, ML610Q11x, ML610Q17x, ML610Q30x, ML610Q35x, ML610Q36x, ML610Q38x, ML610Q41x, ML610Q43x, ML610Q46x, ML620Q13x, ML620Q15x, ML620Q416/ML620Q418, ML620Q503H/ML620Q504H/ML620Q506H, ML62Q12xx, ML62Q13xx, ML62Q14xx, ML62Q15xx/ML62Q18xx, ML62Q16xx, ML62Q17xx

    • Products: General-purpose MCUs (16bit) , Speech playback MCUs (8bit)