{"id":773,"date":"2014-03-30T21:55:04","date_gmt":"2014-03-31T01:55:04","guid":{"rendered":"http:\/\/fll-freak.com\/blog\/?p=773"},"modified":"2025-04-21T00:54:35","modified_gmt":"2025-04-21T04:54:35","slug":"another-step-closer-to-world-domination","status":"publish","type":"post","link":"https:\/\/fll-freak.com\/blog\/?p=773","title":{"rendered":"Another step closer to world domination"},"content":{"rendered":"<p>Fast update from last post. I got ChaN&#8217;s FAT32 working and can read and write files at 200kbytes\/second. Not too shabby.<\/p>\n<p>With the FAT32 behind me, I set myself the goal of connecting my uBlox LEA-6H module to my ARM processor this weekend. As it turns out, I missed my goal, but I got awfully close.<!--more--><\/p>\n<p>The reason I failed was that I decided I really needed an sprintf routine. Somehow my Yagarto system libraries do not include sprintf. I think because they do not include malloc\/sbrk. I was unwilling to write the memory allocation interface, so I spent a day and rewrote my version of snprintf. It does %d, %u, %c, %f, and the always useful %%. It also support the width, and other options. Not terribly fast yet, but the basics are in place.<\/p>\n<p>This allowed me to gut my code of awful debug code I was using to print bits of critical information. The code is much cleaner now.<\/p>\n<p>I also had to write a device driver for the serial ports. I have been using the DBGU serial port on the Atmel SAM7 for a debugging serial port. Works great, but I needed to modify it to support the US0 and US1 serial ports. Luckily they are all nearly identical and I was able to modify the code such that the basic routines (read, write, configure,&#8230;) now simply take an argument for the port to use. But till just recently I have been tearing my hair out as to why it was not working. As it was getting close to bed, I decided to stop for the night and check in all my code into GIT. As a comment, I added all the possibilities as to why it was not working. As a joke I said &#8220;and perhaps I did not set the &#8220;make it work&#8221; bit&#8221;. As soon as I wrote that, I realized that that is exactly what I forgot to do. I failed to turn on the clock to the other UARTS. I set one register, and poof it works.<\/p>\n<p>My goal for this week is to mechanically and electrically mount the GPS module to my test board and start getting the software to parse the binary data stream. I already have the code from another project to do this, so it should not be to hard to get that up and running. Perhaps by the weekend I will be getting the data and writing it to my new SD card interface.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fast update from last post. I got ChaN&#8217;s FAT32 working and can read and write files at 200kbytes\/second. Not too shabby. With the FAT32 behind me, I set myself the goal of connecting my uBlox LEA-6H module to my ARM &hellip; <a href=\"https:\/\/fll-freak.com\/blog\/?p=773\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,24],"tags":[],"class_list":["post-773","post","type-post","status-publish","format-standard","hentry","category-arm","category-avc"],"_links":{"self":[{"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=773"}],"version-history":[{"count":4,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/773\/revisions"}],"predecessor-version":[{"id":793,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/773\/revisions\/793"}],"wp:attachment":[{"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}