<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Saju Khakurel on Medium]]></title>
        <description><![CDATA[Stories by Saju Khakurel on Medium]]></description>
        <link>https://medium.com/@sajukhakurel?source=rss-c15f30f802b4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uz-OOmV41m3OU9DT9IA52w.jpeg</url>
            <title>Stories by Saju Khakurel on Medium</title>
            <link>https://medium.com/@sajukhakurel?source=rss-c15f30f802b4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 09:55:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sajukhakurel/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The journey from an interviewee to an interviewer]]></title>
            <link>https://medium.com/@sajukhakurel/the-journey-from-an-interviewee-to-an-interviewer-cda9cef56ff2?source=rss-c15f30f802b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/cda9cef56ff2</guid>
            <category><![CDATA[effort]]></category>
            <category><![CDATA[self-journey]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[empowerment]]></category>
            <category><![CDATA[hard-work-pays-off]]></category>
            <dc:creator><![CDATA[Saju Khakurel]]></dc:creator>
            <pubDate>Wed, 24 Jul 2024 05:52:14 GMT</pubDate>
            <atom:updated>2024-07-24T05:52:14.574Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Three years back, I found myself standing at the doorway of a new life chapter, eager and slightly anxious to embark on my internship at Yatri Motorcycles. Still, in my last semester as an engineering student, I had to keep up with projects, assignments, classes, tests, and this was a very busy time. Although it was a hectic period, the thrill of becoming part of Yatri motorcycles kept me determined. Little did I know that this was only the beginning of a journey, I would cherish this wide.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8q081d86rLQWXHwmmppEvg.jpeg" /></figure><p>Upon the reveal that my other fellow partners in our group project were engaged in part-time or internships due to which I was the only one to finish the tasks we all decided to complete within a week or so, I was devastated. This led me to feel like a setback and a loser. It was when the lockdown was just over but we still had online classes leaving us with a lot of free time at home which we were utilizing to learn AI. However, they, along with learning, also explored the internships and other projects that had yet to occur to me.</p><p>After a short breakdown, I started applying to every company I thought my skills and experience would align. Just then a senior suggested I apply at the Yatri Motorcycles, the first electric bike manufacturer in Nepal, and try out my luck cause he did not get a response from them. Most companies I was applying to wanted IT background skills, but my field was electronics SW/HW. Despite multiple applications, I only heard back from a few who offered me a position that did not match my skills. It was a hard pass since I was so desperate to prove myself and show that I was equally capable of handling my college work, projects, and an internship or part-time. Also, I was eager to try my hands on the industrial work culture and environment since I had only worked on the Robotics Club and a few college projects. Such systems had to perform their best only at the demonstration as most were only prototypes.</p><p>Luckily after a month of application submissions, I was called for an interview from Yatri. To be honest, I would not hire myself from the interview I gave, at least from the technical side. I was proud of my experiences and determined to carry on a learning attitude but all that did not fulfill the requirement to be a part of this team. After the interview, I realized the gaps between my experiences and in-depth knowledge of those skills. Nevertheless, luck resided in my favor and I was given an internship opportunity at this company!</p><p>The internship period was intense. I had to create a prototype for an Over-The-Air (OTA) software update system for our bikes and charging stations; which was something completely new to me. Balancing college projects alongside Yatri’s responsibilities proved challenging, but during this, I truly understood the importance of practical experience. Late nights and early mornings became the norm as I went through a demanding phase.</p><p>Despite my technical limitations and naivety, I managed to create a prototype for updating the firmware of our main ECU through another CU responsible for wireless communication. Though I wasn’t satisfied with the system and wanted more time to refine it, the team at Yatri was impressed with my progress and offered me a full-time position. Given the lengthy application processes for my master’s, which was my plan after my undergrad, I accepted their offer, allowing me to continue working on this project on an industrial level.</p><blockquote>After my finals, I transitioned to full-time at Yatri Motorcycles. As my work evolved, so did my understanding of the value of generating new ideas constantly, looking for innovative methods, and lots and lots of searching and testing. I underwent hundreds of iterations just for the sake of increasing the 0.01% accuracy of my system.</blockquote><p>And now, recently came a considerable turning point in my journey. This was the moment of pride mixed with responsibility. I was sitting in a row with the same people who had interviewed me 3 years ago. Sitting on the other side of the table, I looked back at my growth and reflected on my journey, a retrospection that made me write this article. Interviewing multiple candidates proved to be an eye-opener. Just as when I started it all off, many ideas and new angles touched me deeply. This shift in roles let me see how important it is to genuinely explore project topics, and understand the contrast in perceptions, and the impact of tonality.</p><p>Reflecting on my time at Yatri, I could learn, experiment, and develop myself, professionally and emotionally. From a scared, naive college intern trying to do both work and school simultaneously, to an interviewer who feels confident, my journey has been about learning and self-examination daily.</p><p>With this, I also realized that as proud and confident as I feel today, I still feel my lack of expertise and acknowledge the gap that requires a constant learning curve. Also, it is never about the amount of knowledge one has that determines the position on an interview table, but about how passionately and deeply one has completed the task instead of finishing it just for the sake of completion.</p><p>For now, I am looking forward to my future with what awaits me, in terms of new challenges. I am grateful for the opportunity given and embrace the learnings after consistent hard work and effort. This journey shows how limitless the possibilities are once someone is open to learning and growing, thus in my case <strong><em>being an interviewee into being an interviewer</em></strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cda9cef56ff2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Custom Bootloaders for STM32series]]></title>
            <link>https://medium.com/@sajukhakurel/custom-bootloaders-in-stm32series-a74dd85d6fad?source=rss-c15f30f802b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/a74dd85d6fad</guid>
            <category><![CDATA[ota-updates-in-stm32]]></category>
            <category><![CDATA[flash-memory-partitions]]></category>
            <dc:creator><![CDATA[Saju Khakurel]]></dc:creator>
            <pubDate>Sat, 29 Jul 2023 15:46:53 GMT</pubDate>
            <atom:updated>2023-08-01T06:26:05.729Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*jTbFZ1yXJmHR5quB" /><figcaption>Development board</figcaption></figure><p>The concept of a custom bootloader pops up when the main program in the microcontrollers requires a little tweaking, like a firmware update. It can also come up when switching between multiple programs in the same controller is required, but without having to erase and flash.</p><p>Every controller has its bootloader, a generic piece of code ineffaceably written by the manufacturer, which runs right after the system is powered. It ensures the main program’s feasibility as it acts as an operating system software for the main program.</p><p>The main program in the STM32 series board is flashed from the address 0x08000000. This is the address pointed to by the program counter after a reset, usually where the main program resides. Since our custom bootloader is also a normal program, encompassing the functions of a bootloader within the flash memory region, it is flashed in this address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*pf8ROmdnlc117inF" /><figcaption>Flash Memory partition layout, with address references</figcaption></figure><p>Due to the compatibility and wide use of the HAL library in STM32, operations like read, write, and erase in the flash memory of these controllers are pretty effortless. Also, the development platform, stm32CubeIDE allows to bound memory location of the program in the flash region by allocating the start address and size of the program. Such attributes of this series of controllers permit us to create our custom partitions in the flash memory and use those partitions as independent memory sections. We can load different programs in each memory section, like custom bootloader, and application programs or we can simply use these sections as non-volatile memory.</p><p>The starting address and the length of the program region can be defined from the file STM32xxxx_FLASH.id.</p><pre>/* Memories definition */<br>MEMORY<br>{<br>CCMRAM (xrw) : ORIGIN = 0x10000000, LENGTH = xxK<br>RAM (xrw) : ORIGIN = 0x20000000, LENGTH = xxK<br>FLASH (rx) : ORIGIN = 0x8000000, LENGTH = xxK<br>}</pre><blockquote>Note: Change in the vector address table is also mandatory in the same manner as memory table changes. It ensures the vector table of the respective program is bounded so that each program runs independently. (Core&gt;&gt;Src&gt;&gt;system_stm32XXxx.c)</blockquote><blockquote>Also, the addresses are in hex format. Although only the start address of the program is required, the end can be manually calculated by changing the length (xx) which is in KiloBytes to bytes, converting it into the respective hex value, and adding it to the start address. It is also essential to add 1, at the end of one partition’s end address for the start of the following partition’s start address.</blockquote><p>Since the system bootloader loads the program from the starting address each time, it is a compulsion to load the custom bootloader at the top, followed by other partitions. Our bootloader then decides the flow of actions to be taken according to the information stored in the config space. Config space is a section created to keep track of which application is currently running or to notify the custom bootloader to be ready for a firmware update or just for informing the bootloader regarding which program is to be selected after reset, depending upon the requirements. The information in this section of the partition can be accessed from anywhere in the program with a simple memory read.</p><pre>uint8_t Memory_value = (*(uint8_t*)0xFFFFFFFF);<br>printf(&quot;Memory value of 0xFFFFFFFF = %d\n&quot;, Memory_value);</pre><p>Unlike a simple way of reading a memory value, writing in the flash memory requires a few more steps (Unlock-&gt;Erase-&gt;Write-&gt;Lock). To write in the memory, it is necessary to know the memory type of the controller because the memory must be erased first. The memory is divided into chunks that are at least 1KB in size. Usually, the chunks in flash memory are pages, banks, or sectors depending upon the controller. At any given time, multiple pages, banks, or sectors can be erased, or at the very least, a single chunk.</p><blockquote>Since flash memory is divided into the pre-defined size of pages, banks, and sectors, it is preferable to create partitions in regard to those divisions.</blockquote><pre>HAL_FLASH_Unlock();<br>FLASH_EraseInitTypeDef EraseInitStruct;<br>uint32_t SectorError;<br><br>EraseInitStruct.TypeErase = FLASH_TYPEERASE_SECTORS;<br>EraseInitStruct.Sector = sector; // Starting sector to erase<br>EraseInitStruct.NbSectors = number_sector; // Number of sectors to erase<br>EraseInitStruct.VoltageRange = FLASH_VOLTAGE_RANGE_3;<br><br>HAL_FLASHEx_Erase(&amp;EraseInitStruct, &amp;SectorError);<br>HAL_FLASH_Lock();</pre><p>Once data has been successfully erased, it is now feasible to write new information to the memory using the HAL_FLASH_Program function, which requires the flash to be unlocked first. This function takes three parameters: TypeProgram, Address, and Data, and it returns a HAL_StatusTypeDef. The HAL library allows us to write the data in multiple lengths according to which the address needs to be shifted after each write.</p><pre>/** @defgroup FLASH_Type_Program FLASH Type Program **/<br><br>#define FLASH_TYPEPROGRAM_BYTE 0x00000000U       /* data is of (8-bit) */<br>#define FLASH_TYPEPROGRAM_HALFWORD 0x00000001U   /* data is of a half-word (16-bit) */<br>#define FLASH_TYPEPROGRAM_WORD 0x00000002U       /* data is of a word (32-bit) */<br>#define FLASH_TYPEPROGRAM_DOUBLEWORD 0x00000003U /* data is of a double word (64-bit) */</pre><p>With the help of these operators, our custom bootloader can load a new program in the designated partition, where the new firmware can be received from any serial communication like UART, CAN Bus, SPI, and so on, or can be loaded via other middleware parities like a sd card. Also, the custom bootloader can now switch between the multiple programs that are already flashed in the partitions. It can be achieved when the currently running program can change the data in the config space and reset the system so that the custom bootloader can decide which program is to be selected. The jumping from one address to another can be achieved by pointing the reset handler to that address followed by calling this function. The reset handler function is a startup code, which is called after a reset as an execution of an initial code but in this case, it has been set to our desired address.</p><pre>void (*app_reset_handler)(<br>void) = (void*)(*((volatile uint32_t*) (Application_Address + 4U)));<br>__set_MSP((*(volatile uint32_t*) Application_Address));<br>app_reset_handler();</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a74dd85d6fad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SMART CITY]]></title>
            <link>https://medium.com/zerone-magazine/imagination-has-been-the-most-powerful-thought-that-i-have-discovered-so-far-and-growing-up-in-the-c7d6b4f00ffc?source=rss-c15f30f802b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7d6b4f00ffc</guid>
            <category><![CDATA[blogging-competition]]></category>
            <category><![CDATA[travel]]></category>
            <category><![CDATA[smart-cities]]></category>
            <category><![CDATA[locus]]></category>
            <dc:creator><![CDATA[Saju Khakurel]]></dc:creator>
            <pubDate>Tue, 09 Jan 2018 16:49:31 GMT</pubDate>
            <atom:updated>2023-05-20T08:33:49.520Z</atom:updated>
            <content:encoded><![CDATA[<p>SMART CITY</p><p>Imagination has been the most powerful thought that I have discovered so far and growing up in a world where a baby learns to use a touch-screen before speaking is all about the imagination of the inventors that gave their 100% to bring their random thoughts to the reality. It might sound weird at first, but moreover funny to share the ideas of the world you want to see or simply the way you perceive the activities going on around you. But I believe that’s what makes you different than others and most of the time weird is beautiful 😊.<br>Here are a few crazy stuff listed down that I think somehow can make our place a better one like a smart city.<br>As I was writing this article, I stared at the walls of my room….<br>Pink on the sides and white on the top. ..<br>Boring isn’t it? To have the same view Every day? <br>Imagine a bottle that would change the walls’ color with one spray<br>A window that opens itself and a pipeline system that sprays the water……<br>Only when it senses the traces of smoke and cigar<br>Getting late? Don’t you worry….<br>cause your smart shoes to tie up their laces and <br>The doors get locked with one command only<br>Beat up the heat in the summer……<br>with the public fans placed in the city’s corner…..<br>That sets its speed according to the density of people and runs through the solar energy<br>And water sensitive umbrella for monsoons that saves you from being wet and greasy<br>Perfect insulator clothes for winter also offered with mini portable coffee cups <br>Contractible vehicles for less parking area and light-sensitive street lights for automatic turning up after the sun sets <br>School and office areas with face detectors on the gates for the attendance <br>Garbage-sensitive roads along with dustbins provided with stretchable vacuum tubes ordinate<br>Mini pools that absorb the water from the ground so that no one is ever thirsty<br>Shoes that absorb no water and dust and will never become dirty<br>Normal power specs turn into cool shades when exposed to light<br>Mobile phones getting charged from the sun bright<br>A mini light chip that floats on the air<br>Containing the entire operating system in a single layer<br>That even moves with your body movement<br>With a screen ahead of you for an input and output interface<br>Water bottles that filter the water kept in it<br>Electric gloves that allow you to move objects at any speed<br>Mini camera attachable to the eyes <br>That takes the images formed in the retina<br>With high resolution and finest prints<br>Taking modern technology to the next arena!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7d6b4f00ffc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zerone-magazine/imagination-has-been-the-most-powerful-thought-that-i-have-discovered-so-far-and-growing-up-in-the-c7d6b4f00ffc">SMART CITY</a> was originally published in <a href="https://medium.com/zerone-magazine">The Zerone</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>